/* MAID☆STARS — design A "Holo Stage" */
:root{
  --pink:#FA68AC; --deep:#D6337F; --deep-h:#C22A70; --plum:#4A2340; --muted:#7a5670;
  --cream:#FFF7F3; --paper:#fff; --soft:#FFF0F6; --line:#F6D6E5;
  --gold:#F5B820; --win:#1f8a5b; --lose:#9a3a5c;
  --f:"Zen Maru Gothic","Hiragino Maru Gothic ProN","Hiragino Sans","Yu Gothic",system-ui,sans-serif;
  --gut:max(16px,env(safe-area-inset-left,0px));
  color-scheme:light;
}
*{box-sizing:border-box;margin:0}
[hidden]{display:none!important}
img{max-width:100%;height:auto}
html{scroll-behavior:smooth;scroll-padding-top:72px}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}
body{font-family:var(--f);color:var(--plum);background:var(--cream);line-height:1.75;overflow-x:clip;-webkit-text-size-adjust:100%}
button{font:inherit;color:inherit;cursor:pointer}
:focus-visible{outline:3px solid var(--deep);outline-offset:3px;border-radius:6px}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.skip{position:absolute;left:-999px;top:8px;background:#fff;padding:8px 14px;border-radius:99px;z-index:50}
.skip:focus{left:16px}
.holo{background:linear-gradient(115deg,#ffd6ec 0%,#fff2c9 22%,#d4f6ff 45%,#e7dcff 68%,#ffd6ec 100%)}

/* header */
.top{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:12px;
  padding:10px max(16px,env(safe-area-inset-right,0px)) 10px var(--gut);
  background:rgba(255,247,243,.82);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid rgba(246,214,229,.7)}
.brand img{height:36px;width:auto;display:block}
.nav{display:flex;gap:2px;margin-left:auto;flex-wrap:nowrap}
.nav a{font-weight:700;font-size:14px;color:var(--plum);text-decoration:none;padding:8px 12px;border-radius:99px;white-space:nowrap}
.nav a:hover{background:var(--soft);color:var(--deep)}
.nav-toggle{display:none}
.lang{border:2px solid var(--pink);background:#fff;color:var(--deep);font-weight:900;font-size:13px;border-radius:99px;min-width:56px;height:38px;padding:0 12px}
.lang:hover{background:var(--soft)}

/* hero */
.hero{position:relative;overflow:hidden;text-align:center;padding:56px var(--gut) 26px}
.hero::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.85;
  background:radial-gradient(circle at 20% 30%,rgba(255,255,255,.95) 0 2px,transparent 3px) 0 0/60px 60px,
             radial-gradient(circle at 70% 60%,rgba(255,255,255,.85) 0 1.5px,transparent 2.5px) 0 0/90px 90px}
.hero-in{position:relative;max-width:1100px;margin:0 auto}
.title{position:relative;width:min(640px,92vw);margin:0 auto;line-height:0}
.title img{display:block;width:100%;height:auto;filter:drop-shadow(0 10px 22px rgba(214,51,127,.18))}
.fan{--w:210px;position:relative;height:400px;margin:36px auto 0;max-width:1000px;cursor:default}
/* a hand of cards: all five turn around one point below them */
.fan img{position:absolute;left:50%;bottom:0;width:var(--w);border-radius:12px;box-shadow:0 18px 40px rgba(74,35,64,.25);transform-origin:50% 230%;
  transform:translateX(calc(-50% + var(--x,0px))) translateY(calc(var(--y,0px) + var(--lift,0px))) rotate(var(--r,0deg)) scale(var(--s,1));
  transition:transform .7s cubic-bezier(.2,.8,.2,1)}
.fan img:nth-child(1){--r:-6deg;z-index:0}
.fan img:nth-child(2){--r:-3deg;z-index:1}
/* hitomi grows from her own bottom edge, so she leads the hand without floating above the other maids */
.fan img:nth-child(3){--y:calc(var(--w) * -.14);--s:1.1;z-index:3;transform-origin:50% 100%}
.fan img:nth-child(4){--r:3deg;z-index:1}
.fan img:nth-child(5){--r:6deg;z-index:0}
/* spread wide enough that the four maids behind hitomi keep their faces in view */
.fan.spread img:nth-child(1){--x:calc(var(--w) * -1.02);--y:calc(var(--w) * .1);--r:-10deg}
.fan.spread img:nth-child(2){--x:calc(var(--w) * -.55);--r:-5deg}
.fan.spread img:nth-child(4){--x:calc(var(--w) * .55);--r:5deg}
.fan.spread img:nth-child(5){--x:calc(var(--w) * 1.02);--y:calc(var(--w) * .1);--r:10deg}
@media (hover:hover){.fan.spread img:hover{--lift:-14px}}
@media (max-width:900px){.fan{--w:180px;height:360px}}
.fan img:nth-child(2),.fan img:nth-child(4){transition-duration:.9s}
.fan img:nth-child(1),.fan img:nth-child(5){transition-duration:1.1s}
.shine{position:absolute;left:50%;bottom:calc(var(--w) * .14);width:var(--w);height:calc(var(--w) * 1.4);transform:translateX(-50%) scale(1.1);transform-origin:50% 100%;z-index:3;border-radius:12px;overflow:hidden;pointer-events:none}
.shine::after{content:"";position:absolute;inset:-20% -60%;background:linear-gradient(105deg,transparent 38%,rgba(255,255,255,.6) 48%,transparent 58%);animation:sweep 4.5s ease-in-out infinite;transform:translateX(-60%)}
@keyframes sweep{0%,30%{transform:translateX(-60%)}70%,100%{transform:translateX(60%)}}
.cta{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:72px;position:relative;z-index:4}
/* computers: logo, date and buttons on the left, the card fan on the right */
@media (min-width:1101px){
  .hero-in{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,6fr);grid-template-areas:"logo fan" "cta fan";align-items:center;column-gap:24px;max-width:1320px}
  .hero .title{grid-area:logo;align-self:end;width:100%}.hero .cta{grid-area:cta;margin-top:30px;align-self:start}
  .hero .fan{grid-area:fan;grid-row:1 / 3;margin:0 0 30px;height:350px;width:100%;--w:156px}
  .hero .cta{display:grid;grid-template-columns:auto auto;justify-content:center}.hero .cta .try{grid-column:1 / -1}
}
@media (min-width:1280px){.hero .fan{--w:180px;height:390px}}
@media (min-width:1440px){.hero .fan{--w:196px;height:415px}}

.btn{display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:16px;min-height:48px;padding:0 28px;border-radius:99px;border:0;text-decoration:none;transition:transform .15s,background .15s}
.btn.pri{background:var(--deep);color:#fff;box-shadow:0 8px 20px rgba(214,51,127,.3)}
.btn.pri:hover{background:var(--deep-h)}
.btn.alt{background:#fff;color:var(--deep);border:2px solid #ffd0e5}
.btn.alt:hover{border-color:var(--pink)}
.btn.ghost{background:transparent;color:var(--muted);border:2px solid var(--line)}
.btn:active{transform:scale(.97)}

/* sections */
.sec{max-width:1200px;margin:0 auto;padding:84px var(--gut) 0}
.sec-h{text-align:center;margin-bottom:34px}
.sec-h h2{font-size:clamp(26px,3.6vw,38px);font-weight:900;text-wrap:balance}
.sec-h p{color:var(--muted);margin-top:4px;text-wrap:pretty}

.types{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
.type{background:var(--paper);border-radius:20px;padding:14px 14px 16px;text-align:center;box-shadow:0 6px 24px rgba(250,104,172,.12)}
.type img{width:100%;border-radius:8px;display:block}
.type b{display:block;margin-top:10px;font-size:17px}
.type span{font-size:13px;color:var(--muted)}

.rules{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.rule{background:var(--paper);border-radius:24px;padding:30px 26px 24px;position:relative}
.rule .n{position:absolute;top:-18px;left:24px;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;font-weight:900;color:#fff;background:linear-gradient(135deg,var(--pink),#a77dff)}
.rule h3{font-size:20px;margin:6px 0 10px}
.rule ul{padding-left:1.15em}
.rule li{font-size:15px;margin-bottom:4px}
.rule li::marker{color:var(--pink)}
.special{margin-top:24px;border-radius:24px;padding:20px 26px;display:flex;gap:20px;align-items:center}
.special b{font-size:19px}
.special p{font-size:15px}

/* try a round */
.play{background:var(--paper);border-radius:32px;padding:28px;box-shadow:0 6px 24px rgba(250,104,172,.1)}
.board{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,170px) minmax(0,1fr);gap:20px;align-items:center;max-width:720px;margin:0 auto;padding-bottom:18px}
.side{display:flex;flex-direction:column;align-items:center;gap:8px}
.who{font-weight:900;font-size:14px;letter-spacing:.12em;color:var(--muted);white-space:nowrap}
.slot{width:min(200px,100%);aspect-ratio:370/518;perspective:900px;position:relative}
.slot.still > img,.slot.still::before{animation:none}.slot.still::before{opacity:0}
.slot-hand{position:absolute;left:50%;bottom:-16px;transform:translateX(-50%);display:inline-flex;align-items:center;gap:4px;background:#fff;border-radius:99px;padding:3px 12px 3px 4px;font-size:13px;font-weight:900;white-space:nowrap;box-shadow:0 4px 12px rgba(74,35,64,.15);z-index:2}
.slot-hand img{width:26px;height:26px;border-radius:50%;object-fit:cover;animation:none!important;box-shadow:none!important}
.slot.lost .slot-hand img{transform:none!important;filter:none!important;opacity:1!important}
.carry{display:block;margin-top:8px;font-size:12px;font-weight:900;color:#7b5cd6;background:#efe9ff;border-radius:99px;padding:3px 10px}
.slot img{width:100%;border-radius:10px;display:block;box-shadow:0 10px 26px rgba(74,35,64,.22)}
/* a round, in order: your card slides in, the rival's card turns over, then the result lands */
.slot > img{transition:transform .5s cubic-bezier(.3,1.3,.5,1),filter .45s,opacity .45s,box-shadow .45s}
.slot.in > img{animation:slotIn .42s cubic-bezier(.2,.9,.3,1.15) backwards}
.slot.out > img{animation:flipOut .19s ease-in forwards}
.slot.flip > img{animation:flipIn .42s cubic-bezier(.2,.8,.3,1.1) backwards}
.slot.won > img{transform:scale(1.03);box-shadow:0 0 0 3px #fff,0 0 0 6px var(--gold),0 18px 34px rgba(214,51,127,.35)}
.slot.won::before{content:"";position:absolute;inset:-4%;border-radius:16px;border:3px solid var(--gold);opacity:0;animation:ring .75s .1s ease-out;pointer-events:none}
.slot.lost > img{transform:rotate(90deg) scale(.7);filter:grayscale(.65);opacity:.7;transition-timing-function:cubic-bezier(.4,0,.2,1)}
.slot.rival.bump > img{animation:bumpR .45s ease-out}.slot.you.bump > img{animation:bumpL .45s ease-out}
.gain{position:absolute;right:-12px;top:34%;z-index:3;background:var(--gold);color:#fff;font-weight:900;font-size:18px;line-height:1;padding:6px 14px;border-radius:99px;white-space:nowrap;box-shadow:0 0 0 3px #fff,0 6px 14px rgba(74,35,64,.2);text-shadow:0 1px 0 rgba(0,0,0,.15);animation:gain .6s .15s cubic-bezier(.2,1.4,.4,1) backwards}
.result.pop .res-big{animation:resPop .5s cubic-bezier(.2,1.5,.4,1) backwards}
.result.pop.lose .res-big{animation:resDrop .5s ease-out backwards}
.result.pop .res-sub{animation:resFade .4s .25s ease-out backwards}
@keyframes slotIn{from{transform:translateY(46px) scale(.82);opacity:0}}
@keyframes flipOut{to{transform:rotateY(90deg)}}
@keyframes flipIn{from{transform:rotateY(-90deg)}}
@keyframes ring{0%{opacity:.9;transform:scale(.92)}100%{opacity:0;transform:scale(1.28)}}
@keyframes bumpR{35%{transform:translateX(14px) rotate(3deg)}}
@keyframes bumpL{35%{transform:translateX(-14px) rotate(-3deg)}}
@keyframes gain{from{transform:translateY(30px) scale(.4);opacity:0}}
@keyframes resPop{from{transform:scale(.4);opacity:0}}
@keyframes resDrop{from{transform:translateY(-10px);opacity:0}}
@keyframes resFade{from{opacity:0}}
.back{width:100%;height:100%;border-radius:10px;display:grid;place-items:center;background:linear-gradient(135deg,#ff8cc0,#a77dff);color:#fff;font-weight:900;letter-spacing:.06em;box-shadow:0 10px 26px rgba(74,35,64,.18);position:relative;overflow:hidden;text-align:center;padding:10px}
.back::before{content:"";position:absolute;inset:8px;border:2px solid rgba(255,255,255,.6);border-radius:7px}
.back.ghost{background:var(--soft);color:var(--muted);font-size:14px;box-shadow:none}
.back.ghost::before{border:2px dashed #ffbcd9}
.result{text-align:center;min-width:0;overflow-wrap:anywhere}
.vs{font-size:34px;font-weight:900;font-style:italic;color:var(--gold);text-shadow:2px 2px 0 #fff}
.res-big{display:block;font-size:24px;font-weight:900}
.res-big.win{color:var(--deep)}.res-big.lose{color:var(--lose)}.res-big.tie{color:#7b5cd6}
.res-sub{display:block;font-size:14px;color:var(--muted)}
.hand{display:flex;gap:16px;justify-content:center;margin-top:28px;flex-wrap:wrap}
.hand button{border:0;background:none;padding:0;width:130px;border-radius:10px;transition:transform .2s;position:relative}
.hand button img{width:100%;border-radius:10px;display:block;box-shadow:0 6px 16px rgba(74,35,64,.18)}
@media (hover:hover){.hand button:hover:not(:disabled){transform:translateY(-8px)}}
.hand button:disabled{cursor:default;opacity:.45}
.hand button.chosen{opacity:1;outline:3px solid var(--deep);outline-offset:3px}
.play-actions{text-align:center;margin-top:22px;min-height:48px}

/* deck builder */
.deckwrap{background:var(--paper);border-radius:32px;padding:28px;box-shadow:0 6px 24px rgba(250,104,172,.1)}
.deck{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}
.dslot{display:flex;flex-direction:column;gap:6px;align-items:stretch;text-align:center}
.dslot .lab{font-size:13px;font-weight:700;color:var(--muted)}
.dcard{aspect-ratio:370/518;position:relative;border-radius:10px}
.dcard.deal{animation:dealIn .5s cubic-bezier(.2,.8,.2,1) both;animation-delay:var(--d,0s)}
@keyframes dealIn{from{transform:rotateY(90deg) translateY(-12px);opacity:.3}to{transform:none;opacity:1}}
.dcard>img:first-child{width:100%;height:100%;object-fit:cover;border-radius:10px;display:block;box-shadow:0 6px 16px rgba(74,35,64,.18)}
.dslot .hand-ic{position:absolute;right:-6px;top:-6px;width:34px;height:34px;border-radius:50%;object-fit:cover;box-shadow:0 2px 6px rgba(74,35,64,.25)}
.deck-bar{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-top:22px;padding-top:18px;border-top:1px dashed var(--line)}
.deck-status{font-weight:900}
.deck-status.done{color:var(--win)}
.deck-hands{display:flex;gap:14px}
.deck-hands span{display:inline-flex;align-items:center;gap:6px;font-weight:700}
.deck-hands img{width:30px;height:30px;border-radius:50%;object-fit:cover}
.deck-btns{display:flex;gap:10px;flex-wrap:wrap}

/* gallery */
.gallery-wrap{background:var(--paper);border-radius:32px;padding:28px}
.filters{display:flex;flex-direction:column;gap:10px;align-items:center;margin-bottom:24px}
.chips{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.chip{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 16px;border-radius:99px;font-weight:700;font-size:14px;background:var(--soft);color:var(--plum);border:0}
.chip img{width:24px;height:24px;border-radius:50%;object-fit:cover}
.chip[aria-pressed=true]{background:var(--deep);color:#fff}
.chip:hover:not([aria-pressed=true]){background:#ffe0ee}
.fl-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap;justify-content:center}
.sel select{font:inherit;font-size:16px;font-weight:700;color:var(--plum);min-height:42px;padding:0 40px 0 16px;border-radius:99px;border:2px solid var(--line);background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Ccircle cx='13' cy='13' r='12' fill='%23FFE6F1'/%3E%3Cpath d='M8.5 11l4.5 4.5 4.5-4.5' stroke='%23D6337F' stroke-width='2.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 8px center;appearance:none;-webkit-appearance:none;max-width:100%}
.count{font-size:14px;color:var(--muted);font-variant-numeric:tabular-nums}
.reset{width:36px;height:36px;border-radius:50%;border:0;background:var(--soft);color:var(--deep);font-size:20px;line-height:1}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:20px 18px}
.g-card{border:0;background:none;padding:0;text-align:center;display:flex;flex-direction:column;gap:6px}
.g-card img{width:100%;border-radius:8px;display:block;box-shadow:0 4px 14px rgba(74,35,64,.15);transition:transform .25s,box-shadow .25s}
@media (hover:hover){.g-card:hover img{transform:translateY(-6px) rotate(-1deg);box-shadow:0 14px 26px rgba(74,35,64,.22)}}
.g-card b{font-size:14px;line-height:1.35}
.g-card span{font-size:12px;color:var(--muted);line-height:1.3}
html[lang=ja] .g-card b,html[lang=ja] .g-card span{word-break:keep-all;overflow-wrap:anywhere}
.more-row{text-align:center;margin-top:26px}
.empty{text-align:center;color:var(--muted);padding:30px 0}


.foot{text-align:center;padding:72px var(--gut) calc(56px + env(safe-area-inset-bottom,0px))}
.foot img{height:46px;width:auto}
.foot .ms-logo{display:block;width:min(320px,70vw);height:auto;margin:0 auto 18px}
.foot .by{font-size:12px;color:var(--muted);margin:0 0 4px}
.foot p{font-size:13px;color:var(--muted);margin-top:8px}

/* dialogs */
dialog{border:0;padding:0;margin:auto;background:transparent;max-width:100vw;max-height:100dvh;overflow:visible}
dialog::backdrop{background:rgba(42,16,48,.72);backdrop-filter:blur(3px)}
.zoom[open]{display:flex;align-items:center;gap:14px}
.zoom figure{text-align:center;color:#fff}
#zImg{width:min(400px,78vw,calc((100dvh - 140px) * .714));border-radius:14px;display:block;box-shadow:0 20px 60px rgba(0,0,0,.4)}
.zoom figcaption{margin-top:12px;font-weight:700}
.zoom figcaption span{display:block;font-size:14px;font-weight:500;opacity:.85}
.x{position:absolute;top:-8px;right:-8px;width:44px;height:44px;border-radius:50%;border:0;background:#fff;color:var(--deep);font-size:24px;z-index:2;box-shadow:0 4px 12px rgba(0,0,0,.2)}
.nav-b{width:48px;height:48px;border-radius:50%;border:0;background:rgba(255,255,255,.92);color:var(--deep);font-size:30px;line-height:1;flex:none}

@media (max-width:1020px){
  .nav-toggle{display:block;margin-left:auto;min-height:40px;padding:4px 12px;border:0;border-radius:99px;background:var(--soft);color:var(--plum);font-size:14px;font-weight:700}
  .nav{display:none;position:absolute;right:var(--gut);top:100%;width:max-content;max-width:calc(100vw - 2 * var(--gut));max-height:calc(100dvh - 66px);overflow-y:auto;
    padding:6px;border:1px solid var(--line);border-radius:16px;background:var(--paper);box-shadow:0 8px 24px rgba(74,35,64,.18)}
  .nav-toggle[aria-expanded=true]+.nav{display:grid}
  .nav a{display:flex;align-items:center;min-height:44px}
  .nav-toggle[hidden]~.lang{margin-left:auto}
}
@media (min-width:520px) and (max-width:1020px) and (max-height:540px){.nav{grid-template-columns:repeat(2,max-content)}}
@media (max-width:760px){
  .hero{padding-top:36px}
  .fan{--w:min(118px,23vw);height:250px;margin-top:26px}
  .cta{flex-direction:column;align-items:stretch;max-width:320px;margin-inline:auto;margin-top:52px}
  .sec{padding-top:64px}
  .types{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .types .type:last-child{grid-column:span 2;width:calc(50% - 6px);justify-self:center}
  .rules{grid-template-columns:minmax(0,1fr);gap:34px}
  .special{flex-direction:column;text-align:center}
  .play,.deckwrap,.gallery-wrap{padding:20px 14px;border-radius:24px}
  .board{gap:8px;grid-template-columns:minmax(0,1fr) 92px minmax(0,1fr)}
  .vs{font-size:26px}.res-big{font-size:18px}.res-sub{font-size:12px;line-height:1.5}
  .slot-hand{font-size:12px;padding:2px 9px 2px 3px}.slot-hand img{width:22px;height:22px}
  .hand{gap:10px}.hand button{width:calc((100% - 20px) / 3)}
  .deck{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 10px}
  .deck-bar{flex-direction:column;align-items:stretch;text-align:center}
  .deck-hands{justify-content:center}.deck-btns{justify-content:center}
  .grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 10px}
  .g-card b{font-size:12.5px}.g-card span{font-size:12px}
}
@media (max-width:760px) and (orientation:portrait){
  .zoom[open]{flex-wrap:wrap;justify-content:center;padding:18px 12px 0}
  .zoom figure{order:-1;width:100%}
  #zImg{margin:0 auto;width:min(400px,78vw,calc((100dvh - 190px) * .714))}
  .x{top:0;right:6px}
}

/* added: release pill, secret card, real card images, product, events */
/* release date with a scalloped foil edge */
.hero .release{position:relative;z-index:7;display:flex;justify-content:flex-end;margin:4px 6% -130px 0;line-height:0;pointer-events:none}
.badge{display:block;width:138px;height:auto;transform:rotate(-4deg);filter:drop-shadow(0 4px 6px rgba(139,37,86,.18));font-family:"Arial Rounded MT Bold","Hiragino Maru Gothic ProN",ui-rounded,system-ui,sans-serif;font-weight:700;text-anchor:middle;fill:#FFFEFA}
.badge .b-y{font-size:21px;letter-spacing:.9px}
.badge .b-d{font-size:58px;letter-spacing:-2.15px}
.badge .b-s{font-family:var(--f);font-size:21px;font-weight:750;letter-spacing:.3px}
html[lang=en] .badge .b-s{font-size:15px;letter-spacing:.01em;transform:translate(2.4px,-4px)}
@media (min-width:1101px){.hero .release{position:absolute;display:block;margin:0;right:auto;left:calc((100% - 24px) * .4 + 14px);top:-6px}}
/* below computers the fan is only as tall as its cards, so hitomi sits just under the logo */
@media (max-width:1100px){.fan{height:calc(var(--w) * 1.7 + 8px)}}
@media (max-width:760px){.hero .release{margin:2px 0 -76px}.badge{width:88px}}
/* Put the date below the logo so the hand is visible in the first landscape viewport. */
@media (min-width:520px) and (max-width:1100px) and (max-height:540px) and (orientation:landscape){
  .hero{padding-top:16px}
  .hero-in{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);grid-template-areas:"logo fan" "date fan" "cta cta";column-gap:16px;align-items:center}
  .hero .title{grid-area:logo;width:100%;align-self:end}
  .hero .release{grid-area:date;justify-content:center;align-self:start;margin:6px 0 0}
  .badge{width:88px}
  .hero .fan{grid-area:fan;--w:min(126px,12.8vw);width:100%;height:calc(var(--w) * 1.9);margin:0}
  .hero .cta{grid-area:cta;flex-direction:row;max-width:none;margin:18px 0 0;gap:8px}
  .hero .cta .btn{padding-inline:clamp(12px,2.1vw,24px)}
  .hero .ev-band{margin-top:20px}
}
/* buttons and event band */
.cta .btn.try{background:linear-gradient(90deg,#D6337F,#9b3fc4);color:#fff;box-shadow:0 8px 20px rgba(214,51,127,.3)}
.ev-band{position:relative;z-index:2;display:flex;justify-content:center;align-items:center;gap:8px 14px;flex-wrap:wrap;margin:34px auto 0;width:max-content;max-width:100%;padding:8px 20px 8px 8px;border-radius:99px;background:#fff;box-shadow:0 6px 18px rgba(214,51,127,.14);color:var(--plum);font-weight:900;text-decoration:none;font-size:14px;line-height:1.5}
.ev-band>span{background:var(--deep);color:#fff;border-radius:99px;padding:2px 12px;font-size:13px}.ev-band i{font-style:normal;color:var(--deep)}
@media (max-width:760px){.ev-band{font-size:13.5px;gap:4px 10px;border-radius:20px;padding:12px 16px}}
.ev-band:hover{box-shadow:0 8px 22px rgba(214,51,127,.26)}.ev-band:focus-visible{outline:3px solid var(--deep);outline-offset:3px}
.secret{position:relative;border-radius:8px;overflow:hidden}
.secret img{display:block;width:100%;filter:blur(4px) saturate(.8);transform:scale(1.06)}
.secret span{position:absolute;left:50%;top:50%;width:84px;height:84px;margin:-42px 0 0 -42px;border-radius:50%;display:grid;place-items:center;font-size:48px;font-weight:900;color:var(--deep);background:#fff;box-shadow:0 6px 18px rgba(214,51,127,.3)}
.aikome-img{width:100%;border-radius:8px;display:block}
.special .aikome-img{width:84px;flex:none;box-shadow:0 6px 16px rgba(74,35,64,.18)}
.dslot .aikome-img{border-radius:10px;box-shadow:0 6px 16px rgba(74,35,64,.18)}
.back-img{width:100%;border-radius:10px;display:block;box-shadow:0 10px 26px rgba(74,35,64,.18)}
.product{display:grid;grid-template-columns:minmax(0,300px) minmax(0,1fr);gap:40px;align-items:start;background:var(--paper);border-radius:32px;padding:32px}
.pack{width:100%;box-shadow:0 16px 36px rgba(74,35,64,.2);transform:rotate(-2deg)}
.pname{font-weight:900;font-size:20px;margin-bottom:14px}
.product dl{display:grid;gap:0;border-top:1px solid var(--line)}
.product dl div{display:grid;grid-template-columns:8em minmax(0,1fr);gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.product dt{font-weight:700;color:var(--deep)}
.product dd{margin:0;font-weight:700}
@media (min-width:761px) and (max-width:1000px){
  .product{grid-template-columns:30% minmax(0,1fr);gap:24px;padding:24px}
  .product dl div{grid-template-columns:6.5em minmax(0,1fr)}
}
.notes{margin-top:16px;padding-left:1.1em;font-size:14px;color:var(--muted)}
.notes li{margin-bottom:4px}
.maker{margin-top:16px;font-size:13px;color:var(--muted);line-height:1.9}
/* event */
.event{display:flex;flex-direction:column;gap:22px}
.ev-head{border-radius:28px;padding:28px 26px;text-align:center}
.ev-title{font-size:clamp(22px,3vw,30px);font-weight:900;text-wrap:balance}
.ev-sub{margin-top:8px;font-weight:700;max-width:40em;margin-inline:auto;text-wrap:pretty}
.ev-h{font-size:19px;font-weight:900;margin-bottom:10px}
.face{width:56px;height:56px;border-radius:50%;object-fit:cover;display:block;box-shadow:0 0 0 3px #fff,0 0 0 5px var(--ring,#FF8FC2),0 4px 10px rgba(74,35,64,.15);background:#fff}
.mgrid{display:flex;flex-wrap:wrap;justify-content:center;gap:18px 12px}
.mgrid>*{width:104px}
.mtile{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;border:0;background:none;padding:6px 2px;border-radius:14px;font:inherit;color:inherit}
.mtile .face{width:72px;height:72px}
.mtile b{font-size:14px;line-height:1.3}
.mt-tag{font-size:12px;font-weight:700;color:var(--deep);background:var(--soft);border-radius:10px;padding:2px 9px;max-width:100%;line-height:1.4;text-align:center;word-break:keep-all;overflow-wrap:anywhere}
@media (max-width:400px){.mtile .mt-tag{padding-inline:6px}}
.mtile.link{cursor:pointer}
@media (hover:hover){.mtile.link:hover{background:var(--soft)}}
.ss-d{font-weight:900;font-size:17px}.ss-p{font-weight:900;font-size:17px;color:var(--deep)}.ss-t{font-size:17px;font-weight:800;color:var(--plum);font-variant-numeric:tabular-nums}
.lineup .session{background:var(--paper);border-radius:24px;padding:20px}
.lineup.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.lineup.cards .ss-head{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline;margin-bottom:14px;padding-bottom:10px;border-bottom:1px dashed var(--line)}
.lineup.cards .mgrid{gap:14px 8px}
.lineup.cards .mgrid>*{width:88px}
.lineup.cards .mtile .face{width:60px;height:60px}
.ev-info{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.ev-box{background:var(--paper);border-radius:22px;padding:20px}
.ev-box dl{display:grid;border-top:1px solid var(--line)}
.ev-box dl div{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid var(--line)}
.ev-box dt{font-weight:700}.ev-box dd{margin:0;font-weight:900;text-align:right}
.ev-small{font-size:13px;color:var(--muted);margin-top:8px}
.ev-later{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:9px 0;font-weight:900;color:var(--muted)}
.ev-contact{text-align:center;font-size:14px;color:var(--muted)}
/* card list: Maid faces */
.maid-head{display:flex;align-items:center;gap:14px;margin:-6px 0 18px;padding:12px 16px;border-radius:18px;background:var(--soft)}
.maid-head[hidden]{display:none}
.maid-head b{display:block;font-size:17px}
.zname{display:inline-flex !important;align-items:center;gap:10px;font-size:18px !important;font-weight:900 !important;opacity:1 !important}
.zname .face{width:44px;height:44px}
@media (max-width:760px){
  .product{grid-template-columns:minmax(0,1fr);padding:22px 16px;gap:26px;border-radius:24px}
  .pack{max-width:240px;margin:0 auto;display:block}
  .product dl div{grid-template-columns:minmax(0,1fr);gap:2px}
    .lineup.cards{grid-template-columns:minmax(0,1fr)}
  .ev-info{grid-template-columns:minmax(0,1fr)}
  .mgrid,.lineup.cards .mgrid{gap:14px 6px}.mgrid>*,.lineup.cards .mgrid>*{width:calc((100% - 12px) / 3)}
  .lineup .session{padding:16px 10px}
  .ev-head{padding:22px 16px}
  .secret span{width:60px;height:60px;margin:-30px 0 0 -30px;font-size:34px}
}

/* secret Super Rare note at the end of the card list */
.g-secret{display:flex;flex-direction:column;gap:6px;text-align:center}
.g-secret .secret{border-radius:8px}
.g-secret p{font-size:13px;font-weight:900;color:var(--deep);line-height:1.5;margin:0}
.g-secret p:lang(ja){word-break:keep-all;overflow-wrap:normal}
@media (max-width:380px){
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .g-secret p{font-size:12px}
  .chip{padding-inline:12px}
}

/* line-break rules (audit 2026-11-18): Japanese prose breaks between phrases where the browser can;
   labels break only at spaces or punctuation, never inside a word */
html[lang=ja] body{word-break:auto-phrase;line-break:strict}
.type figcaption b,.type figcaption span,.ev-title,.pname,.ev-box dt,.ev-box dd,.ss-head span,.mtile b,.lab,.who,.chip,.btn,.ev-band b,.product dt,.maid-head b,.deck-status,.res-big{word-break:keep-all;overflow-wrap:anywhere}
.slot-hand{width:max-content}
.deck-hands{flex-wrap:wrap;justify-content:center;gap:8px 14px}
.deck-hands span{white-space:nowrap}
.ev-box dl div{flex-wrap:wrap}
.ev-box dd{margin-left:auto}
@media (max-width:900px){.type figcaption b{font-size:15px}.type figcaption span{font-size:12px}}
@media (max-width:760px){.pname{font-size:18px}}
@media (min-width:761px) and (max-width:1000px){.types{display:flex;flex-wrap:wrap;justify-content:center}.types .type{width:calc((100% - 32px) / 3)}}
.ev-venue{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px 10px;margin-top:10px;font-size:17px}
.ev-venue-l{font-size:13px;font-weight:900;color:#fff;background:var(--deep);border-radius:99px;padding:2px 12px}
.ev-venue b{word-break:keep-all}
.ev-venue a{font-size:14px;font-weight:700;color:var(--deep);background:#fff;border-radius:99px;padding:4px 14px;text-decoration:none;min-height:32px;display:inline-flex;align-items:center}
.ev-venue a::after{content:"↗";margin-left:4px;font-size:12px}

/* natural breaks: keep the hand with its dot, and avoid one short word alone on a last line */
.g-card span i{font-style:normal;white-space:nowrap}
.phrase{display:inline-block;white-space:nowrap}
.rule li,.ev-small,.ev-box dd,.product dd,.product li,.special p,.notes li,.res-sub,.ev-band b{text-wrap:pretty}
