/* iPad + desktop windows (Mac, 2026-10-16): every popup is one family, built for the big screen — same frame as the
   coin bag (coin-sheet-wide.css): width, corner, padding, shadow, 56px close button top-right, 34px title.
   Covered: Level/tasks, daily gift, grown-up check, locked shop, Make your player (+ Match game content).
   Phones keep their own styles. Loaded last. */
@media(min-width:761px) and (min-height:600px){
:root{
 --win-w:min(1060px,calc(100vw - 72px));--win-h:calc(100dvh - 48px);--win-pad:clamp(22px,2.6vw,32px);
 --win-rad:38px;--win-bg:#fffaf0;--win-ink:#5d3978;--win-shadow:0 24px 64px #3a245047;
}
/* ---------- the shared frame ---------- */
html body .gm-coin-sheet>div,
html body dialog#v2-dialog[open]:is(:has(.v2-daily-card),:has(#v2-parent-gate)),
html body dialog#modal[open]:has(.opening-store),
html body .v2q-card,
html body .av-card{
 position:relative;box-sizing:border-box!important;width:var(--win-w)!important;max-width:none!important;max-height:var(--win-h)!important;
 margin:auto!important;padding:var(--win-pad)!important;border:1px solid #fff8ed!important;border-radius:var(--win-rad)!important;
 background:var(--win-bg)!important;box-shadow:var(--win-shadow)!important;color:var(--win-ink);
}
/* close + speaker: same size and spot everywhere */
html body dialog#v2-dialog[open]:is(:has(.v2-daily-card),:has(#v2-parent-gate))>header>button,
html body dialog#modal[open]:has(.opening-store) .modal-top>.icon-button,
html body .v2q-card>.v2q-x,
html body .av-card .av-x{
 position:absolute!important;top:24px!important;right:24px!important;z-index:3;width:56px!important;height:56px!important;min-width:0!important;
 display:grid!important;place-items:center!important;padding:0!important;border:1px solid #fff!important;border-radius:50%!important;
 background:#f3ebfa!important;color:var(--win-ink)!important;font-size:30px!important;line-height:1!important;box-shadow:0 3px 7px #6b4a6530!important;
}
html body .v2q-card>.v2q-say{position:absolute!important;top:24px!important;right:92px!important;z-index:3;width:56px!important;height:56px!important;font-size:24px!important;border-radius:50%!important}
/* titles */
html body dialog#v2-dialog:has(.v2-daily-card) #v2-title,
html body dialog#modal[open]:has(.opening-store) #modal-title,
html body .av-card .av-top h2{font-size:34px!important;line-height:1.1!important;color:var(--win-ink)!important;font-weight:900!important;margin:0!important}
html body dialog#v2-dialog[open]:is(:has(.v2-daily-card),:has(#v2-parent-gate))>header,
html body dialog#modal[open]:has(.opening-store) .modal-top{position:static!important;min-height:56px;margin:0 0 6px!important;padding:0 150px 0 0!important}

/* ---------- 1. Level / tasks: two columns ---------- */
html body .v2q-card{
 display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;grid-template-rows:auto auto auto auto minmax(0,1fr)!important;
 column-gap:clamp(18px,2.4vw,30px)!important;row-gap:12px!important;overflow:auto!important;align-content:start;
}
html body .v2q-card>.v2q-head{grid-column:1/-1;grid-row:1;margin-right:150px!important;min-height:56px}
html body .v2q-card>.v2q-head img.lv{width:64px!important;height:64px!important}
html body .v2q-card>.v2q-head b{font-size:30px!important}
html body .v2q-card>.v2q-head small{font-size:17px!important}
html body .v2q-card>.v2q-head .bar{height:16px!important}
html body .v2q-card>.v2q-sec{font-size:24px!important;margin:6px 2px 0!important}
html body .v2q-card>.v2q-sec:nth-of-type(1){grid-column:1;grid-row:2}
html body .v2q-card>.v2q-tasks{grid-column:1;grid-row:3;gap:12px!important}
html body .v2q-card>.v2q-prizebox{grid-column:1;grid-row:4/6;align-self:stretch;display:flex!important;flex-direction:column;justify-content:center;align-items:center;text-align:center}
html body .v2q-card>.v2q-prizebox img{width:clamp(90px,15dvh,140px)!important;height:clamp(90px,15dvh,140px)!important}
html body .v2q-card>.v2q-prizebox span{display:flex;flex-direction:column;align-items:center}
html body .v2q-card>.v2q-sec:nth-of-type(2){grid-column:2;grid-row:2}
html body .v2q-card>.v2q-hallo{grid-column:2;grid-row:3}
html body .v2q-card>.v2q-sec:nth-of-type(3){grid-column:2;grid-row:4}
html body .v2q-card>.v2q-week{grid-column:2;grid-row:5;gap:12px!important;align-content:start}
html body .v2q-card .v2q-task{min-height:clamp(150px,22dvh,190px)!important;border-radius:22px!important;gap:8px!important}
html body .v2q-card .v2q-task img{width:clamp(70px,10dvh,96px)!important;height:clamp(70px,10dvh,96px)!important}
html body .v2q-card .v2q-task small{font-size:18px!important;line-height:1.2!important}
html body .v2q-card .v2q-prizebox{min-height:110px;padding:16px 20px!important;gap:18px!important;border-radius:24px!important}
html body .v2q-card .v2q-prizebox img{width:84px!important;height:84px!important}
html body .v2q-card .v2q-prizebox b{font-size:24px!important}
html body .v2q-card .v2q-prizebox small{font-size:17px!important}
html body .v2q-card .v2q-hallo{padding:14px 16px!important;gap:14px!important;border-radius:22px!important}
html body .v2q-card .v2q-hallo img.pk{width:58px!important;height:58px!important}
html body .v2q-card .v2q-hallo img.hat{width:48px!important;height:48px!important}
html body .v2q-card .v2q-hallo small{font-size:16px!important;line-height:1.3!important}
html body .v2q-card :is(.v2q-hallo,.v2q-wk) em{font-size:19px!important;min-width:44px}
html body .v2q-card .v2q-wk{min-height:56px;gap:14px!important}
html body .v2q-card .v2q-wk img{width:52px!important;height:52px!important}
html body .v2q-card .v2q-wk small{font-size:18px!important}
html body .v2q-card .bar{height:14px!important}

/* ---------- 2. Daily gift: big present left, the story right ---------- */
html body dialog#v2-dialog:has(.v2-daily-card) .v2-content{overflow:visible!important}
html body dialog#v2-dialog .v2-daily-card{
 display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;column-gap:clamp(20px,3vw,40px)!important;row-gap:12px!important;
 align-content:center;align-items:center;text-align:center;
}
html body dialog#v2-dialog .v2-daily-card>*{grid-column:2;margin:0!important}
html body dialog#v2-dialog .v2-daily-card>.daily-gift-art{grid-column:1;grid-row:1/span 6;width:min(100%,420px,52dvh)!important;height:auto!important;justify-self:center}
html body dialog#v2-dialog .v2-daily-card>.daily-intro{font-size:24px!important}
html body dialog#v2-dialog .v2-daily-card>.v2l-cal{display:flex!important;justify-content:center;gap:10px!important}
html body dialog#v2-dialog .v2-daily-card>.v2l-cal>span{width:60px!important;height:72px!important;font-size:30px!important}
html body dialog#v2-dialog .v2-daily-card>.v2l-cal-note{font-size:19px!important}
html body dialog#v2-dialog .v2-daily-card>h3{font-size:28px!important}
html body dialog#v2-dialog .v2-daily-card>p:not(.daily-intro):not(.v2l-cal-note){font-size:20px!important}
html body dialog#v2-dialog .v2-daily-card>button{min-height:76px!important;font-size:26px!important;border-radius:24px!important;margin-top:8px!important}

/* ---------- 3. Grown-up check: everything centered ---------- */
html body dialog#v2-dialog[open]:has(#v2-parent-gate)>header{display:flex!important;justify-content:center!important;padding:0 80px!important}
html body dialog#v2-dialog[open]:has(#v2-parent-gate)>header>div{flex:none!important;width:auto!important;text-align:center}
html body dialog#v2-dialog[open]:has(#v2-parent-gate) .grown-up-check-logo{width:auto!important;height:clamp(110px,17dvh,160px)!important;margin:0 auto!important;display:block}
html body dialog#v2-dialog[open]:has(#v2-parent-gate) #v2-parent-gate{
 display:flex!important;flex-direction:column!important;align-items:center!important;text-align:center!important;gap:16px!important;
 width:min(560px,100%)!important;margin:0 auto!important;
}
html body dialog#v2-dialog[open]:has(#v2-parent-gate) #v2-parent-gate>*{width:100%!important;margin:0!important}
html body dialog#v2-dialog[open]:has(#v2-parent-gate) .gate-reason{font-size:24px!important}
html body dialog#v2-dialog[open]:has(#v2-parent-gate) #v2-parent-gate label{display:flex!important;flex-direction:column;align-items:center;gap:10px}
html body dialog#v2-dialog[open]:has(#v2-parent-gate) #v2-parent-gate label span{font-size:20px!important}
html body dialog#v2-dialog[open]:has(#v2-parent-gate) #v2-parent-gate label b{font-size:40px!important;line-height:1.15}
html body dialog#v2-dialog[open]:has(#v2-parent-gate) #v2-parent-gate input{width:min(420px,100%)!important;max-width:none!important;height:80px!important;font-size:34px!important;text-align:center;border-radius:22px!important}
html body dialog#v2-dialog[open]:has(#v2-parent-gate) #v2-parent-gate>button{min-height:76px!important;font-size:26px!important;border-radius:24px!important}
html body dialog#v2-dialog[open]:has(#v2-parent-gate) #v2-parent-gate>button:last-child{min-height:56px!important;font-size:21px!important}

/* ---------- 4. Locked shop: the shop big on the left, progress right ---------- */
html body dialog#modal[open]:has(.opening-store){
 display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;column-gap:clamp(20px,3vw,40px)!important;row-gap:16px!important;
 align-content:center;align-items:center;overflow:auto!important;
}
html body dialog#modal[open]:has(.opening-store)>*{grid-column:2;margin:0!important}
html body dialog#modal[open]:has(.opening-store)>.modal-top{grid-column:1/-1}
html body dialog#modal[open]:has(.opening-store)>.opening-store{grid-column:1;grid-row:2/span 5;height:auto!important;min-height:0!important;display:grid;place-items:center}
html body dialog#modal[open]:has(.opening-store) .opening-store .shop-building{width:min(400px,50dvh,40vw)!important;height:min(400px,50dvh,40vw)!important}
html body dialog#modal[open]:has(.opening-store) .peek-row{display:flex!important;flex-wrap:nowrap;justify-content:center;gap:10px!important}
html body dialog#modal[open]:has(.opening-store) .peek-toy{width:64px!important;height:64px!important;border-radius:20px!important}
html body dialog#modal[open]:has(.opening-store) .peek-toy .toy{width:56px!important;height:56px!important}
html body dialog#modal[open]:has(.opening-store) .kid-progress{gap:16px!important}
html body dialog#modal[open]:has(.opening-store) .kid-progress>.toy{width:96px!important;height:96px!important}
html body dialog#modal[open]:has(.opening-store) .kid-progress>span:first-child{font-size:34px!important}
html body dialog#modal[open]:has(.opening-store) .kid-progress strong{font-size:56px!important}
html body dialog#modal[open]:has(.opening-store)>.kid-help{justify-self:center;width:56px!important;height:56px!important}
html body dialog#modal[open]:has(.opening-store)>.btn{min-height:72px!important;font-size:24px!important;border-radius:24px!important}

/* ---------- 5. Make your player = a dressing room ----------
   wardrobe tabs (left) | curtained stage with a spotlight + rug (middle) | Girl/Boy switch, big choice tiles, "That's me!" (right) */
html body .av-card{
 display:grid!important;grid-template-columns:clamp(96px,10vw,124px) minmax(0,1fr) minmax(300px,36%)!important;
 grid-template-rows:auto auto minmax(0,1fr) auto!important;column-gap:clamp(14px,2vw,24px)!important;row-gap:14px!important;
 height:min(var(--win-h),860px)!important;max-height:min(var(--win-h),860px)!important;
}
html body .av-card>.av-top{grid-column:1/-1;grid-row:1;display:block!important;min-height:56px;padding-right:80px}
html body .av-card>.av-top h2{text-align:left!important;line-height:56px!important}
/* wardrobe: tall tab buttons stacked like drawers */
html body .av-card>.av-tabs{grid-column:1;grid-row:2/-1;display:grid!important;grid-template-columns:1fr!important;grid-auto-rows:minmax(0,1fr);gap:10px!important;align-self:stretch}
html body .av-card .av-tabs button{position:relative;min-height:0!important;height:auto!important;border-radius:22px!important;background:#f4eef8!important;border:2px solid #fff!important;box-shadow:0 3px 0 #e6dcef!important;color:#7a6690!important;gap:4px!important}
html body .av-card .av-tabs button span{font-size:clamp(30px,5dvh,40px)!important}
html body .av-card .av-tabs button small{font-size:16px!important}
html body .av-card .av-tabs button.on{background:#ffe9a6!important;box-shadow:0 3px 0 #e6c35d!important;color:var(--win-ink)!important}
html body .av-card .av-tabs button.on::after{content:"";position:absolute;right:-13px;top:50%;width:16px;height:16px;background:#ffe9a6;border-top:2px solid #fff;border-right:2px solid #fff;transform:translateY(-50%) rotate(45deg);border-radius:0 4px 0 0}
/* the stage */
html body .av-card>.av-stage{
 grid-column:2;grid-row:2/-1;min-height:0;border-radius:30px!important;align-items:end!important;padding-bottom:6%;isolation:isolate;
 background:radial-gradient(60% 55% at 50% 30%,#fffbe8 0%,#fff3d0 35%,transparent 70%),linear-gradient(#f6eefc 0 72%,#efd9c4 72% 100%)!important;
}
html body .av-card>.av-stage::before{ /* scalloped valance + tied-back curtains */
 content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
 background:
  radial-gradient(circle at 50% 0,#f39cbd 0 26px,transparent 27px) 0 0/52px 34px repeat-x,
  linear-gradient(#f39cbd,#f39cbd) 0 0/100% 10px no-repeat,
  radial-gradient(120% 70% at 0 0,#f7b2cc 0 48%,#ef90b3 49% 60%,transparent 61%) 0 0/24% 78% no-repeat,
  radial-gradient(120% 70% at 100% 0,#f7b2cc 0 48%,#ef90b3 49% 60%,transparent 61%) 100% 0/24% 78% no-repeat;
}
html body .av-card>.av-stage::after{ /* round rug under the player */
 content:"";position:absolute;left:50%;bottom:4%;z-index:-1;width:min(78%,360px);aspect-ratio:3.4;transform:translateX(-50%);border-radius:50%;
 background:radial-gradient(closest-side,#c9b2e8 0 62%,#b79ddd 63% 74%,#c9b2e8 75% 100%);box-shadow:0 6px 0 #a98fd0;
}
html body .av-card .av-doll{max-height:none!important;height:clamp(280px,calc(min(var(--win-h),860px) - 210px),600px)!important;width:auto!important;aspect-ratio:2/3;position:relative;z-index:1}
html body .av-card .av-doll canvas{width:100%!important;height:100%!important}
html body .av-card .av-dice{top:16px!important;right:16px!important;width:60px!important;height:60px!important;font-size:30px!important;z-index:2}
/* right panel */
html body .av-card>.av-kind{grid-column:3;grid-row:2;display:grid!important;grid-template-columns:1fr 1fr;gap:6px!important;padding:6px;border-radius:26px;background:#f4eef8}
html body .av-card .av-kind-b{min-height:68px!important;font-size:22px!important;border-radius:20px!important;background:transparent!important;box-shadow:none!important}
html body .av-card .av-kind-b.on{background:#fff!important;box-shadow:0 3px 8px #6b4a6526,inset 0 0 0 3px #ffd56a!important}
html body .av-card .av-kind-face{width:52px!important;height:52px!important}
html body .av-card>.av-opts{
 grid-column:3;grid-row:2/4;align-self:stretch;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:max-content;
 gap:12px!important;align-content:start;justify-items:center;margin:0!important;padding:16px;min-height:0!important;overflow-y:auto;overflow-x:hidden;
 border-radius:26px;background:#fff;box-shadow:inset 0 0 0 2px #f1e8f6;flex-wrap:initial!important;
}
html body .av-card .av-opts>.av-opt{width:100%!important;height:auto!important;aspect-ratio:1;min-width:0!important;border-radius:20px!important}
html body .av-card .av-opts>.av-opt{position:relative!important;padding:0!important;background:#f8f3fb!important;overflow:hidden}
html body .av-card .av-opts>.av-opt.on{background:#fff6d6!important}
html body .av-card .av-opts>.av-opt .av-thumb{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;transform:none!important}
html body .av-card .av-opts>.av-opt .av-thumb.body{background-size:215%!important;background-position:50% 58%!important}
html body .av-card .av-opts>.av-opt .av-none{font-size:34px!important}
html body .av-card .av-opts>.av-dot{width:min(100%,84px)!important;height:auto!important;aspect-ratio:1;min-width:0!important}
html body .av-card>.av-go{grid-column:3;grid-row:4;min-height:80px!important;font-size:28px!important;border-radius:26px!important;margin:0!important}

/* ---------- 6. Match game: same game frame, content scaled up to fill it ---------- */
html body.ui2 dialog#modal.arcade-inline .hunter-job{width:min(960px,100%)!important;gap:clamp(10px,2.2cqh,22px)!important;display:grid;justify-items:center}
html body.ui2 dialog#modal.arcade-inline .hunter-job>.mission-picture{width:min(760px,100%)!important;height:auto!important}
html body.ui2 dialog#modal.arcade-inline .hunter-job>p{font-size:clamp(20px,3.4cqh,28px)!important}
html body.ui2 dialog#modal.arcade-inline .hunter-job-target{height:auto!important}
html body.ui2 dialog#modal.arcade-inline .hunter-job-target>.toy{width:min(28cqh,300px)!important;height:min(28cqh,300px)!important}
html body.ui2 dialog#modal.arcade-inline .hunter-job-stars{font-size:clamp(28px,4.5cqh,40px)!important;letter-spacing:.2em}
html body.ui2 dialog#modal.arcade-inline .hunter-match-choices{width:100%!important;gap:clamp(14px,2vw,24px)!important}
html body.ui2 dialog#modal.arcade-inline .hunter-match-choices .little-toy{height:min(26cqh,260px)!important;border-radius:28px!important}
html body.ui2 dialog#modal.arcade-inline .hunter-match-choices .little-toy .toy{width:min(20cqh,200px)!important;height:min(20cqh,200px)!important}
}

/* ---------- 7. Dumpling Shuffle: board as big as the game frame allows ----------
   landscape: board left (full height) + side column with the words and buttons; portrait: stacked, board fills the width. */
@media(min-width:761px) and (min-height:600px){
 html body.ui2 dialog#modal.arcade-inline #dumpling-shuffle{width:100%!important;max-width:none!important;height:100%!important;box-sizing:border-box;padding:0 clamp(8px,2cqw,28px)}
 html body.ui2 dialog#modal.arcade-inline #dumpling-shuffle .shuffle-board{width:var(--sb)!important;max-width:none!important;height:auto!important;aspect-ratio:1/1!important;border-radius:36px!important;justify-self:center;align-self:center}
 html body.ui2 dialog#modal.arcade-inline #dumpling-shuffle .shuffle-demo-heading{height:auto!important;gap:16px}
 html body.ui2 dialog#modal.arcade-inline #dumpling-shuffle .shuffle-demo-heading strong{font-size:24px!important;color:var(--win-ink)}
 html body.ui2 dialog#modal.arcade-inline #dumpling-shuffle .shuffle-skip{min-height:52px!important;padding:0 24px!important;border-radius:999px!important;background:#f3ebfa!important;border:1px solid #fff!important;box-shadow:0 3px 7px #6b4a6526!important;font-size:20px!important;text-decoration:none!important;color:var(--win-ink)!important}
 html body.ui2 dialog#modal.arcade-inline #dumpling-shuffle .shuffle-status{font-size:clamp(24px,3.6cqh,32px)!important;line-height:1.25!important;margin:0!important;min-height:0!important;color:var(--win-ink)!important}
 html body.ui2 dialog#modal.arcade-inline #dumpling-shuffle .shuffle-next{min-height:80px!important;font-size:28px!important;border-radius:26px!important;margin:0!important}
 html body.ui2 dialog#modal.arcade-inline #dumpling-shuffle .shuffle-help{font-size:21px!important;min-height:52px!important}
 html body.ui2 dialog#modal.arcade-inline #dumpling-shuffle .shuffle-host span{font-size:clamp(14px,2.2cqh,20px)!important;padding:6px 14px!important;border-radius:999px!important}
 html body.ui2 dialog#modal.arcade-inline #dumpling-shuffle .shuffle-stage-caption{font-size:clamp(15px,2.4cqh,20px)!important}
 html body.ui2 dialog#modal.arcade-inline #dumpling-shuffle .shuffle-rare-label{font-size:clamp(12px,1.9cqh,17px)!important}
 html body.ui2 dialog#modal.arcade-inline #dumpling-shuffle .shuffle-yours{font-size:clamp(14px,2.2cqh,19px)!important;padding:4px 14px!important;border-radius:999px!important}
}
@media(min-width:761px) and (min-height:600px) and (orientation:landscape){
 html body.ui2 dialog#modal.arcade-inline #dumpling-shuffle{
  --sb:min(calc(100cqh - 24px),calc(100cqw - 420px),800px);
  display:grid!important;grid-template-columns:var(--sb) minmax(280px,1fr)!important;grid-template-rows:1fr auto auto auto auto 1fr!important;
  column-gap:clamp(24px,4cqw,56px)!important;row-gap:22px!important;align-items:center;
 }
 html body.ui2 dialog#modal.arcade-inline #dumpling-shuffle>.shuffle-board{grid-column:1;grid-row:1/-1}
 html body.ui2 dialog#modal.arcade-inline #dumpling-shuffle>.shuffle-demo-heading{grid-column:2;grid-row:2;justify-content:space-between!important}
 html body.ui2 dialog#modal.arcade-inline #dumpling-shuffle>.shuffle-status{grid-column:2;grid-row:3;text-align:left!important}
 html body.ui2 dialog#modal.arcade-inline #dumpling-shuffle>.shuffle-next{grid-column:2;grid-row:4}
 html body.ui2 dialog#modal.arcade-inline #dumpling-shuffle>.shuffle-help{grid-column:2;grid-row:5;justify-self:start}
}
@media(min-width:761px) and (min-height:600px) and (orientation:portrait){
 html body.ui2 dialog#modal.arcade-inline #dumpling-shuffle{
  --sb:min(calc(100cqw - 56px),calc(100cqh - 250px),820px);
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:18px!important;
 }
 html body.ui2 dialog#modal.arcade-inline[open]:has(#dumpling-shuffle){height:calc(100dvh - 110px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;max-height:none!important}
 html body.ui2 dialog#modal.arcade-inline #dumpling-shuffle>.shuffle-demo-heading{width:var(--sb);justify-content:space-between!important}
 html body.ui2 dialog#modal.arcade-inline #dumpling-shuffle>.shuffle-status{text-align:center!important;max-width:var(--sb)}
 html body.ui2 dialog#modal.arcade-inline #dumpling-shuffle>.shuffle-next{width:min(var(--sb),560px)!important}
}
