@font-face { font-family: "Zen Maru Gothic"; font-weight: 500; font-style: normal; font-display: swap; src: url("../../fonts/zen-maru-gothic-500.ea89d239.woff") format("woff"); }
@font-face { font-family: "Zen Maru Gothic"; font-weight: 700; font-style: normal; font-display: swap; src: url("../../fonts/zen-maru-gothic-700.a2163430.woff") format("woff"); }
@font-face { font-family: "Zen Maru Gothic"; font-weight: 900; font-style: normal; font-display: swap; src: url("../../fonts/zen-maru-gothic-900.a6a877aa.woff") format("woff"); }



:root {
  --ink: #2b2118; --ink2: #6b5a45; --muted: #7a6650; --paper: #f7eedb; --paper2: #ecdfc2; --card: #fffaf0; --line: #e2d2b0;
  --wood: #6b4426; --wood2: #8a5a33; --brass: #d4ac55; --brass2: #a9802f; --brass3: #f0d48a;
  --team: #2f55a4; --team-d: #1d3569; --team-l: #6d8fd0;
  --ok: #4f9a3a; --ok-d: #2d5e20; --ok-l: #7fcb5f; --bad: #c8462f; --warn: #d9902a; --gray: #8f8f8c;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px); --safe-r: env(safe-area-inset-right, 0px);
  --ease: cubic-bezier(.2, .9, .25, 1.15);
  --out: cubic-bezier(.16, 1, .3, 1);
  --glass: linear-gradient(180deg, rgba(48, 38, 28, .9), rgba(20, 15, 11, .86));
  --glass-edge: inset 0 1px 0 rgba(255, 240, 210, .16), inset 0 0 0 1px rgba(255, 240, 210, .09), 0 4px 14px rgba(0, 0, 0, .45);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .32 0 0 0 0 .2 0 0 0 .6 -.22'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23n%29'/%3E%3C/svg%3E");
  --check-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M8 16.5l5 5L24.5 10' stroke='%23fff' stroke-width='4.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #1d1a17; color: var(--paper); overscroll-behavior: none; }
body { font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif; font-weight: 700; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: none; -webkit-font-smoothing: antialiased; }
#stage { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
#ui { position: fixed; inset: 0; pointer-events: none; }
#ui > * { pointer-events: auto; }
#ui > #floats, #ui > #fade, #ui > #toast { pointer-events: none; }
#ui > .screen, .screen { position: absolute; inset: 0; pointer-events: none; }
.screen > * { pointer-events: auto; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
button:focus-visible { outline: 3px solid #fff7; outline-offset: 2px; }
.ic { display: inline-block; flex: none; width: 22px; height: 22px; vertical-align: middle; line-height: 0; }
.ic svg { display: block; width: 100%; height: 100%; overflow: visible; }
.res .ic, .power .ic, .hud-count .ic, .hud-end, .collect .ic { filter: drop-shadow(0 0 .7px rgba(255, 244, 220, .85)) drop-shadow(0 1px 1px rgba(0, 0, 0, .5)); }
.btn { position: relative; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 48px; padding: 0 22px; border-radius: 16px;
  background: linear-gradient(180deg, #fffbf1 0%, #f6e7c6 52%, #ead3a3 100%); color: var(--ink); font-weight: 900; font-size: 17px; letter-spacing: .04em;
  box-shadow: inset 0 1px 0 #fff, inset 0 -3px 0 rgba(120, 90, 40, .12), 0 4px 0 #9c7d4c, 0 7px 14px rgba(0, 0, 0, .38);
  transition: transform .12s var(--ease), box-shadow .12s, filter .2s; }
.btn .ic { width: 1.15em; height: 1.15em; margin-left: -.15em; }
.btn .ic:last-child:not(:first-child) { margin: 0 -.2em 0 0; }
.btn:active { transform: translateY(3px); box-shadow: inset 0 1px 0 #fff, 0 1px 0 #9c7d4c, 0 3px 8px rgba(0, 0, 0, .35); }
.btn[disabled], .btn.off { filter: grayscale(.85) brightness(.9); opacity: .62; cursor: default; }
.btn[disabled]:active { transform: none; }
.btn-big { min-height: 60px; padding: 0 44px; font-size: 22px; border-radius: 20px; }
.btn-go { min-height: 66px; min-width: 156px; font-size: 25px; border-radius: 22px; color: #fff; letter-spacing: .12em;
  background: linear-gradient(180deg, var(--team-l) 0%, var(--team) 58%, var(--team) 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), inset 0 -4px 0 rgba(0, 0, 0, .14), 0 5px 0 var(--team-d), 0 9px 20px rgba(0, 0, 0, .5); text-shadow: 0 2px 0 rgba(0, 0, 0, .28); }
.btn-go .ic { width: 28px; height: 28px; filter: drop-shadow(0 0 .7px rgba(255, 255, 255, .9)) drop-shadow(0 1px 0 rgba(0, 0, 0, .3)); }
.btn-go:active { box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), 0 1px 0 var(--team-d), 0 3px 10px rgba(0, 0, 0, .5); }
.btn-sub { background: linear-gradient(180deg, #f3ede0 0%, #ddd2bb 100%); box-shadow: inset 0 1px 0 #fff, inset 0 -3px 0 rgba(0, 0, 0, .06), 0 4px 0 #8d816a, 0 6px 12px rgba(0, 0, 0, .3); }
.btn-sub:active { box-shadow: inset 0 1px 0 #fff, 0 1px 0 #8d816a; }
.btn-ok { color: #fff; background: linear-gradient(180deg, var(--ok-l) 0%, #5fae45 50%, var(--ok) 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .32), inset 0 -3px 0 rgba(0, 0, 0, .12), 0 4px 0 var(--ok-d), 0 6px 12px rgba(0, 0, 0, .32); text-shadow: 0 1px 0 rgba(0, 0, 0, .3); }
.btn-ok:active { box-shadow: inset 0 2px 0 rgba(255, 255, 255, .32), 0 1px 0 var(--ok-d); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.btn-sm .ic { width: 16px; height: 16px; }
.btn-round { width: 44px; height: 44px; border-radius: 50%; background: var(--glass); color: var(--paper); display: grid; place-items: center; box-shadow: var(--glass-edge); }
.btn-round .ic { width: 22px; height: 22px; }
.btn-round:active { transform: scale(.92); }
#s-title { display: grid; place-items: center; background: radial-gradient(ellipse at 50% 45%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .66) 100%); }
.t-box { text-align: center; padding: 24px; transform: translateY(-4vh); animation: titleIn .9s var(--out) both; }
@keyframes titleIn { from { opacity: 0; transform: translateY(calc(-4vh + 18px)) scale(.97); } }
.t-kicker { margin: 0 0 8px; color: var(--brass3); letter-spacing: .34em; font-size: 14px; text-shadow: 0 2px 8px #000; display: flex; align-items: center; justify-content: center; gap: 10px; }
.t-kicker::before, .t-kicker::after { content: ""; width: 28px; height: 2px; border-radius: 1px; background: linear-gradient(90deg, rgba(212, 172, 85, 0), var(--brass)); }
.t-kicker::after { transform: scaleX(-1); }
.t-logo { margin: 0; display: flex; flex-direction: column; align-items: center; line-height: 1; font-weight: 900;
  color: #fff7e6; text-shadow: 0 3px 0 #8a5a33, 0 6px 0 #5a3a20, 0 12px 24px rgba(0, 0, 0, .8); }
.t-logo span:first-child { font-size: clamp(44px, 13vw, 92px); letter-spacing: .06em; }
.t-logo span:last-child { font-size: clamp(56px, 17vw, 120px); letter-spacing: .18em; margin-top: 2px; color: var(--team); text-shadow: 0 3px 0 #fff, 0 6px 0 #5a3a20, 0 12px 24px rgba(0, 0, 0, .8); -webkit-text-stroke: 1px #fff; }
.t-tag { margin: 16px 0 26px; font-size: 15px; line-height: 1.6; color: #f3e6cc; text-shadow: 0 2px 6px #000; }
.btn-start { animation: breathe 2.4s ease-in-out 1s infinite; }
.btn-start .ic { width: 22px; height: 22px; color: var(--team); }
@keyframes breathe { 50% { transform: translateY(-2px) scale(1.035); box-shadow: inset 0 1px 0 #fff, inset 0 -3px 0 rgba(120, 90, 40, .12), 0 6px 0 #9c7d4c, 0 0 0 8px rgba(240, 212, 138, .18), 0 12px 22px rgba(0, 0, 0, .4); } }
.btn-start:active { animation: none; }
.t-more { margin-top: 16px; }
.t-daily small { margin-left: .35em; font-size: 12px; color: var(--muted); }
.t-chal { max-width: 340px; margin: -8px auto 20px; padding: 12px 14px 14px; border-radius: 18px; background: linear-gradient(180deg, #fffaf0, #f4e8cf); color: var(--ink);
  box-shadow: 0 0 0 2px var(--brass), 0 10px 24px rgba(0, 0, 0, .5); animation: chalIn .6s var(--out) .5s both; }
.t-chal p { margin: 0 0 10px; font-size: 14px; line-height: 1.55; text-wrap: balance; }
.t-chal b { display: block; margin-bottom: 2px; font-size: 17px; color: #8a5a12; }
.t-chal .btn { width: 100%; }
@keyframes chalIn { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.t-ver { position: absolute; bottom: calc(10px + var(--safe-b)); left: 0; right: 0; text-align: center; margin: 0; font-size: 11px; color: rgba(255, 255, 255, .5); }
.t-ver:empty { display: none; }
.topbar { position: absolute; top: calc(8px + var(--safe-t)); left: calc(8px + var(--safe-l)); right: calc(8px + var(--safe-r)); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; row-gap: 8px; pointer-events: none; }
.topbar > * { pointer-events: auto; }
.topbar .br { flex-basis: 100%; height: 0; pointer-events: none; }
.res { display: flex; align-items: center; gap: 5px; height: 36px; padding: 0 12px 0 4px; border-radius: 999px; background: var(--glass); box-shadow: var(--glass-edge); font-size: 15px; min-width: 0; }
.res .ic { width: 28px; height: 28px; }
.res b { font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: .02em; }
.res.full b { color: #ffb08a; }
.res.full::after { content: "満"; margin-left: 2px; padding: 1px 5px; border-radius: 6px; background: var(--bad); color: #fff; font-size: 10px; }
.res.medal b { color: var(--brass3); }
.res.bump { animation: bump .45s var(--ease); }
@keyframes bump { 35% { transform: scale(1.14); } }
.topbar .btn-round { margin-left: auto; }
.power { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px 0 6px; border-radius: 12px; background: var(--glass); box-shadow: var(--glass-edge); font-size: 12px; color: #e9dcc0; }
.power .ic { width: 24px; height: 24px; }
.power b { font-size: 18px; color: #fff; font-variant-numeric: tabular-nums; }
#tags { position: absolute; inset: 0; pointer-events: none; }
.tag { position: absolute; transform: translate(-50%, -100%); display: flex; align-items: center; gap: 4px; padding: 3px 10px 4px 5px; border-radius: 9px; font-size: 12px; white-space: nowrap; pointer-events: auto;
  background: linear-gradient(180deg, #f8e2a2, #d6ae55 60%, #c39a42); color: #3a2608; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 2px 0 #7a5a20, 0 4px 10px rgba(0, 0, 0, .45); }
.tag .ic { width: 18px; height: 18px; }
.tag::after { content: ""; position: absolute; left: calc(50% + var(--ax, 0px)); bottom: -6px; transform: translateX(-50%); border: 6px solid transparent; border-top-color: #c39a42; border-bottom: 0; }
.tag.ready { background: linear-gradient(180deg, #b6eb98, #6cb64c 60%, #5aa23a); color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 2px 0 #2f6123, 0 4px 10px rgba(0, 0, 0, .45); animation: bob 1s ease-in-out infinite; }
.tag.ready::after { border-top-color: #5aa23a; }
.tag.kit { background: linear-gradient(180deg, #ffffff, #efe6d2); }
.tag.kit::after { border-top-color: #efe6d2; }
@keyframes bob { 50% { transform: translate(-50%, calc(-100% - 4px)); } }
.collect { position: absolute; left: 50%; bottom: calc(112px + var(--safe-b)); transform: translateX(-50%); display: grid; grid-template-columns: auto auto; column-gap: 8px; align-items: center; padding: 8px 20px 8px 12px; border-radius: 18px;
  background: linear-gradient(180deg, var(--ok-l), var(--ok)); color: #fff; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .3), 0 4px 0 var(--ok-d), 0 6px 14px rgba(0, 0, 0, .5); text-shadow: 0 1px 0 rgba(0, 0, 0, .35); animation: pulse 1.6s ease-in-out infinite; }
.collect .ic { grid-row: 1 / 3; width: 30px; height: 30px; }
.collect span { font-size: 16px; text-align: left; white-space: nowrap; } .collect em { font-style: normal; font-size: 12px; opacity: .95; text-align: left; }
.collect:active { transform: translateX(-50%) translateY(3px); }
@keyframes pulse { 50% { box-shadow: inset 0 2px 0 rgba(255, 255, 255, .3), 0 4px 0 var(--ok-d), 0 0 0 9px rgba(90, 162, 58, .22), 0 6px 14px rgba(0, 0, 0, .5); } }
.dock { position: absolute; left: 0; right: 0; bottom: calc(14px + var(--safe-b)); display: flex; justify-content: center; align-items: flex-end; gap: 16px; padding: 0 12px; }
.dock-b { position: relative; width: 70px; height: 66px; border-radius: 20px; background: linear-gradient(180deg, #fffbf1 0%, #f3e3c0 60%, #e6cf9f 100%); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  box-shadow: inset 0 1px 0 #fff, inset 0 -3px 0 rgba(120, 90, 40, .12), 0 4px 0 #9c7d4c, 0 7px 14px rgba(0, 0, 0, .45); transition: transform .12s var(--ease); }
.dock-b .ic { width: 32px; height: 32px; }
.dock-b span { font-size: 13px; }
.dock-b:active { transform: translateY(3px); box-shadow: inset 0 1px 0 #fff, 0 1px 0 #9c7d4c; }
.badge { position: absolute; top: -7px; right: -7px; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: linear-gradient(180deg, #e8664a, var(--bad)); color: #fff; font-style: normal; font-size: 13px; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff8ec, 0 2px 6px rgba(0, 0, 0, .5); animation: pop .5s var(--ease); }
@keyframes pop { from { transform: scale(0); } }
.hint { position: absolute; left: 50%; top: 31%; transform: translateX(-50%); width: max-content; max-width: min(84vw, 380px); padding: 11px 18px; border-radius: 16px; background: linear-gradient(180deg, #fffaf0, #f4e8cf); color: var(--ink); font-size: 15px; line-height: 1.55; text-align: center;
  box-shadow: inset 0 0 0 2px #e3c98a, 0 3px 0 #b8975a, 0 10px 24px rgba(0, 0, 0, .5); pointer-events: none; text-wrap: balance; animation: hintIn .5s var(--ease), hintBob 3s ease-in-out .5s infinite; }
.sheet-open .hint { display: none; }
.hint::after { display: none; }
@keyframes hintIn { from { opacity: 0; transform: translate(-50%, 10px) scale(.94); } }
@keyframes hintBob { 50% { transform: translate(-50%, -4px); } }
.hud-top { position: absolute; top: calc(8px + var(--safe-t)); left: calc(8px + var(--safe-l)); right: calc(8px + var(--safe-r)); display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; }
.hud-goal { position: relative; background: var(--glass); box-shadow: var(--glass-edge); border-radius: 14px; padding: 6px 12px 7px 16px; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.hud-goal::before { content: ""; position: absolute; left: 6px; top: 9px; bottom: 9px; width: 3px; border-radius: 2px; background: linear-gradient(var(--brass3), var(--brass2)); }
.hud-name { font-size: 12px; color: var(--brass3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .04em; }
.hud-text { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-bar { grid-column: 1 / 4; position: relative; height: 14px; margin: 2px 28px 0 2px; }
.hud-track { position: absolute; inset: 1px 0; border-radius: 7px; background: rgba(10, 8, 6, .7); overflow: hidden; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 240, 210, .14); }
.hud-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 7px; transition: width .35s var(--out);
  background: linear-gradient(180deg, rgba(255, 255, 255, .45) 0 38%, rgba(255, 255, 255, 0) 38%), linear-gradient(90deg, var(--team-d), var(--team) 55%, var(--team-l)); box-shadow: 0 0 8px var(--team); }
.hud-fill::after { content: ""; position: absolute; right: 1px; top: 1px; bottom: 1px; width: 10px; border-radius: 6px; background: radial-gradient(circle at 50% 50%, #fff, rgba(255, 255, 255, 0) 70%); }
.hud-end { position: absolute; right: -28px; top: 50%; width: 28px; height: 28px; transform: translateY(-62%); color: #fff4c8; }
.hud-count { grid-row: 1; grid-column: 2; display: flex; align-items: center; gap: 2px; height: 46px; background: var(--glass); box-shadow: var(--glass-edge); border-radius: 14px; padding: 0 12px 0 4px; font-size: 24px; font-variant-numeric: tabular-nums; }
.hud-count .ic { width: 32px; height: 32px; }
.hud-count small { font-size: 12px; margin-left: 2px; align-self: flex-end; margin-bottom: 9px; color: #e9dcc0; }
.hud-count.hit { animation: bump .4s var(--ease); }
.hud-top .btn-round { grid-row: 1; grid-column: 3; }
.hud-msg { position: absolute; left: 50%; top: 21%; transform: translateX(-50%); padding: 9px 34px 10px; font-size: 21px; font-weight: 900; text-align: center; white-space: nowrap; color: #fff; letter-spacing: .06em;
  background: linear-gradient(180deg, rgba(58, 42, 28, .94), rgba(30, 22, 15, .94)); box-shadow: inset 0 2px 0 var(--brass), inset 0 -2px 0 var(--brass2), 0 8px 20px rgba(0, 0, 0, .5);
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%, 14px 50%); text-shadow: 0 2px 0 rgba(0, 0, 0, .6); pointer-events: none; opacity: 0; }
.hud-msg:empty { display: none; }
.hud-msg.show { animation: msg 1.9s var(--out) forwards; }
@keyframes msg { 0% { opacity: 0; transform: translate(-50%, 8px) scaleX(.4); } 12% { opacity: 1; transform: translate(-50%, 0) scaleX(1.04); } 20% { transform: translate(-50%, 0) scaleX(1); } 80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -6px); } }
.hud-left, .hud-right { position: absolute; bottom: calc(18px + var(--safe-b)); display: flex; gap: 14px; align-items: flex-end; }
.hud-left { left: calc(14px + var(--safe-l)); }
.hud-right { right: calc(14px + var(--safe-r)); }
.hud-ic { width: 26px; height: 26px; }
.hud-form { width: 66px; height: 66px; border-radius: 50%; background: var(--glass); box-shadow: var(--glass-edge); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 13px; line-height: 1.1; color: var(--paper); transition: transform .12s var(--ease); }
.hud-form .hud-ic { width: 24px; height: 24px; margin-bottom: 1px; color: #e9dcc0; }
.hud-form small { font-size: 9px; opacity: .65; margin-top: 1px; }
.hud-form.spread { box-shadow: var(--glass-edge), inset 0 0 0 2px var(--brass); }
.hud-form.spread .hud-ic { color: var(--brass3); }
.hud-form:active, .hud-skill:active, .hud-strike:active { transform: scale(.93); }
.hud-skill, .hud-strike { position: relative; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .5); line-height: 1.1; transition: transform .12s var(--ease), filter .3s; }
.hud-skill { width: 90px; height: 90px; background: radial-gradient(circle at 38% 28%, var(--team-l), var(--team) 62%, var(--team-d)); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .3), inset 0 -4px 0 rgba(0, 0, 0, .18), 0 4px 0 var(--team-d), 0 8px 16px rgba(0, 0, 0, .55); }
.hud-strike { width: 68px; height: 68px; background: radial-gradient(circle at 38% 28%, #f0a079, #c9512f 62%, #8d2e18); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .3), inset 0 -4px 0 rgba(0, 0, 0, .18), 0 4px 0 #6b2414, 0 8px 16px rgba(0, 0, 0, .55); }
.hud-skill .hud-ic { width: 28px; height: 28px; margin-bottom: 2px; color: #fff4c8; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .35)); }
.hud-strike .hud-ic { width: 22px; height: 22px; margin-bottom: 1px; color: #fff4e8; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .35)); }
.hud-skill b { font-size: 14px; max-width: 80px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .hud-strike b { font-size: 12px; }
.hud-skill small, .hud-strike small { font-size: 9px; opacity: .8; }
.hud-skill .ring, .hud-strike .ring { position: absolute; inset: -6px; border-radius: 50%; background: conic-gradient(#fff4c8 var(--p, 0%), rgba(0, 0, 0, .45) 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4.5px)); }
.hud-skill:not(.ready), .hud-strike:not(.ready) { filter: saturate(.35) brightness(.72); }
.hud-skill.ready, .hud-strike.ready { animation: ready 1.2s ease-in-out infinite; }
.hud-skill.ready .ring, .hud-strike.ready .ring { background: conic-gradient(#ffe9a0 0 100%); filter: drop-shadow(0 0 6px #ffd76a); }
.hud-skill.ready .hud-ic { animation: spin 6s linear infinite; }
.hud-skill.aiming, .hud-strike.aiming { animation: none; box-shadow: 0 0 0 4px #fff, 0 0 22px 6px rgba(255, 233, 160, .7); }
@keyframes ready { 50% { transform: scale(1.06); } }
@keyframes spin { to { transform: rotate(360deg); } }
.hud-hint { position: absolute; left: 50%; top: calc(128px + var(--safe-t)); transform: translateX(-50%); padding: 12px 20px; border-radius: 18px; background: var(--glass); box-shadow: var(--glass-edge); font-size: 17px; line-height: 1.5; text-align: center; pointer-events: none; animation: hint 2.2s ease-in-out infinite; }
@keyframes hint { 50% { transform: translate(calc(-50% + 18px), -10px); } }
.stick { position: fixed; left: 0; top: 0; width: 0; height: 0; pointer-events: none; opacity: 0; transition: opacity .12s; z-index: 5; }
.stick.on { opacity: 1; }
.stick::before { content: ""; position: absolute; left: -58px; top: -58px; width: 116px; height: 116px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .5); background: radial-gradient(circle, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, .14)); box-shadow: 0 0 0 1px rgba(0, 0, 0, .25), inset 0 0 0 1px rgba(0, 0, 0, .2); }
.stick i { position: absolute; left: -23px; top: -23px; width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 38% 30%, #fff, #e8e0d0 60%, #c9bfae); box-shadow: 0 3px 10px rgba(0, 0, 0, .45), inset 0 -2px 0 rgba(0, 0, 0, .12); }
#floats { position: absolute; inset: 0; overflow: hidden; z-index: 4; }
.float { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; font-size: 24px; font-weight: 900; color: #fff; letter-spacing: .02em; display: flex; align-items: center; gap: 4px; --o: var(--team-d);
  text-shadow: 2px 0 0 var(--o), -2px 0 0 var(--o), 0 2px 0 var(--o), 0 -2px 0 var(--o), 1.5px 1.5px 0 var(--o), -1.5px 1.5px 0 var(--o), 1.5px -1.5px 0 var(--o), -1.5px -1.5px 0 var(--o), 0 4px 8px rgba(0, 0, 0, .55);
  animation: floatUp 1.35s var(--out) forwards; }
.float small { font-size: 15px; }
.float .ic { width: 26px; height: 26px; }
.float.skill { font-size: 19px; }
.float.gate { font-size: 40px; }
.float.gate small { font-size: 20px; }
.float.gate.down { --o: #5e5a55; }
#squadTag { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; }
#squadTag b { display: block; transform: translate(-50%, -100%); padding: 1px 12px 2px; border-radius: 999px; background: var(--team-d); color: #fff; font-size: 21px; font-weight: 900; line-height: 1.3; white-space: nowrap;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .9), 0 3px 8px rgba(0, 0, 0, .4); }
#squadTag b small { font-size: 12px; margin-left: 2px; }
#squadTag.up b { animation: tagUp .55s var(--out); }
#squadTag.down b { animation: tagDown .5s var(--out); }
@keyframes tagUp { 0% { transform: translate(-50%, -100%) scale(1); } 28% { transform: translate(-50%, -100%) scale(1.5); } 100% { transform: translate(-50%, -100%) scale(1); } }
@keyframes tagDown { 0% { transform: translate(-50%, -100%) scale(1); } 25% { transform: translate(-50%, -100%) scale(.78) rotate(-7deg); background: #6e6a65; } 100% { transform: translate(-50%, -100%) scale(1); } }
@keyframes floatUp { 0% { opacity: 0; transform: translate(-50%, -20%) scale(.4); } 14% { opacity: 1; transform: translate(-50%, -62%) scale(1.18); } 26% { transform: translate(-50%, -70%) scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -190%) scale(.96); } }
.sheet { position: fixed; inset: 0; z-index: 10; display: flex; align-items: flex-end; justify-content: center; }
.sheet-scrim { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 100%, rgba(0, 0, 0, .45), rgba(0, 0, 0, .66)); animation: fadein .25s ease; }
.sheet-card { position: relative; width: min(560px, 100%); max-height: min(86vh, 860px); display: flex; flex-direction: column; border-radius: 26px 26px 0 0; color: var(--ink);
  background: var(--grain), linear-gradient(180deg, #fbf4e4 0%, var(--paper) 120px, #f3e8d0 100%);
  box-shadow: inset 0 2px 0 #fff, inset 0 0 0 1px rgba(160, 120, 60, .18), 0 -10px 34px rgba(0, 0, 0, .55); padding: 22px 16px calc(18px + var(--safe-b)); animation: up .38s var(--out); }
.sheet-card::before { content: ""; position: absolute; top: 8px; left: 50%; width: 42px; height: 5px; margin-left: -21px; border-radius: 3px; background: rgba(107, 90, 69, .28); }
.sheet-body { -webkit-mask: linear-gradient(transparent, #000 14px); mask: linear-gradient(transparent, #000 14px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; padding: 8px 2px 6px; margin-top: -6px; }
.sheet-x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; color: var(--ink2); z-index: 1; display: grid; place-items: center; background: #efe4cc; box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(160, 120, 60, .2), 0 3px 8px rgba(0, 0, 0, .14); transition: background .15s, transform .12s var(--ease); }
.sheet-x .ic { width: 18px; height: 18px; }
.sheet-x:active { transform: scale(.9); background: rgba(107, 90, 69, .2); }
.sheet-x:focus-visible { outline: 2px solid rgba(169, 128, 47, .45); outline-offset: 1px; }
@keyframes up { from { transform: translateY(46%); opacity: 0; } }
@keyframes fadein { from { opacity: 0; } }
.sh-title { margin: 0 48px 4px 2px; font-size: 23px; font-weight: 900; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; line-height: 1.25; }
.sh-title small, .lv { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 8px; font-size: 14px; font-weight: 900; color: #3a2608; letter-spacing: .02em;
  background: linear-gradient(180deg, #f8e2a2, #d6ae55); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 2px 0 #9c7a34; }
.sh-sub { margin: 0 0 12px 2px; font-size: 13px; color: var(--muted); font-weight: 500; line-height: 1.6; }
.sh-sub b { color: var(--ink); font-weight: 900; }
.sh-sub .ic { width: 16px; height: 16px; margin: -3px 2px 0 0; }
.sh-row { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), 0 2px 0 #e4d3ad; margin-bottom: 9px; }
.sh-row .grow { flex: 1; min-width: 0; }
.sh-row h4 { margin: 0; font-size: 16px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sh-row h4 small { font-size: 12px; padding: 1px 7px; border-radius: 6px; background: #efe3c9; color: var(--ink2); }
.sh-row p { margin: 3px 0 0; font-size: 12px; color: var(--muted); font-weight: 500; line-height: 1.5; }
.sh-row p .ic { width: 14px; height: 14px; margin: -2px 2px 0 0; }
.u-ic { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(180deg, #f3e8cf, #e6d6b2); box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(0, 0, 0, .06); }
.u-ic .ic { width: 34px; height: 34px; }
.sh-row.lockrow .u-ic { filter: grayscale(1); opacity: .55; }
.cost { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.cost span { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 11px 0 5px; border-radius: 999px; background: linear-gradient(180deg, #f3e8cf, #eadbbb); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 0 0 1px rgba(160, 120, 60, .16); font-size: 14px; font-variant-numeric: tabular-nums; }
.cost span.short { background: linear-gradient(180deg, #fbe0d6, #f3c9bb); color: var(--bad); box-shadow: inset 0 0 0 1px rgba(200, 70, 47, .3); }
.cost .ic { width: 22px; height: 22px; }
.sh-row .cost { margin: 7px 0 0; }
.sh-row .cost span { height: 28px; font-size: 13px; }
.sh-row .cost .ic { width: 20px; height: 20px; }
.eff { display: grid; grid-template-columns: auto 1fr; margin: 4px 0 12px; border-radius: 14px; overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
.eff:empty { display: none; }
.eff dt, .eff dd { padding: 9px 12px; border-top: 1px dashed #e8dcc0; }
.eff dt:first-of-type, .eff dt:first-of-type + dd { border-top: 0; }
.eff dt { color: var(--muted); font-weight: 500; }
.eff dd { margin: 0; text-align: right; display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.eff dd .ic { width: 14px; height: 14px; color: #b8a27c; }
.eff dd b { color: #fff; background: linear-gradient(180deg, var(--ok-l), var(--ok)); padding: 1px 8px; border-radius: 7px; text-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
.pips { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 2px 12px; }
.pips i { width: 14px; height: 10px; border-radius: 4px; background: #e4d6b8; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .12); }
.pips i.on { background: linear-gradient(180deg, #f8e2a2, #c9982f); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 1px 0 #9c7a34; }
.pips i.next { background: #fff; box-shadow: inset 0 0 0 2px var(--ok); animation: blink 1.2s ease-in-out infinite; }
.pips i.cap { background: repeating-linear-gradient(-45deg, #e9dec6 0 2px, #d9cbb0 2px 4px); opacity: .7; }
@keyframes blink { 50% { box-shadow: inset 0 0 0 2px var(--ok), 0 0 0 3px rgba(79, 154, 58, .22); } }
.busy { display: flex; align-items: center; gap: 10px; margin: 2px 0 12px; padding: 10px 12px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
.busy .ic { width: 28px; height: 28px; animation: tap 1.1s ease-in-out infinite; transform-origin: 30% 80%; }
.busy b { font-size: 18px; font-variant-numeric: tabular-nums; }
@keyframes tap { 50% { transform: rotate(-18deg); } }
.why { color: var(--bad); font-size: 13px; margin: 0 0 10px 2px; line-height: 1.55; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.actions + .actions { margin-top: 10px; }
.btn-share { width: 100%; margin: 4px 0 2px; color: #fff; background: linear-gradient(180deg, #5aa8ff 0%, #2f7fe6 55%, #2466c4 100%); text-shadow: 0 1px 0 rgba(0, 0, 0, .25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -3px 0 rgba(0, 0, 0, .12), 0 4px 0 #1b4f99, 0 7px 14px rgba(0, 0, 0, .38); }
.btn-share:active { box-shadow: inset 0 2px 0 rgba(255, 255, 255, .3), 0 1px 0 #1b4f99; }
.share-img { display: block; width: min(100%, 300px); margin: 6px auto 8px; border-radius: 14px; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.share-text { white-space: normal; text-align: left; background: rgba(0, 0, 0, .05); border-radius: 10px; padding: 8px 10px; user-select: text; -webkit-user-select: text; }
.actions.wrap { margin-top: 8px; }
a.btn { text-decoration: none; }
.r-shares { margin-top: 2px; }
.r-shares .btn-share { width: auto; flex: 2; margin: 0; }
.r-shares .r-photo { flex: 1; min-width: 0; }
.actions .btn { flex: 1; min-width: 130px; }
.tabs { display: flex; gap: 4px; margin: 0 0 12px; overflow-x: auto; padding: 3px; border-radius: 999px; background: rgba(107, 90, 69, .1); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .08); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--ink2); transition: background .2s, color .2s; }
.tabs button.on { background: linear-gradient(180deg, #3a2d21, var(--ink)); color: var(--paper); box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.tabs button[disabled] { opacity: .4; }
.tabs .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--th, #999); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .18); }
.tabs .ic { width: 13px; height: 13px; }
.t0 { --th: #6f9a45; } .t1 { --th: #c99a56; } .t2 { --th: #5f8c9a; }
.stage { position: relative; display: grid; grid-template-columns: 46px 1fr auto; gap: 10px; align-items: center; padding: 10px 10px 10px 14px; border-radius: 16px; background: var(--card); box-shadow: inset 4px 0 0 var(--th, #c9b9a0), inset 0 0 0 1px var(--line), 0 2px 0 #e4d3ad; margin-bottom: 9px; }
.stage.locked { background: rgba(255, 250, 240, .45); box-shadow: inset 4px 0 0 #d8ccb4, inset 0 0 0 1px var(--line); }
.stage.locked > :not(.num) { opacity: .5; }
.stage.boss:not(.locked) { background: linear-gradient(100deg, #fff1e8, var(--card) 60%); box-shadow: inset 4px 0 0 var(--bad), inset 0 0 0 1px #ecc8b8, 0 2px 0 #e4c4ad; }
.stage.contest { background: linear-gradient(100deg, #fff6d8, var(--card) 70%); box-shadow: inset 4px 0 0 var(--brass), inset 0 0 0 1px #ead08a, 0 2px 0 #e4d3ad; }
.stage .num { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 19px; font-weight: 900; color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .3);
  background: linear-gradient(180deg, #c3b597, #a39477); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 2px 0 rgba(0, 0, 0, .15); }
.stage.cleared .num { background: linear-gradient(180deg, var(--team-l), var(--team)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 2px 0 var(--team-d); }
.stage.locked .num { background: #ddd3c0; color: #a99a80; text-shadow: none; box-shadow: none; }
.stage.locked .num .ic { width: 20px; height: 20px; }
.stage.daily { background: linear-gradient(100deg, #e4f1ff, var(--card) 70%); box-shadow: inset 4px 0 0 var(--team), inset 0 0 0 1px #c7dcf5, 0 2px 0 #e4d3ad; }
.stage.daily h4 small { font-size: 12px; color: var(--muted); font-weight: 700; }
.stage .num.wk { background: linear-gradient(180deg, #f8e2a2, #c9982f); color: #3a2608; text-shadow: 0 1px 0 rgba(255, 255, 255, .4); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 2px 0 #9c7a34; }
.stage .num.wk .ic { width: 28px; height: 28px; }
.stage h4 { margin: 0; font-size: 15px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; word-break: keep-all; overflow-wrap: anywhere; }
.stage p { margin: 4px 0 0; font-size: 12px; color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11px; font-weight: 700; font-style: normal; background: #efe3c9; color: var(--ink2); white-space: nowrap; }
.chip.boss { background: var(--bad); color: #fff; }
.pw { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11px; font-weight: 700; background: #f1e6d0; color: var(--ink2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pw.ok { background: #e2f0d8; color: #3e7d2c; } .pw.low { background: #f8ddd4; color: var(--bad); } .pw.mid { background: #f7ead0; color: #a86a12; }
.medals { display: inline-flex; gap: 1px; margin-left: 2px; }
.medals .ic { width: 17px; height: 17px; }
.medals .ic.off { filter: grayscale(1) brightness(1.2); opacity: .32; }
.stage .acts { display: flex; flex-direction: column; gap: 6px; }
.stage .acts .btn { min-width: 86px; }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button { width: 40px; height: 40px; border-radius: 12px; font-size: 22px; font-weight: 900; color: var(--ink); background: linear-gradient(180deg, #fffbf1, #eadbbb); box-shadow: inset 0 1px 0 #fff, 0 3px 0 #b39a6c, 0 4px 8px rgba(0, 0, 0, .15); transition: transform .1s; }
.stepper button:active { transform: translateY(2px); box-shadow: 0 1px 0 #b39a6c; }
.stepper b { min-width: 38px; text-align: center; font-size: 20px; font-variant-numeric: tabular-nums; }
.capbar { height: 12px; border-radius: 6px; background: #e6d8ba; overflow: hidden; margin: 6px 0 12px; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .15); }
.capbar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(180deg, rgba(255, 255, 255, .4) 0 40%, rgba(255, 255, 255, 0) 40%), linear-gradient(90deg, var(--team-d), var(--team)); transition: width .3s var(--out); }
.leaders { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 12px; }
.leader { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 6px 9px; align-items: center; text-align: left; padding: 10px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), 0 2px 0 #e4d3ad; transition: box-shadow .2s, transform .12s var(--ease); }
.leader:active { transform: scale(.97); }
.leader.on { box-shadow: inset 0 0 0 3px var(--team), 0 2px 0 var(--team-d); background: #fff; }
.leader.on::after { content: ""; position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--team) var(--check-img) center / 15px no-repeat; box-shadow: 0 0 0 2px #fff, 0 2px 4px rgba(0, 0, 0, .3); }
.leader.lock { opacity: .55; }
.ldr-badge { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; font-weight: 900; color: var(--fg, #fff); text-shadow: 0 1px 0 rgba(0, 0, 0, .2);
  background: radial-gradient(circle at 38% 30%, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 55%), var(--ac); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15), 0 0 0 2px #fff, 0 0 0 3px rgba(107, 90, 69, .25); }
.leader.lock .ldr-badge { background: #d6cbb5; color: #fff; }
.leader.lock .ldr-badge .ic { width: 18px; height: 18px; }
.leader h4 { margin: 0; font-size: 15px; } .leader p { grid-column: 1 / 3; margin: 0; font-size: 11px; color: var(--muted); font-weight: 500; line-height: 1.5; }
.leader p b { color: var(--ink); }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; margin: 2px 0 10px; padding: 6px; }
.swatches button { width: 44px; height: 44px; border-radius: 50%; position: relative; box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .18), inset 0 2px 0 rgba(255, 255, 255, .25), 0 3px 6px rgba(0, 0, 0, .28); transition: transform .15s var(--ease); }
.swatches button::after { content: ""; position: absolute; left: 10px; top: 7px; width: 12px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .55); transform: rotate(-25deg); }
.swatches button:active { transform: scale(.9); }
.swatches button.on { outline: 3px solid var(--ink); outline-offset: 3px; transform: scale(1.06); }
.task { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), 0 2px 0 #e4d3ad; margin-bottom: 9px; }
.task .grow { flex: 1; min-width: 0; }
.task b { font-size: 15px; }
.task .bar { height: 10px; border-radius: 5px; background: #e6d8ba; margin-top: 7px; overflow: hidden; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .14); }
.task .bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(180deg, rgba(255, 255, 255, .4) 0 40%, rgba(255, 255, 255, 0) 40%), linear-gradient(90deg, #3e8a2c, var(--ok-l)); }
.task.ready { box-shadow: inset 0 0 0 2px var(--ok), 0 2px 0 #b9d6a8; }
.task.done { opacity: .6; }
.t-check { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #e9dec6; color: #c9b99a; }
.t-check .ic { width: 18px; height: 18px; }
.task.ready .t-check { background: linear-gradient(180deg, var(--ok-l), var(--ok)); color: #fff; animation: pop .5s var(--ease); }
.task.done .t-check { background: var(--ok); color: #fff; }
.sec { margin: 18px 2px 9px; font-size: 14px; color: var(--ink2); display: flex; align-items: center; gap: 10px; letter-spacing: .04em; }
.sec::after { content: ""; flex: 1; height: 2px; border-radius: 1px; background: linear-gradient(90deg, rgba(169, 128, 47, .35), rgba(169, 128, 47, 0)); }
.toggle { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 16px; background: var(--card); margin-bottom: 8px; box-shadow: inset 0 0 0 1px var(--line), 0 2px 0 #e4d3ad; }
.toggle b { font-size: 15px; }
.toggle .sw { width: 54px; height: 32px; border-radius: 16px; background: #cbbd9e; position: relative; transition: background .2s; box-shadow: inset 0 2px 3px rgba(0, 0, 0, .18); }
.toggle .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 40% 30%, #fff, #efe8da); transition: transform .22s var(--ease); box-shadow: 0 2px 4px rgba(0, 0, 0, .3); }
.toggle.on .sw { background: linear-gradient(180deg, #5fae45, var(--ok)); }
.toggle.on .sw::after { transform: translateX(22px); }
textarea.code { width: 100%; height: 92px; border-radius: 12px; border: 2px solid #d8c8a8; background: #fff; font: 12px/1.4 ui-monospace, monospace; padding: 8px; color: var(--ink); resize: none; -webkit-user-select: text; user-select: text; touch-action: auto; }
textarea.code:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(212, 172, 85, .25); }
.small { font-size: 12px; color: var(--muted); font-weight: 500; line-height: 1.65; }
.small b { color: var(--ink); }
.shelf { display: flex; gap: 8px; flex-wrap: wrap; }
.shelf span { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px 6px 6px; border-radius: 10px; background: linear-gradient(180deg, #f3e8cf, #eadbbb); font-size: 13px; }
.shelf .ic { width: 18px; height: 18px; }
.result { position: fixed; inset: 0; z-index: 9; display: flex; flex-direction: column; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: calc(34px + var(--safe-t)) 0 calc(12px + var(--safe-b)); background: radial-gradient(ellipse at 50% 42%, rgba(0, 0, 0, .2), rgba(0, 0, 0, .74)); animation: fadein .35s ease; }
.result.win::before { content: ""; position: absolute; left: 50%; top: 44%; width: 170vmax; height: 170vmax; transform: translate(-50%, -50%); pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255, 233, 160, .13) 0 8deg, rgba(255, 233, 160, 0) 8deg 20deg);
  -webkit-mask: radial-gradient(circle, #000 0, #000 8%, transparent 38%); mask: radial-gradient(circle, #000 0, #000 8%, transparent 38%); animation: rays 40s linear infinite, fadein 1s ease; }
@keyframes rays { to { transform: translate(-50%, -50%) rotate(360deg); } }
.r-card { position: relative; width: min(420px, 92vw); margin: auto; flex: none; padding: 0 18px calc(18px + var(--safe-b)); border-radius: 26px; color: var(--ink); text-align: center;
  background: var(--grain), linear-gradient(180deg, #fffaf0, var(--paper) 50%, #f1e5cb); box-shadow: inset 0 2px 0 #fff, inset 0 0 0 2px #ead8ad, inset 0 0 0 5px #fbf4e4, inset 0 0 0 6px #e3cf9f, 0 14px 44px rgba(0, 0, 0, .7); animation: cardIn .55s var(--ease); }
@keyframes cardIn { from { transform: translateY(40px) scale(.9); opacity: 0; } }
.r-ribbon { position: relative; display: inline-block; margin: -30px auto 8px; padding: 9px 46px 11px; border-radius: 7px;
  background: linear-gradient(180deg, var(--team-l), var(--team) 70%); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), inset 0 -3px 0 rgba(0, 0, 0, .15), 0 4px 0 var(--team-d), 0 10px 20px rgba(0, 0, 0, .35); animation: ribbon .6s var(--ease) .1s both; }
.r-ribbon::before, .r-ribbon::after { content: ""; position: absolute; top: 12px; width: 36px; height: 100%; background: linear-gradient(180deg, var(--team), var(--team-d)); z-index: -1; }
.r-ribbon::before { left: -26px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 34% 50%); }
.r-ribbon::after { right: -26px; clip-path: polygon(0 0, 100% 0, 66% 50%, 100% 100%, 0 100%); }
.r-ribbon.lose { background: linear-gradient(180deg, #a3927a, #7d6c55 70%); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .3), 0 4px 0 #4f4232, 0 10px 20px rgba(0, 0, 0, .35); }
.r-ribbon.lose::before, .r-ribbon.lose::after { background: linear-gradient(180deg, #7d6c55, #4f4232); }
@keyframes ribbon { from { transform: scaleX(.2) translateY(-10px); opacity: 0; } }
.r-head { margin: 0; font-size: 36px; font-weight: 900; letter-spacing: .24em; text-indent: .24em; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .25), 0 3px 10px rgba(0, 0, 0, .25); line-height: 1.1; }
.r-sub { margin: 2px 0 12px; font-size: 13px; color: var(--muted); }
.r-medals { display: flex; justify-content: center; gap: 6px; margin: 10px 0 4px; }
.r-medal { position: relative; width: 92px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); font-weight: 700; white-space: nowrap; }
.r-medal .ic { width: 62px; height: 62px; filter: grayscale(1) brightness(1.25); opacity: .28; }
.r-medal.on .ic { filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .25)); opacity: 1; animation: stamp .55s cubic-bezier(.3, 1.6, .5, 1) var(--d, 0s) both; }
.r-medal.on { color: var(--ink); }
.r-medal.on::before { content: ""; position: absolute; top: 18px; left: 50%; width: 52px; height: 52px; margin-left: -26px; border-radius: 50%; border: 3px solid #ffd76a; opacity: 0; animation: shock .6s ease-out calc(var(--d, 0s) + .22s); pointer-events: none; }
@keyframes stamp { 0% { transform: scale(2.4) rotate(-24deg); opacity: 0; } 55% { transform: scale(.88) rotate(4deg); opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes shock { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }
.r-medal.new::after { content: "NEW"; position: absolute; top: -2px; right: 4px; padding: 1px 6px; border-radius: 6px; background: linear-gradient(180deg, #e8664a, var(--bad)); color: #fff; font-size: 10px; font-weight: 900; letter-spacing: .04em; transform: rotate(8deg); box-shadow: 0 2px 4px rgba(0, 0, 0, .25); animation: popTag .4s var(--ease) calc(var(--d, 0s) + .35s) both; }
@keyframes popTag { from { transform: rotate(8deg) scale(0); } }
.r-rew { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 14px 0 12px; }
.r-rew span { display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 14px 0 6px; border-radius: 999px; background: linear-gradient(180deg, #f3e8cf, #eadbbb); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 0 0 1px rgba(160, 120, 60, .16); font-size: 17px; font-variant-numeric: tabular-nums; animation: pop .45s var(--ease) var(--d, 0s) both; }
.r-rew .ic { width: 28px; height: 28px; }
.r-new { display: flex; align-items: center; gap: 10px; text-align: left; margin: 6px 0 12px; padding: 10px 12px; border-radius: 14px; background: linear-gradient(180deg, #fff6d6, #fbe9b0); box-shadow: inset 0 0 0 1px #ead08a; font-size: 14px; line-height: 1.5; animation: pop .45s var(--ease) 1.2s both; }
.r-new .ldr-badge { flex: none; }
.r-chal { display: flex; align-items: center; gap: 10px; text-align: left; margin: 4px 0 12px; padding: 10px 12px; border-radius: 14px; background: #f1ece2; box-shadow: inset 0 0 0 1px #ddd2bb; font-size: 13px; line-height: 1.5; color: var(--ink2); animation: pop .45s var(--ease) .9s both; }
.r-chal .ic { flex: none; width: 30px; height: 30px; opacity: .45; }
.r-chal b { display: block; font-size: 16px; color: var(--ink); }
.r-chal.win { background: linear-gradient(180deg, #fff6d6, #fbe9b0); box-shadow: inset 0 0 0 1px #ead08a; }
.r-chal.win .ic { opacity: 1; }
.r-chal.win b { color: #8a5a12; }
.r-card .actions { margin-top: 10px; }
.r-card .small { margin: 12px 4px 10px; }
#toast { position: fixed; left: 50%; top: calc(98px + var(--safe-t)); transform: translateX(-50%); z-index: 20; display: flex; flex-direction: column; gap: 6px; align-items: center; }
#toast div { display: flex; align-items: center; gap: 8px; max-width: 92vw; padding: 8px 16px 8px 10px; border-radius: 14px; background: linear-gradient(180deg, #fffaf0, #f3e7cd); color: var(--ink); font-size: 14px;
  box-shadow: inset 3px 0 0 var(--brass), inset 0 0 0 1px rgba(160, 120, 60, .25), 0 8px 20px rgba(0, 0, 0, .5); animation: toast 2.6s var(--out) forwards; white-space: nowrap; }
#toast div.plain { padding-left: 16px; }
#toast span { overflow: hidden; text-overflow: ellipsis; }
#toast .ic { width: 22px; height: 22px; }
@keyframes toast { 0% { opacity: 0; transform: translateY(-12px) scale(.95); } 10% { opacity: 1; transform: none; } 85% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }
@property --iris { syntax: "<length-percentage>"; inherits: false; initial-value: 0%; }
#fade { position: fixed; inset: 0; z-index: 15; background: #14110e; opacity: 0; visibility: hidden; }
#fade.fade { visibility: visible; animation: fadeOut .5s ease .05s both; }
#fade.iris { visibility: visible; opacity: 1; -webkit-mask: radial-gradient(circle at 50% 58%, transparent var(--iris), #000 calc(var(--iris) + 1.5%)); mask: radial-gradient(circle at 50% 58%, transparent var(--iris), #000 calc(var(--iris) + 1.5%)); animation: iris .7s cubic-bezier(.55, 0, .25, 1) .05s both; }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes iris { from { --iris: 0%; } to { --iris: 110%; } }
.loading { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 45%, #2e2720, #14110e 75%); color: var(--brass); font-size: 15px; transition: opacity .45s; }
.loading.done { opacity: 0; pointer-events: none; }
.ld-box { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ld-logo { margin: 0; display: flex; flex-direction: column; align-items: center; line-height: 1; font-weight: 900; color: #fff7e6; text-shadow: 0 2px 0 #8a5a33, 0 4px 0 #5a3a20, 0 8px 16px rgba(0, 0, 0, .7); }
.ld-logo span:first-child { font-size: 34px; letter-spacing: .06em; }
.ld-logo span:last-child { font-size: 44px; letter-spacing: .18em; color: var(--team); text-shadow: 0 2px 0 #fff, 0 4px 0 #5a3a20, 0 8px 16px rgba(0, 0, 0, .7); }
.ld-bar { width: 160px; height: 6px; border-radius: 3px; background: rgba(255, 240, 210, .12); overflow: hidden; }
.ld-bar i { display: block; width: 40%; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--brass2), var(--brass3)); animation: ld 1s ease-in-out infinite; }
@keyframes ld { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.ld-text { margin: 0; font-size: 13px; color: #c9b48a; letter-spacing: .1em; }
@media (min-aspect-ratio: 1/1) {
  .sheet { justify-content: flex-end; align-items: stretch; }
  .sheet-card { width: min(470px, 46vw); max-height: none; height: 100%; border-radius: 26px 0 0 26px; animation-name: side; padding-top: calc(22px + var(--safe-t)); padding-right: calc(16px + var(--safe-r)); box-shadow: inset 2px 0 0 #fff, inset 0 0 0 1px rgba(160, 120, 60, .18), -12px 0 34px rgba(0, 0, 0, .5); }
  .sheet-card::before { display: none; }
  .sheet-scrim { background: linear-gradient(90deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .6)); }
  @keyframes side { from { transform: translateX(46%); opacity: 0; } }
  .dock { justify-content: flex-start; left: calc(16px + var(--safe-l)); }
  .collect { left: auto; right: calc(20px + var(--safe-r)); transform: none; bottom: calc(24px + var(--safe-b)); }
  .collect:active { transform: translateY(3px); }
  .hud-top { grid-template-columns: minmax(0, 420px) 1fr auto auto; }
  .hud-bar { grid-column: 1 / 2; }
  .hud-count { grid-column: 3; }
  .hud-top .btn-round { grid-column: 4; }
  .hint { max-width: min(60vw, 460px); }
  .topbar .br { display: none; }
}
@media (max-height: 560px) {
  .btn-go { min-height: 52px; font-size: 20px; }
  .dock-b { width: 60px; height: 54px; } .dock-b .ic { width: 26px; height: 26px; }
  .hud-skill { width: 74px; height: 74px; } .hud-strike { width: 58px; height: 58px; } .hud-form { width: 56px; height: 56px; }
  .hud-skill .hud-ic { width: 22px; height: 22px; }
  .t-tag { margin: 10px 0 16px; }
  .r-ribbon { padding: 6px 40px 8px; } .r-head { font-size: 28px; }
  .r-sub { margin: 2px 0 6px; }
  .r-medals { margin: 2px 0 0; } .r-medal .ic { width: 44px; height: 44px; }
  .r-medal.on::before { top: 9px; width: 38px; height: 38px; margin-left: -19px; }
  .r-rew { margin: 6px 0 4px; } .r-rew span { height: 32px; font-size: 15px; } .r-rew .ic { width: 24px; height: 24px; }
  .r-chal { margin: 2px 0 6px; padding: 6px 10px; } .r-chal b { font-size: 14px; } .r-chal .ic { width: 24px; height: 24px; }
  .r-card .small { margin: 6px 4px; }
  .r-card .actions { margin-top: 6px; } .r-card .actions .btn { min-height: 42px; }
}
@media (max-height: 560px) and (min-aspect-ratio: 1/1) {
  .t-box.chal-on { display: flex; align-items: center; gap: clamp(20px, 5vw, 56px); transform: none; }
  .t-box.chal-on .t-acts { width: min(340px, 44vw); }
  .t-box.chal-on .t-chal { margin: 0 auto 14px; }
  .t-box.chal-on .t-logo span:first-child { font-size: clamp(36px, 14vh, 92px); }
  .t-box.chal-on .t-logo span:last-child { font-size: clamp(44px, 19vh, 120px); }
  .r-card { width: min(660px, 94vw); display: flex; flex-wrap: wrap; justify-content: center; column-gap: 8px; }
  .r-card > * { flex: 0 0 100%; }
  .r-card > .r-ribbon { flex: 0 0 auto; }
  .r-card > .actions { flex: 1 1 calc(50% - 8px); min-width: 0; }
  .r-card > .actions .btn { min-width: 0; }
}
@media (max-width: 360px) {
  .res { height: 32px; font-size: 13px; padding-right: 9px; } .res .ic { width: 24px; height: 24px; }
  .dock { gap: 10px; } .btn-go { min-width: 128px; }
  .stage { grid-template-columns: 40px 1fr auto; gap: 8px; } .stage .num { width: 40px; height: 40px; }
  .stage .acts .btn { min-width: 72px; padding: 0 10px; }
  .r-medal { width: 80px; }
  .actions .btn { min-width: 104px; padding: 0 12px; }
  .r-shares .btn { flex: 1 1 auto; min-width: 0; font-size: 15px; }
  .hud-text { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .result.win::before, .btn-start, .hint, .tag.ready, .collect, .hud-skill.ready, .hud-strike.ready, .hud-skill.ready .hud-ic, .pips i.next, .hud-hint { animation: none !important; }
  #fade.iris { animation: fadeOut .3s ease both; -webkit-mask: none; mask: none; }
}
.photo { position: fixed; inset: 0; z-index: 8; touch-action: none; }
.photo .ph-hint { position: absolute; left: 50%; top: calc(14px + var(--safe-t, 0px)); transform: translateX(-50%); margin: 0; padding: 6px 14px; border-radius: 999px; background: rgba(20, 16, 12, .55); color: #fff; font-size: 13px; pointer-events: none; white-space: nowrap; }
.photo .ph-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.photo .ph-flash.on { animation: phFlash .45s ease-out; }
@keyframes phFlash { 0% { opacity: .9; } 100% { opacity: 0; } }
.photo .ph-bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px calc(14px + var(--safe-b, 0px)); background: linear-gradient(rgba(20, 16, 12, 0), rgba(20, 16, 12, .72) 40%); }
.photo .ph-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.photo .ph-row.main { margin-top: 12px; align-items: center; justify-content: space-between; max-width: 460px; margin-left: auto; margin-right: auto; }
.photo .ph-chip { padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; font-size: 14px; font-weight: 900; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); }
.photo .ph-chip.on { background: #fff; color: var(--ink); }
.photo .ph-side { min-width: 110px; min-height: 44px; font-size: 15px; padding: 0 12px; }
.photo .ph-shutter { width: 74px; height: 74px; border-radius: 50%; background: rgba(255, 255, 255, .25); box-shadow: inset 0 0 0 4px #fff; display: grid; place-items: center; }
.photo .ph-shutter i { width: 56px; height: 56px; border-radius: 50%; background: #fff; transition: transform .1s; }
.photo .ph-shutter:active i { transform: scale(.88); }
body.photo-on #s-hud, body.photo-on #floats, body.photo-on #result { visibility: hidden; }
.t-more { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.vs-hud { display: none; position: absolute; top: calc(66px + var(--safe-t)); left: 50%; transform: translateX(-50%); align-items: center; gap: 8px; padding: 5px 10px; border-radius: 14px; background: var(--glass); box-shadow: var(--glass-edge); pointer-events: none; font-size: 11px; color: #f3e6cc; }
body.vs-on .vs-hud { display: flex; }
body.vs-on .hud-bar { display: none; }
body.vs-on [data-act=p-photo] { display: none; }
.vs-side { display: flex; align-items: center; gap: 6px; }
.vs-side em { display: block; width: clamp(54px, 18vw, 120px); height: 9px; border-radius: 5px; background: rgba(255, 255, 255, .16); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.vs-side em i { display: block; height: 100%; width: 100%; background: var(--c, #2f55a4); transition: width .3s ease; }
.vs-side.foe em i { margin-left: auto; }
.vs-side span { white-space: nowrap; max-width: 6em; overflow: hidden; text-overflow: ellipsis; }
.vs-time { min-width: 3.2em; text-align: center; font-size: 15px; color: #fff; font-variant-numeric: tabular-nums; }
.vs-time.low { color: #ffb08a; }
.vs-waitbar { position: absolute; left: 50%; top: 38%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 14px; background: var(--glass); box-shadow: var(--glass-edge); color: #fff; font-size: 14px; pointer-events: none; }
.spin { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .25); border-top-color: currentColor; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.vs-leaders { grid-template-columns: 1fr 1fr; }
.vs-join { display: flex; gap: 8px; margin: 10px 0; }
.vs-join input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border-radius: 14px; border: 2px solid var(--line); background: #fff; font: inherit; font-size: 20px; letter-spacing: .3em; text-align: center; color: var(--ink); }
.vs-join input:focus { outline: none; border-color: var(--team); }
.vs-wait-box { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 18px 0; color: var(--ink2); text-align: center; }
.vs-wait-box .spin { width: 30px; height: 30px; color: var(--team); }
.vs-code { font-size: 44px; letter-spacing: .25em; text-indent: .25em; color: var(--ink); font-variant-numeric: tabular-nums; }
.vs-table { width: 100%; margin: 6px 0 4px; border-collapse: collapse; font-size: 14px; }
.vs-table th { text-align: left; font-weight: 700; color: var(--muted); padding: 5px 4px; }
.vs-table td { text-align: center; padding: 5px 4px; font-variant-numeric: tabular-nums; }
.vs-table thead td { font-weight: 900; color: var(--c); }
.vs-table tbody tr + tr { border-top: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2s; } }
@media (max-width: 360px) { .vs-leaders { grid-template-columns: 1fr; } .vs-leaders .leader p { font-size: 11px; } }
@media (max-width: 360px) { .hud-msg { font-size: 17px; padding: 8px 24px 9px; max-width: 96vw; } }
.vs-intro { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; pointer-events: none; background: radial-gradient(ellipse at 50% 45%, rgba(0, 0, 0, .15), rgba(0, 0, 0, .55)); opacity: 0; }
.vs-intro.show { opacity: 1; animation: fadein .3s ease both; }
.vs-intro.go { opacity: 0; animation: viOut .6s ease both; }
@keyframes viOut { from { opacity: 1; } to { opacity: 0; } }
.vi-card { display: flex; align-items: center; gap: clamp(10px, 4vw, 28px); padding: 14px clamp(14px, 5vw, 30px); border-radius: 22px; background: linear-gradient(180deg, rgba(58, 42, 28, .95), rgba(30, 22, 15, .95)); box-shadow: inset 0 2px 0 var(--brass), inset 0 -2px 0 var(--brass2), 0 12px 30px rgba(0, 0, 0, .55); color: #fff; }
.vs-intro.show .vi-card { animation: viIn .5s var(--out) both; }
@keyframes viIn { from { transform: scale(.8) translateY(12px); opacity: 0; } }
.vi-side { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 6.5em; }
.vi-side .ldr-badge { width: 52px; height: 52px; font-size: 24px; box-shadow: 0 0 0 4px var(--c), 0 4px 10px rgba(0, 0, 0, .4); }
.vi-side .vi-name { font-size: 15px; white-space: nowrap; }
.vi-side small { font-size: 11px; color: var(--c); filter: brightness(1.5); font-weight: 900; letter-spacing: .1em; }
.vs-intro.show .vi-side.me { animation: viL .5s var(--out) .1s both; }
.vs-intro.show .vi-side.foe { animation: viR .5s var(--out) .1s both; }
@keyframes viL { from { transform: translateX(-24px); opacity: 0; } }
@keyframes viR { from { transform: translateX(24px); opacity: 0; } }
.vi-vs { font-size: 34px; font-weight: 900; color: var(--brass3); text-shadow: 0 3px 0 #5a3a20; font-style: italic; }
.vi-sub { margin: 0; color: #f3e6cc; font-size: 13px; text-shadow: 0 2px 6px #000; }
.vi-count { min-height: 1.2em; font-size: 64px; font-weight: 900; color: #fff; text-shadow: 0 4px 0 #5a3a20, 0 10px 24px rgba(0, 0, 0, .6); }
.vi-count.pop { animation: viPop .5s var(--out) both; }
@keyframes viPop { from { transform: scale(1.8); opacity: 0; } 40% { opacity: 1; } }
.vs-table thead td small { display: block; font-size: 11px; font-weight: 700; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .vs-intro.show .vi-card, .vs-intro.show .vi-side, .vi-count.pop { animation: none !important; } }
.vs-foe-n { font-variant-numeric: tabular-nums; } .vs-foe-n b { font-size: 13px; color: #fff; } .vs-foe-n small { font-size: 10px; margin-left: 1px; }
body.clip-on #s-hud, body.clip-on #floats, body.clip-on #result { visibility: hidden; }
.clip-bar { position: fixed; left: 50%; bottom: calc(18px + var(--safe-b)); transform: translateX(-50%); z-index: 12; display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; border-radius: 16px; background: var(--glass); box-shadow: var(--glass-edge); color: #fff; font-size: 14px; white-space: nowrap; }
.clip-prog { display: block; width: clamp(70px, 26vw, 160px); height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.clip-prog i { display: block; height: 100%; width: 0; background: var(--team); }
.clip-video { display: block; width: min(100%, 300px); aspect-ratio: 9 / 16; margin: 6px auto 12px; border-radius: 14px; background: #1d1712; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.r-shares .r-clip { flex: 1; min-width: 0; }
.goal-mark { position: absolute; z-index: 2; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; gap: 2px; pointer-events: none; color: #fff; font-size: 12px; font-weight: 900; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); white-space: nowrap; animation: gmBob 1.4s ease-in-out infinite; }
.goal-mark b { padding: 2px 8px; border-radius: 999px; background: rgba(30, 22, 15, .72); box-shadow: inset 0 0 0 1px rgba(240, 212, 138, .5); }
.goal-mark .gm-arrow { order: 2; width: 22px; height: 22px; color: var(--brass3); transform: rotate(var(--a, 90deg)); filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .7)); }
.goal-mark.edge { transform: translate(-50%, -50%); flex-direction: row; gap: 4px; animation: none; }
.goal-mark.edge b { font-size: 11px; }
@keyframes gmBob { 50% { margin-top: -4px; } }
@media (prefers-reduced-motion: reduce) { .goal-mark { animation: none; } }
body.photo-on .goal-mark, body.clip-on .goal-mark { visibility: hidden; }
.tag.up { background: linear-gradient(180deg, #fff6d6, #f3d98a); }
.tag.up::after { border-top-color: #f3d98a; }
.tag.up .ic { transform: rotate(-90deg); color: #8a5a12; }
body { word-break: auto-phrase; overflow-wrap: break-word; }
.btn { word-break: keep-all; }
.r-shares { flex-wrap: wrap; }
.r-shares .btn-share { flex: 1 1 100%; }
.r-shares .r-photo, .r-shares .r-clip { flex: 1 1 0; min-width: 0; }
.btn-danger { color: #b8402a; box-shadow: inset 0 0 0 2px rgba(184, 64, 42, .35), 0 4px 0 #8d816a, 0 6px 12px rgba(0, 0, 0, .3); }
@media (max-width: 360px) { .hud-msg { white-space: normal; text-wrap: balance; width: max-content; max-width: 92vw; line-height: 1.35; } }
@media (max-height: 560px) and (min-aspect-ratio: 1/1) {
  .t-box { display: flex; align-items: center; gap: clamp(20px, 5vw, 56px); transform: none; }
  .t-acts { width: min(380px, 48vw); }
  .t-chal { margin: 0 auto 10px; padding: 8px 12px 10px; }
  .t-chal p { font-size: 13px; margin-bottom: 6px; } .t-chal b { font-size: 15px; }
  .t-chal .btn { min-height: 42px; }
  .t-box .btn-big { min-height: 52px; }
  .t-more { margin-top: 10px; }
  .t-logo span:first-child { font-size: clamp(36px, 14vh, 92px); }
  .t-logo span:last-child { font-size: clamp(44px, 19vh, 120px); }
  .t-tag { margin: 8px 0 0; }
  .t-ver { left: auto; right: calc(12px + var(--safe-r)); bottom: calc(6px + var(--safe-b)); }
  .r-card > .r-shares { flex: 1 1 100%; flex-wrap: nowrap; }
  .r-shares .btn-share { flex: 2 1 0; }
  .r-shares .btn { font-size: 14px; padding: 0 10px; }
}
.vs-err { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 10px 0; padding: 10px; border-radius: 14px; background: #fbeee8; box-shadow: inset 0 0 0 1px #efc9bc; }
.vs-err .why { margin: 0; text-align: center; }
.vs-join input::placeholder { letter-spacing: .04em; font-size: 15px; }
.stage.next { box-shadow: inset 4px 0 0 var(--ok, #5aa23a), inset 0 0 0 2px #b9dc9f, 0 2px 0 #e4d3ad; }
.chip.next { background: #5aa23a; color: #fff; }
.photo .ph-guide { position: absolute; border: 2px solid rgba(255, 255, 255, .75); border-radius: 4px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .3); pointer-events: none; }
.ldr-badge.pic { background: var(--pic) 50% 30% / 122% no-repeat, radial-gradient(circle at 50% 28%, rgba(255, 255, 255, .6), rgba(255, 255, 255, 0) 70%), color-mix(in srgb, var(--ac) 50%, #fff6e6); }
#web-title:empty { display: none; }
.dsw-tl {
  margin: 14px 0 -12px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; column-gap: 2px;
  font-size: 11px; font-weight: 500; line-height: 1.4; color: #fffb; text-shadow: 0 1px 4px #000c; letter-spacing: .04em;
}
.dsw-tl-v { font-variant-numeric: tabular-nums; white-space: nowrap; }
.dsw-tl a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; color: inherit; white-space: nowrap;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: #fff6; border-radius: 8px;
}
.dsw-tl a:focus-visible { outline: 3px solid #fff7; outline-offset: -4px; }
.dsw-dot { width: 3px; height: 3px; margin: 0 4px; border-radius: 50%; background: currentColor; flex: none; }
.dsw-foot { margin: 6px 2px 0; font-size: 12px; font-weight: 500; line-height: 1.6; color: #7a6650; }
.dsw-ver { margin: 0; font-variant-numeric: tabular-nums; }
.dsw-links { margin: 2px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; column-gap: 14px; }
.dsw-links a {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--wood, #6b4426); font-weight: 700;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: #6b442666;
  -webkit-user-select: none; user-select: none;
}
.dsw-links a:focus-visible { outline: 3px solid var(--brass, #d4ac55); outline-offset: 2px; border-radius: 6px; }
