/* 8番Lounge — Pokemon profile-inspired squared graph-paper theme (edition accent configurable) */
:root{--navy:#403052;--deep:#342642;--sky:#88c8fc;--mint:#d2ecff;--salmon:#ee96b5;--pink:#f0a3bf;--paper:#fff;--cream:#fff;--text:#44354e;--muted:#84738c;--border:#403052;--shadow:0 5px 0 #40305218;--radius:22px}
html{scroll-behavior:smooth}
body{color:var(--text);background-color:#fff;background-image:linear-gradient(to right,var(--edition-grid-bold) 1px,transparent 1px),linear-gradient(to bottom,var(--edition-grid-bold) 1px,transparent 1px),linear-gradient(to right,var(--edition-grid-line) 1px,transparent 1px),linear-gradient(to bottom,var(--edition-grid-line) 1px,transparent 1px);background-size:140px 140px,140px 140px,28px 28px,28px 28px;line-height:1.72}
body:before{display:none}#app{position:relative;min-height:55vh}.top-stripe{height:5px;background:#403052}
.site-header{background:#ffffffed;border-bottom:3px solid #403052;backdrop-filter:blur(15px)}
.header-inner{max-width:1350px;min-height:78px}.brand{gap:12px}.brand-logo{color:#403052;background:#fff;border:3px solid #403052;border-radius:50%;width:56px;height:56px;display:flex;align-items:center;justify-content:center;overflow:hidden;font-weight:950;font-size:24px}.brand-logo img{width:100%;height:100%;object-fit:contain}.brand-logo span{font-size:11px}.brand-copy strong{font-size:23px;font-weight:950;letter-spacing:-.05em;color:#403052}.brand-copy small{color:#85758e;font-size:9px;letter-spacing:.08em;font-weight:900}
.nav{gap:5px}.nav a{font-weight:900;color:#403052;border:2px solid transparent;border-radius:12px;padding:9px 11px}.nav a:hover,.nav a.active{border-color:#403052;background:#d4ecff;color:#403052}.menu-toggle{color:var(--navy);border:2px solid var(--navy);border-radius:11px;background:#fff}
.connection-banner{background:#fff1a6;border-bottom:2px solid #403052;color:#403052;font-weight:800;font-size:11px;text-align:center;padding:9px 20px}.connection-banner.error{background:#ffe7e7}
.wrap{max-width:1150px}.section{background:transparent;padding:62px 0 86px}
.eyebrow,.small-kicker{font-size:12px;letter-spacing:.11em;font-weight:950;color:#74619a}.section-title{font-size:clamp(30px,4.2vw,49px);line-height:1.35;letter-spacing:-.055em;color:var(--navy)}.section-title br{display:none}.sublead{color:#766982}.headline-line{height:5px;border-radius:999px;background:#9bd2ff;width:120px;margin:27px 0}.section-note{color:#7d7382;font-size:13px}
.btn,.field input,.field textarea,.field select,.studio-toolbar button{border-radius:13px}.btn{background:#8dcaff;color:#403052;border:2px solid #403052;box-shadow:0 3px 0 #403052;font-weight:950;line-height:1.45;padding:12px 20px;display:inline-flex;align-items:center;justify-content:center;text-align:center;gap:6px;transition:transform .12s,box-shadow .12s}
.btn:hover{transform:translateY(2px);box-shadow:0 1px 0 #403052;background:#b5e0ff;color:#403052}.btn.small{padding:8px 12px;font-size:12px}.btn.ghost{background:#fff;border:2px solid #403052;color:#403052}.btn.white{background:#8ecbff;color:#403052}.btn.danger{background:#ffe1e7;color:#6d2948;border-color:#8e3b62}.hero-actions .btn.ghost{background:#fff;color:#403052;border-color:#403052}
.panel,.feature-card,.history-card,.quiz-question,.form-paper,.moderation-item,.editor-q{background:#fff;border:3px solid #403052;border-radius:18px;box-shadow:5px 5px 0 #40305213}.panel{padding:30px}.pill,.tag,.q-label,.host-label,.latest-label{background:#8dcaff;color:#403052;border:2px solid #403052;border-radius:100px;padding:4px 12px;font-weight:900}.tag.good{background:#c8f0dd;color:#245746}.notice{background:#e9f5ff;border:2px solid #403052;border-left-width:7px;border-radius:14px;color:#403052}.notice.warning{background:#fff5d7;border-color:#b99654}.field label{color:#62526e;font-weight:900;font-size:13px}.field input,.field select,.field textarea{background:#fff;border:2px solid #403052;color:#403052;outline-color:#8dcaff}.field input:focus,.field select:focus,.field textarea:focus{background:#f5fbff}.helper{color:#847b89}.consent{background:#e4f4ff;border:2px dashed #a5c8e2;color:#54465c}.form-group{border-bottom:2px dashed #c4dffc}.form-group h3{color:#403052}
/* Hero: two-column 'trainer profile maker' aesthetic */
.profile-hero{position:relative;background:linear-gradient(104deg,#ffffffdd 0 52%,color-mix(in srgb,var(--edition-color) 31%,white) 52% 100%);border-bottom:3px solid #403052;overflow:hidden;min-height:initial}
.profile-hero:before{content:'';position:absolute;inset:0;background-image:linear-gradient(to right,var(--edition-grid-bold) 1px,transparent 1px),linear-gradient(to bottom,var(--edition-grid-bold) 1px,transparent 1px),linear-gradient(to right,var(--edition-grid-line) 1px,transparent 1px),linear-gradient(to bottom,var(--edition-grid-line) 1px,transparent 1px);background-size:140px 140px,140px 140px,28px 28px,28px 28px;pointer-events:none;opacity:.88}
.profile-hero .hero-inner{position:relative;max-width:1300px;min-height:565px;margin:auto;padding:64px 32px 63px;display:grid;grid-template-columns:1fr .84fr;gap:66px;align-items:center;text-align:left}
.profile-chip{display:inline-block;background:#403052;color:#fff;padding:5px 14px;border-radius:30px;font-size:11px;font-weight:900;letter-spacing:.08em}
.profile-number{font-weight:950;font-size:17px;color:#77678e;margin-top:21px}.profile-intro .hero-title{color:#403052;font-size:clamp(44px,5vw,78px);font-weight:950;line-height:1.12;letter-spacing:-.08em;margin:10px 0 14px;word-break:keep-all}.cup-logo-art{width:min(100%,530px);max-height:185px;object-fit:contain;object-position:left center}
.profile-accent{font-size:12px;font-weight:900;color:#695680;background:#8ccaff;border:2px solid #403052;border-radius:100px;width:fit-content;padding:3px 13px;letter-spacing:.05em}.profile-intro .hero-desc{color:#5d5167;font-size:15px;margin:24px 0 12px;max-width:550px}.event-details{display:flex;gap:10px;flex-wrap:wrap;margin:17px 0 21px}.event-details span{border:2px solid #403052;border-radius:12px;padding:6px 12px;background:#fff;font-weight:900;font-size:12px}.profile-hero .hero-actions{display:flex;gap:12px;flex-wrap:wrap;justify-content:flex-start}.stream-button{margin-top:15px;background:#c9eaff}
.profile-visual{position:relative;min-width:0}.profile-frame{height:460px;max-width:475px;border:6px solid #403052;border-radius:32px;background:#c0e4ff;position:relative;padding:20px;display:flex;align-items:center;justify-content:center;box-shadow:12px 12px 0 #91c9ef50;overflow:hidden}.profile-frame:before{content:'';position:absolute;border-radius:50%;height:330px;width:330px;background:#ffffff54;inset:50% auto auto 50%;transform:translate(-50%,-50%)}.profile-frame-title{position:absolute;z-index:2;top:18px;left:21px;right:20px;font-size:11px;font-weight:950;color:#675a7d;letter-spacing:.1em}.hero-photo{position:relative;object-fit:contain;width:100%;height:100%;z-index:2}.hero-art-placeholder{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;color:#7d70a3;text-align:center}.hero-art-big{display:grid;place-items:center;width:170px;height:170px;border:5px dashed #8fbfe4;border-radius:50%;font-size:92px;font-weight:950;color:#403052;margin-bottom:18px;background:#ffffff69}.hero-art-placeholder strong{font-size:21px}.hero-art-placeholder small{font-size:11px;margin-top:7px}.profile-mini-label{font-size:11px;color:#675780;text-align:right;font-weight:900;margin:19px 20px 0}
.home-section{padding-top:28px}.home-banner{margin:20px 0 50px;padding:12px 17px;background:#fff;border:2px solid #403052;border-radius:13px;font-weight:800;font-size:13px}.news-bullet{display:inline-flex;background:#403052;color:#fff;border-radius:20px;padding:2px 13px;margin-right:8px;font-size:10px}.section-top h2{color:#403052;line-height:1.4;font-size:clamp(27px,3vw,36px);margin:8px 0}.section-top p{color:#7d6e88;margin-bottom:30px}.feature-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:19px}.profile-card{position:relative;background:#fff;border:3px solid #403052;border-radius:20px;padding:26px 24px 24px;min-height:215px;box-shadow:5px 5px 0 #d4eafc;display:flex;flex-direction:column;transition:transform .15s}.profile-card:hover{transform:translateY(-4px);background:#f1f9ff}.profile-card-number{align-self:flex-start;background:#8bcafb;border:2px solid #403052;border-radius:11px;font-size:12px;font-weight:900;padding:3px 12px}.profile-card h3{font-size:21px;color:#403052;margin:15px 0 6px;letter-spacing:-.04em}.profile-card p{font-size:13px;line-height:1.75;color:#766c7b;margin-bottom:21px}.profile-card-link{font-size:12px;font-weight:950;margin-top:auto;color:#654d83}
.profile-feature{margin:12px 0 26px;background:#d8eeff;border:3px solid #403052;border-radius:27px;padding:31px;display:grid;grid-template-columns:.6fr 1fr;gap:28px;align-items:center;box-shadow:7px 7px 0 #d4e5f5}.profile-feature-art{display:flex;justify-content:center}.profile-feature-art .art-slot{width:220px;height:220px;border:5px solid #403052;border-radius:50%;background:#fff}.profile-feature-copy h2{color:#403052;font-size:28px;margin:14px 0}.profile-feature-copy h2 strong{font-size:47px}.profile-tiny-tag{display:inline-block;background:#fff;border:2px solid #403052;border-radius:100px;padding:4px 15px;font-weight:850;font-size:12px}.profile-feature-copy p{color:#6e6378;font-size:13px;max-width:650px;margin:17px 0}
/* Interior pages: interview, archive and information */
.interview-head{background:#e5f3ff;border:3px solid #403052;border-radius:22px;box-shadow:6px 6px 0 #bedfff;padding:28px}.interview-head h3{color:#403052}.interview-head .art-slot{background:#fff;border-color:#403052}.stat{background:#fff;border:2px solid #403052;border-radius:12px}.stat strong{color:#403052}.chapter{margin:54px 0 15px}.chapter h2{color:#403052}.chapter span{background:#403052;border-radius:10px;color:#fff;font-weight:950}.q-block{margin:32px 0 50px}.q-label{background:#403052;color:#fff;border:0;display:inline-flex;font-size:11px;letter-spacing:.08em;margin-bottom:17px}.host-balloon{background:#fff;border:3px solid #403052;border-radius:17px;box-shadow:4px 4px 0 #b8dfff}.host-balloon:before{border-right-color:#403052}.host-balloon p{color:#403052;font-weight:900}.host-label{display:inline-block;background:#8ecbff;border-color:#403052;color:#403052}.art-slot{background:#edf8ff;border:3px solid #403052}.art-slot.sm{border-radius:50%}.art-help{color:#695c78}.art-symbol{color:#8cc4ef}.answer{display:flex;align-items:flex-start;gap:12px;background:#fff;border:2px solid #403052;border-radius:16px;margin:10px 0;box-shadow:3px 3px 0 #b9dcf7;padding:16px}.answer-avatar{flex-shrink:0}.answer-body{flex:1;min-width:0}.answer-name{color:#403052;font-weight:950}.answer-role{border-radius:100px;background:#dceeff;color:#403052;border:1px solid #403052}.fav-name{color:#876c9b;font-size:11px;font-weight:900}.answer-text{color:#564b61}.reaction{background:#cceaff;border:2px solid #403052;color:#403052;border-radius:15px}.reaction strong{color:#403052}.empty-state{background:#fff;border:2px dashed #91b4d7;color:#816e8b}
.quiz-hero{background:#403052;border:3px solid #403052;box-shadow:6px 6px 0 #c8e8ff}.quiz-hero h2{color:#fff}.quiz-ribbon span{background:#8fccff;border:2px solid #fff;color:#403052}.quiz-question{background:#fff}.quiz-question h3{color:#403052}.locked{border:3px dashed #403052;background:#edf8ff;color:#403052}.event-card{background:#fff;border:3px solid #403052;border-radius:22px;box-shadow:6px 6px 0 #d8ebfc}.event-art{background:#c9e7ff;color:#403052}.event-copy h2{color:#403052}.event-facts dt{color:#403052}.a-link{color:#655180}.rule-line{border-color:#c6dbed}.rule-line dt{color:#403052}.history-card{background:#fff;border:3px solid #403052;box-shadow:5px 5px 0 #d4eaff}.history-card h3{color:#403052}.history-card:after{color:#d4eaff}.history-card .btn{margin:0 12px 0 0}.history-card .tag{display:inline-block}
.studio-toolbar button{border:2px solid #403052;background:#fff;color:#403052}.studio-toolbar button.active{background:#8cccff;color:#403052}.editor-q{background:#eff8ff}.moderation-item{box-shadow:none}.edit-title{color:#403052}.image-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.image-editor-card{border:2px solid #403052;border-radius:17px;padding:15px;background:#f8fbff}.image-editor-card h3{color:#403052;font-size:14px;line-height:1.5;margin:0 0 10px}.image-preview{height:145px;background:#d4edff;border:2px dashed #95b4d0;border-radius:13px;margin:12px 0;display:grid;place-items:center;overflow:hidden}.image-preview img{width:100%;height:100%;object-fit:contain}.empty-image{font-size:34px;color:#7ba4c7;display:flex;flex-direction:column;align-items:center;line-height:1}.empty-image small{font-size:11px;margin-top:10px}.decor-page-select{border:2px solid #403052;border-radius:10px;padding:9px;background:#fff;color:#403052;font-weight:800}
/* Pokémon sprite chooser */
.pokemon-avatar{height:46px;width:46px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;background:#d3ecff;border:2px solid #403052;border-radius:50%;vertical-align:middle;overflow:hidden;color:#584669;font-weight:950}.pokemon-avatar img{max-width:100%;max-height:100%;object-fit:contain;image-rendering:pixelated;transform:scale(1.23)}.pokemon-avatar.lg{width:61px;height:61px}.favorite-section{background:#f0f9ff;border:3px solid #403052;border-radius:19px;padding:23px;margin:30px 0 10px}.favorite-section h3{color:#403052;font-size:20px;margin:0 0 3px}.favorite-section p{color:#776c81;font-size:13px}.favorite-preview{display:flex;gap:15px;align-items:center;padding:11px 14px;background:#fff;border:2px solid #403052;border-radius:15px;max-width:550px;margin:16px 0}.favorite-preview div{display:flex;flex-direction:column}.favorite-preview small{font-size:11px;color:#8a7c95}.favorite-preview strong{font-size:14px}
.picker-open{overflow:hidden}.picker-backdrop{position:fixed;inset:0;z-index:101;background:#251b38cc;display:flex;align-items:center;justify-content:center;padding:18px}.picker-dialog{background-color:#fff;background-image:linear-gradient(to right,var(--edition-grid-line) 1px,transparent 1px),linear-gradient(to bottom,var(--edition-grid-line) 1px,transparent 1px);background-size:24px 24px;border:4px solid #403052;border-radius:22px;padding:23px;max-width:900px;width:100%;max-height:92vh;overflow:auto;box-shadow:10px 10px 0 #b6dfff}.picker-heading{display:flex;justify-content:space-between;gap:20px}.picker-heading h2{font-size:24px;color:#403052;margin:7px 0}.picker-heading p,.picker-foot{font-size:12px;color:#83748d}.picker-close{background:#fff;border:2px solid #403052;border-radius:50%;width:43px;height:43px;flex-shrink:0;color:#403052;font-size:27px}.picker-search{display:flex;gap:10px;margin:11px 0}.picker-search input{width:100%;border:2px solid #403052;border-radius:12px;padding:10px 12px;background:#fff;outline-color:#8cccff}.generation-list{display:flex;gap:6px;overflow:auto;padding:4px 0 12px}.generation-list button{white-space:nowrap;border:2px solid #403052;border-radius:13px;background:#fff;color:#403052;padding:5px 13px;font-weight:900;font-size:11px}.generation-list button.active{background:#8cccff}.picker-stat{font-size:12px;color:#716481;font-weight:800;margin-bottom:9px}.picker-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.pokemon-option{display:flex;gap:6px;align-items:center;border:2px solid #403052;border-radius:12px;background:#fff;padding:7px 5px;text-align:left;color:#746685;font-size:10px;min-width:0;cursor:pointer}.pokemon-option:hover,.pokemon-option.selected{background:#cceaff}.pokemon-option .pokemon-avatar{width:43px;height:43px;border:0;background:#eaf5ff}.pokemon-option span:last-child{overflow:hidden;line-height:1.4}.pokemon-option b{display:block;color:#403052;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.picker-more{margin:13px auto;display:flex}.picker-more[hidden]{display:none}.picker-foot{margin:7px 0 0}
/* Free placement decoration editing */
.free-decoration{position:absolute;pointer-events:none;display:block;max-width:none}.free-decoration img{display:block;width:100%;height:auto;object-fit:contain}.free-decoration.is-editable{pointer-events:auto;border:2px dashed #6a3f94;border-radius:9px;cursor:grab;touch-action:none;background:#fff5}.free-decoration.is-editable.is-selected{outline:3px solid #8ccdff}.free-decoration.is-editable:active{cursor:grabbing}.deco-drag-label{position:absolute;top:-27px;left:0;background:#403052;color:#fff;padding:2px 11px;border-radius:8px 8px 0 0;font-size:11px;font-weight:900;white-space:nowrap}.decor-dock{z-index:80;position:fixed;left:50%;bottom:15px;transform:translateX(-50%);width:min(1200px,calc(100% - 24px));border:3px solid #403052;border-radius:20px;background:#e7f4ff;box-shadow:0 6px 35px #40305244;padding:12px 15px;display:flex;gap:12px;align-items:center;justify-content:center;flex-wrap:wrap}.decor-dock div{margin-right:auto}.decor-dock strong{display:block;color:#403052;font-size:13px}.decor-dock small{display:block;font-size:10px}.decor-dock label:not(.btn){display:flex;align-items:center;gap:6px;font-size:12px;font-weight:900}.decor-dock input[type=range]{width:100px;accent-color:#403052}
.footer{background:#403052;border-top:5px solid #8ccaff}.footer-brand span{color:#b6dfff}.footer a,.footer p{color:#edf6ff}.disclaimer{color:#d8cce3;border-color:#685477}.copyright{color:#c5b6d2}.toast{background:#403052;border:2px solid #8dcbff;color:white}
@media(max-width:1050px){.profile-hero .hero-inner{gap:25px;min-height:490px}.profile-frame{height:410px}.feature-grid{grid-template-columns:repeat(2,1fr)}.image-grid{grid-template-columns:repeat(2,1fr)}.picker-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:970px){.nav{background:#fff;border-bottom:3px solid #403052;top:78px}.nav a{border:2px solid #403052;background:#f4faff}.brand-copy strong{font-size:20px}}
@media(max-width:680px){body{background-size:22px 22px}.wrap{width:min(100% - 28px,1150px)}.section{padding:34px 0 60px}.header-inner{min-height:65px}.brand-logo{width:45px;height:45px;font-size:20px}.brand-copy strong{font-size:17px}.brand-copy small{font-size:8px}.nav{top:65px}.profile-hero{background:linear-gradient(#ffffff00 0 55%,#d8efffce 55%)}.profile-hero .hero-inner{padding:30px 17px 38px;display:flex;flex-direction:column;gap:29px;text-align:left;align-items:stretch}.profile-intro .hero-title{font-size:51px;text-align:left;margin:12px 0}.profile-number{font-size:13px}.profile-intro .hero-desc{font-size:13px;margin:13px 0}.profile-accent{font-size:10px}.event-details{gap:6px}.event-details span{font-size:10px;padding:5px 8px}.profile-hero .hero-actions{justify-content:flex-start;gap:10px}.profile-hero .hero-actions .btn{font-size:12px;padding:10px 11px}.profile-frame{width:100%;max-width:none;height:300px;border-width:4px;border-radius:24px;padding:14px}.hero-art-big{height:100px;width:100px;font-size:60px}.profile-mini-label{margin-top:9px}.home-banner{margin:12px 0 32px;font-size:11px}.section-top h2{font-size:25px}.feature-grid,.image-grid{grid-template-columns:1fr}.profile-card{min-height:0;padding:18px}.profile-card h3{font-size:18px;margin:10px 0 3px}.profile-card p{font-size:12px;margin-bottom:12px}.profile-feature{grid-template-columns:1fr;padding:22px;gap:20px;margin:8px 0 25px}.profile-feature-art .art-slot{height:180px;width:180px}.profile-feature-copy h2{font-size:23px}.profile-feature-copy h2 strong{font-size:34px}.panel{padding:18px}.section-title{font-size:30px}.interview-head{padding:18px}.stat{padding:10px}.host-row .art-slot.sm{height:58px;width:58px}.host-balloon{padding:14px}.answers,.reaction-row{margin-left:0}.answer{padding:11px;gap:9px}.answer .pokemon-avatar.lg{width:48px;height:48px}.answer-top{gap:6px}.fav-name{width:100%}.picker-backdrop{padding:8px}.picker-dialog{padding:12px;max-height:96vh;border-width:3px}.picker-heading h2{font-size:19px}.picker-search{margin:9px 0}.picker-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.pokemon-option{padding:5px 3px;gap:2px;flex-direction:column;align-items:center;text-align:center}.pokemon-option .pokemon-avatar{width:40px;height:40px}.pokemon-option b{max-width:100px}.decor-dock{bottom:8px;gap:8px;padding:9px}.decor-dock div{width:100%}.decor-dock .btn{font-size:10px}.decor-dock label:not(.btn){font-size:10px}.decor-dock input[type=range]{width:65px}.image-preview{height:115px}}
.event-details span{color:#403052}
body{overflow-x:hidden}

/* The selected edition's theme is scoped through JS; old site data defaults to pale blue. */
:root{
  --edition-color:#8ecbff;
  --edition-faint:color-mix(in srgb,var(--edition-color) 13%,white);
  --edition-grid-line:color-mix(in srgb,var(--edition-color) 45%,white);
  --edition-grid-bold:color-mix(in srgb,var(--edition-color) 67%,white);
}
.profile-accent,.btn:not(.ghost):not(.danger),.nav a.active,.nav a:hover,.profile-card-number,.pill,.host-label,.profile-tiny-tag,.generation-list button.active,.studio-toolbar button.active,.pokemon-option:hover,.pokemon-option.selected{background-color:var(--edition-color)}
.profile-frame,.profile-feature,.reaction,.event-art,.locked,.interview-head,.favorite-section,.editor-q,.connection-banner:not(.error){background-color:var(--edition-faint)}
.profile-card{box-shadow:5px 5px 0 color-mix(in srgb,var(--edition-color) 28%,white)}
.profile-card:hover{background-color:color-mix(in srgb,var(--edition-color) 11%,white)}
.profile-hero .hero-actions .btn.ghost{background:#fff}
.profile-feature{background:linear-gradient(120deg,color-mix(in srgb,var(--edition-color) 22%,white),#fff 85%)}
.profile-feature.feature-first{margin-top:10px;margin-bottom:27px;position:relative;overflow:hidden;}
.profile-feature.feature-first::after{content:'INTERVIEW';position:absolute;right:20px;top:-14px;font-size:clamp(35px,8vw,92px);font-weight:950;letter-spacing:-.07em;color:color-mix(in srgb,var(--edition-color) 19%,transparent);pointer-events:none;z-index:0}
.profile-feature.feature-first>*{position:relative;z-index:1}
.profile-feature-copy .feature-first-title{font-size:clamp(25px,3.3vw,36px);line-height:1.38;margin:13px 0}
.profile-feature-copy .feature-first-title strong{font-size:clamp(38px,4.4vw,57px)}
.feature-menu-label{font-size:12px;font-weight:900;letter-spacing:.08em;color:#77648a;margin:28px 0 14px;display:flex;gap:12px;align-items:center}
.feature-menu-label::after{content:'';flex:1;height:2px;background:var(--edition-grid-bold)}
.theme-picker{border:2px solid #403052;border-radius:18px;padding:18px;margin:20px 0 25px;background:#fff}
.theme-picker .theme-help{margin:5px 0 13px;font-size:12px;color:#766b80}
.theme-picker-fields{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.theme-picker input[type=color]{width:68px;height:46px;background:#fff;border:2px solid #403052;border-radius:11px;padding:3px;cursor:pointer}
.theme-picker .theme-code{font:800 13px ui-monospace,monospace;color:#403052}
.theme-swatches{display:flex;gap:9px;flex-wrap:wrap;margin:12px 0 17px}
.theme-swatch{width:36px;height:36px;border:2px solid #403052;border-radius:11px;background:var(--swatch);cursor:pointer;box-shadow:0 2px 0 #40305255;position:relative}
.theme-swatch.is-current{outline:3px solid #403052;outline-offset:3px}
.theme-swatch:focus-visible{outline:3px solid #403052;outline-offset:3px}
.theme-example{padding:14px;border:2px solid #403052;border-radius:12px;background-color:#fff;background-image:linear-gradient(to right,color-mix(in srgb,var(--preview-color) 45%,white) 1px,transparent 1px),linear-gradient(to bottom,color-mix(in srgb,var(--preview-color) 45%,white) 1px,transparent 1px);background-size:22px 22px;}
.theme-example .sample-pill{display:inline-block;background:var(--preview-color);border:2px solid #403052;border-radius:10px;padding:4px 12px;font-size:12px;font-weight:900;color:#403052}
.theme-example small{font-size:11px;color:#665375;margin-left:8px;font-weight:850}
.history-card{border-top:10px solid var(--history-accent,var(--edition-color))}
.history-card .tag.good{background:color-mix(in srgb,var(--history-accent,var(--edition-color)) 30%,white);border:1px solid #403052;color:#403052}
.history-color-row{display:flex;align-items:center;gap:11px;flex-wrap:wrap;margin:9px 0}
.history-color-row input[type=color]{width:57px;height:41px;cursor:pointer;border:2px solid #403052;border-radius:10px;background:#fff;padding:2px}
@media(max-width:680px){
 body{background-size:110px 110px,110px 110px,22px 22px,22px 22px}
 .profile-hero{background:linear-gradient(#ffffffdd 0 51%,color-mix(in srgb,var(--edition-color) 28%,white) 51%)}
 .profile-hero:before{background-size:110px 110px,110px 110px,22px 22px,22px 22px}
 .profile-feature.feature-first{margin:8px 0 23px}
 .profile-feature-copy .feature-first-title{font-size:23px}
 .profile-feature-copy .feature-first-title strong{font-size:39px}
 .theme-example small{display:block;margin:7px 0 0}
}

/* 大会名の視認性 */
.profile-number{line-height:1.5;overflow-wrap:anywhere}
.rule-cup-name{font-size:15px;font-weight:900;color:#403052;margin:6px 0 10px}

/* Ver.8：オフ会は告知のみ（申込フォームなし） */
.event-discord-note {margin:16px 0; padding:12px 15px; border:1px solid #a6c8d3; background:#f4fafb; border-radius:12px; font-size:13px; line-height:1.8; color:#34566b;}
.event-disclaimer {margin-top:22px; font-size:13px; line-height:1.85;}
.event-disclaimer p {margin:10px 0;}

/* Ver.9 — Rules images, tournament bracket, competitor profiles and selectable team icons */
.archive-section-heading{display:flex;align-items:end;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:0 0 20px}.archive-section-heading h2,.archive-section-heading h3{font-size:clamp(21px,2.5vw,30px);color:#403052;margin:5px 0}.archive-section-heading p{font-size:13px;color:#766b80;margin:0}.archive-count{background:var(--edition-faint);border:2px solid #403052;border-radius:13px;padding:5px 13px;font-size:12px;font-weight:900}.rule-photo-section{margin-top:36px}.rule-photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.rule-photo-tile{margin:0;padding:12px;background:#fff;border:3px solid #403052;border-radius:19px;box-shadow:5px 5px 0 #b8d7ed70;min-width:0;overflow:hidden}.rule-photo-tile>a{display:flex;align-items:center;justify-content:center;height:255px;border-radius:12px;background:#f4faff}.rule-photo-tile>a img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}.rule-photo-tile.is-empty{border-style:dashed;background:#fafcff}.image-empty{width:100%;min-height:150px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:color-mix(in srgb,var(--edition-color) 9%,white);color:#77658c;border:2px dashed #bfd5ed;border-radius:11px;padding:20px;text-align:center}.image-empty span{font-size:33px;font-weight:500;line-height:1}.image-empty small{font-size:11px;font-weight:800}.rule-photo-tile>.image-empty{height:255px}.rule-photo-tile figcaption{min-height:30px;margin:8px 4px 0;color:#544762;font-size:12px;font-weight:800}.rule-photo-tile figcaption span{font-size:10px;background:var(--edition-color);border-radius:7px;padding:3px 7px;margin-right:6px}.archive-history-grid{display:grid;grid-template-columns:1fr;gap:28px}.archive-card{min-width:0}.archive-card>h3{font-size:clamp(27px,4vw,39px);line-height:1.35}.archive-card>.history-image{max-height:280px;width:auto;object-fit:contain;margin:10px 0 22px}.archive-awards{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:24px 0}.archive-award{background:#fafcff;border:2px solid #403052;border-radius:17px;padding:19px;min-width:0}.archive-award-tag{display:inline-block;background:var(--history-accent,#8ecbff);color:#403052;border:2px solid #403052;border-radius:9px;padding:3px 11px;font-size:11px;font-weight:900}.archive-award-main{display:flex;gap:14px;align-items:center;margin:16px 0;color:#403052;overflow-wrap:anywhere}.archive-award-main strong{font-size:19px}.archive-person-avatar{display:grid;place-items:center;overflow:hidden;width:76px;height:76px;flex:0 0 76px;border:3px solid #403052;border-radius:50%;background:#fff;color:#b8afc5;font-size:30px}.archive-person-avatar img{width:100%;height:100%;object-fit:cover}.archive-team-title{font-size:12px;font-weight:900;color:#6a587a;margin-bottom:9px}.archive-team{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.archive-team-slot{border:1px solid #ddd8eb;background:#fff;border-radius:12px;display:flex;align-items:center;flex-direction:column;padding:12px 3px;min-width:0;text-align:center}.archive-team-slot small{margin-top:7px;font-size:10px;line-height:1.4;overflow-wrap:anywhere}.archive-mvp-pokemon{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid #ddd8eb;border-radius:12px;padding:12px;font-size:12px;font-weight:900}.archive-mini-heading{color:#403052;font-size:15px;font-weight:950;letter-spacing:.02em;margin-bottom:13px;display:flex;gap:10px;justify-content:space-between}.archive-mini-heading span{font-size:12px;color:#796d88}.archive-bracket,.archive-entrants{margin-top:25px;padding:22px;border:2px solid #403052;border-radius:17px;background:#fff}.archive-bracket>a{display:flex;justify-content:center;background:#f4f8ff;padding:16px;border:1px solid #d8d5e9;border-radius:12px}.bracket-photo{display:block;max-height:900px;width:auto;max-width:100%;object-fit:contain}.archive-bracket>.image-empty{min-height:240px}.archive-entrant-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(125px,1fr));gap:13px}.archive-entrant{position:relative;background:#f5faff;border:2px solid #403052;border-radius:14px;padding:13px 8px;display:flex;flex-direction:column;align-items:center;text-align:center;font-size:12px;font-weight:900;gap:8px;overflow-wrap:anywhere}.archive-entrant .archive-person-avatar{width:67px;height:67px;flex-basis:67px}.archive-entrant-pokemon{position:absolute;right:3px;top:37px;transform:scale(.78)}.archive-muted{font-size:12px;color:#83758e}.archive-prize{display:flex;gap:12px;margin-top:18px;font-size:12px}.archive-prize dt{font-weight:900}.archive-prize dd{margin:0}.editor-gallery{margin-top:35px;border-top:2px dashed #b5cbe3;padding-top:25px}.rule-bulk-button{margin:8px 0 23px}.rule-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.rule-edit-tile,.archive-person-editor{background:#fff;border:2px solid #403052;border-radius:14px;padding:15px;min-width:0}.rule-edit-picture{height:200px;background:#f4f8ff;border:1px solid #d1d8e9;border-radius:12px;margin-bottom:12px;display:flex;align-items:center;justify-content:center;overflow:hidden}.rule-edit-picture img{height:100%;width:100%;object-fit:contain}.rule-edit-actions{display:flex;gap:7px;flex-wrap:wrap;align-items:center}.rule-edit-actions .btn{padding:7px 10px}.archive-editor-segment{padding:20px 0;border-top:2px dashed #c8d4e7;margin-top:20px}.archive-editor-segment .image-editor-card{max-width:360px}.archive-poke-editor-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin-top:16px}.archive-poke-edit{display:flex;align-items:center;gap:11px;background:#fff;border:2px solid #403052;border-radius:13px;padding:12px;min-width:0}.archive-poke-edit>div{min-width:0;display:flex;flex-direction:column;gap:5px}.archive-poke-edit strong{font-size:13px}.archive-poke-edit small{font-size:11px;line-height:1.45}.archive-poke-buttons{display:flex;gap:5px;flex-wrap:wrap;margin-top:5px}.archive-person-editor .image-editor-card{margin:11px 0}.archive-participant-editor{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:13px 0}.archive-person-editor>.btn.danger{margin-top:12px}.archive-poke-edit .pokemon-avatar{flex-shrink:0}@media(max-width:880px){.rule-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.archive-poke-editor-grid{grid-template-columns:1fr}.archive-participant-editor{grid-template-columns:1fr}}@media(max-width:600px){.rule-photo-grid{grid-template-columns:1fr;gap:14px}.rule-photo-tile>a,.rule-photo-tile>.image-empty{height:auto;min-height:190px}.rule-photo-tile>a img{max-height:450px}.archive-awards{grid-template-columns:1fr}.archive-entrant-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rule-editor-grid{grid-template-columns:1fr}.archive-bracket,.archive-entrants{padding:14px}.archive-award{padding:14px}.archive-person-avatar{width:60px;height:60px;flex-basis:60px}}

/* Rotated decorations must not create horizontal scrolling on narrow screens. */
#app{overflow-x:clip;overflow-y:visible}
