@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --arcade-bg: #111014;
  --arcade-panel: #1c1a21;
  --arcade-panel-2: #24212a;
  --arcade-text: #fffaff;
  --arcade-muted: #aaa5b0;
  --arcade-soft: #77717e;
  --arcade-line: rgba(255, 255, 255, .085);
  --arcade-lime: #c8ff3d;
  --arcade-pink: #ff4f9a;
  --arcade-cyan: #47e6ee;
  --arcade-safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: "Vazirmatn", sans-serif;
  background: var(--arcade-bg);
  color: var(--arcade-text);
}

*, *::before, *::after { box-sizing: border-box; }
html { width: 100%; min-width: 320px; height: 100%; overflow: hidden; background: var(--arcade-bg); }
body { width: 100%; min-width: 320px; height: 100%; height: 100dvh; margin: 0; overflow: hidden; background: radial-gradient(ellipse at 50% -18%, rgba(117, 66, 109, .21), transparent 52%), var(--arcade-bg); color: var(--arcade-text); font-family: "Vazirmatn", sans-serif; line-height: 1.5; -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
body::before { position: fixed; z-index: 0; inset: 0; background-image: radial-gradient(rgba(255,255,255,.045) .65px, transparent .65px); background-size: 21px 21px; content: ""; opacity: .28; pointer-events: none; }
a { color: inherit; text-decoration: none; }
button, input, select { color: inherit; font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--arcade-cyan); outline-offset: 3px; }
::selection { background: var(--arcade-pink); color: #17131a; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }

@media (max-width: 767px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
  select,
  textarea {
    font-size: max(16px, 1em) !important;
  }
}

.arcade-shell { position: relative; z-index: 1; display: grid; width: min(100%, 760px); height: 100%; height: 100dvh; grid-template-rows: auto minmax(0, 1fr); margin-inline: auto; isolation: isolate; }
.arcade-header { position: relative; display: grid; min-height: 76px; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .5rem; padding: max(.7rem, env(safe-area-inset-top)) 1.1rem .7rem; }
.arcade-header__actions { display: flex; align-items: center; justify-self: end; gap: .55rem; }
.share-trigger { display: grid; width: 2.7rem; height: 2.7rem; place-items: center; border: 1px solid rgba(71,230,238,.32); border-radius: 50%; background: linear-gradient(145deg, rgba(71,230,238,.14), rgba(71,230,238,.04)); color: var(--arcade-cyan); font-size: 1rem; cursor: pointer; box-shadow: 0 0 0 4px rgba(71,230,238,.06); transition: transform .18s, background .18s, box-shadow .18s; }
.share-trigger:hover { transform: translateY(-1px); background: rgba(71,230,238,.18); box-shadow: 0 0 18px rgba(71,230,238,.2); }
.share-trigger:active { transform: scale(.94); }
.arcade-status { display: inline-flex; width: fit-content; align-items: center; gap: .35rem; padding: .34rem .62rem; border: 1px solid rgba(200,255,61,.2); border-radius: 999px; background: rgba(200,255,61,.075); color: var(--arcade-lime); font-size: .67rem; font-weight: 800; white-space: nowrap; }
.arcade-status__bolt { font-size: .78rem; }
.arcade-status > i, .online-pill > i { width: .42rem; height: .42rem; border-radius: 50%; background: var(--arcade-lime); box-shadow: 0 0 10px rgba(200,255,61,.72); }
.arcade-brand { display: inline-flex; align-items: center; justify-self: center; gap: .5rem; font-size: 1rem; font-weight: 900; letter-spacing: -.055em; white-space: nowrap; }
.arcade-brand b { color: var(--arcade-lime); }
.arcade-brand__mark { display: grid; width: 2rem; height: 2rem; place-items: center; transform: rotate(-8deg); border: 1px solid rgba(200,255,61,.28); border-radius: .68rem; background: rgba(200,255,61,.12); color: var(--arcade-lime); font-size: .95rem; }
.avatar-trigger { display: grid; width: 2.7rem; height: 2.7rem; justify-self: end; place-items: center; border: 2px solid var(--arcade-pink); border-radius: 50%; background: linear-gradient(145deg, #332330, #201c25); color: #fff; font-size: 1rem; font-weight: 900; cursor: pointer; box-shadow: 0 0 0 4px rgba(255,79,154,.1), 0 0 18px rgba(255,79,154,.2); transition: transform .18s, box-shadow .18s; }
.avatar-trigger:hover { transform: scale(1.06); box-shadow: 0 0 0 5px rgba(255,79,154,.13), 0 0 25px rgba(255,79,154,.34); }
.arcade-main { min-height: 0; overflow-x: hidden; overflow-y: auto; padding: .55rem 1rem calc(6.5rem + var(--arcade-safe-bottom)); overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.arcade-main::-webkit-scrollbar { display: none; }

.shelf-heading { display: flex; align-items: end; justify-content: space-between; gap: .7rem; padding: .25rem .1rem 1rem; }
.shelf-eyebrow { display: inline-flex; align-items: center; gap: .35rem; color: var(--arcade-muted); font-size: .72rem; font-weight: 700; }
.shelf-eyebrow__spark { color: var(--arcade-pink); font-size: 1rem; }
.shelf-heading h1 { margin: .14rem 0 0; font-size: clamp(1.7rem, 7vw, 2.3rem); font-weight: 900; letter-spacing: -.065em; line-height: 1.2; }
.shelf-heading h1 em { color: var(--arcade-lime); font-style: normal; text-shadow: 0 0 25px rgba(200,255,61,.13); }
.online-pill { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: .2rem; padding: .42rem .62rem; border: 1px solid var(--arcade-line); border-radius: 999px; background: rgba(255,255,255,.035); color: var(--arcade-muted); font-size: .62rem; white-space: nowrap; }
.online-pill > i { width: .34rem; height: .34rem; }

.game-shelf { display: grid; gap: .78rem; }
.game-card { position: relative; display: grid; min-height: 194px; grid-template-columns: 112px minmax(0, 1fr); align-items: stretch; overflow: hidden; border: 1px solid var(--arcade-line); border-radius: 1.25rem; background: linear-gradient(112deg, rgba(255,255,255,.052), rgba(255,255,255,.018) 63%), var(--arcade-panel); box-shadow: 0 10px 32px rgba(0,0,0,.17); isolation: isolate; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.game-card::before { position: absolute; z-index: -1; top: -50px; left: -40px; width: 160px; height: 160px; border-radius: 50%; background: var(--game-accent); content: ""; opacity: .12; filter: blur(52px); }
.game-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--game-accent), transparent 55%); box-shadow: 0 14px 34px rgba(0,0,0,.24), 0 0 20px color-mix(in srgb, var(--game-accent), transparent 90%); }
.game-card__art { position: relative; display: grid; min-height: 100%; place-items: center; overflow: hidden; border-left: 1px solid var(--arcade-line); background: radial-gradient(circle at 53% 48%, color-mix(in srgb, var(--game-accent), transparent 83%), transparent 62%); }
.game-card__art img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.game-card__art > i { position: relative; z-index: 1; transform: rotate(-8deg); color: var(--game-accent); font-size: 3rem; filter: drop-shadow(0 0 18px color-mix(in srgb, var(--game-accent), transparent 55%)); transition: transform .25s ease; }
.game-card:hover .game-card__art > i { transform: rotate(0) scale(1.1); }
.art-orbit { position: absolute; width: 5.4rem; height: 5.4rem; border: 1px solid color-mix(in srgb, var(--game-accent), transparent 77%); border-radius: 38% 62% 53% 47%; transform: rotate(30deg); animation: orbit-spin 12s linear infinite; }
.art-orbit::after { position: absolute; top: -.27rem; left: 50%; width: .48rem; height: .48rem; border-radius: 50%; background: var(--game-accent); content: ""; box-shadow: 0 0 10px var(--game-accent); }
.art-spark { position: absolute; top: 20%; right: 15%; color: var(--game-accent); font-size: 1.15rem; animation: spark-pulse 2s ease-in-out infinite; }
.game-card__body { display: flex; min-width: 0; flex-direction: column; align-items: stretch; padding: .85rem .9rem .8rem; }
.game-card__top { display: flex; align-items: center; justify-content: space-between; gap: .35rem; }
.game-category { overflow: hidden; color: var(--arcade-soft); font-size: .62rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.game-badge { display: inline-flex; align-items: center; flex: 0 0 auto; gap: .2rem; padding: .24rem .45rem; border: 1px solid transparent; border-radius: 999px; font-size: .59rem; font-weight: 800; white-space: nowrap; }
.game-badge { border-color: color-mix(in srgb, var(--badge-accent, var(--arcade-lime)), transparent 74%); background: color-mix(in srgb, var(--badge-accent, var(--arcade-lime)), transparent 91%); color: var(--badge-accent, var(--arcade-lime)); }
.game-card h2 { margin: .12rem 0 0; font-size: 1.32rem; font-weight: 900; letter-spacing: -.04em; line-height: 1.35; }
.game-card h2 a:hover { color: var(--game-accent); }
.game-card__body > p { margin: .2rem 0 .55rem; color: var(--arcade-muted); font-size: .72rem; line-height: 1.65; }
.game-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: auto; padding-bottom: .48rem; }
.game-tags span { padding: .2rem .4rem; border: 1px solid var(--arcade-line); border-radius: .48rem; background: rgba(255,255,255,.027); color: #d0cbd4; font-size: .58rem; font-weight: 600; white-space: nowrap; }
.game-card__actions { display: flex; align-items: center; justify-content: space-between; gap: .4rem; }
.game-card__stats { display: flex; align-items: center; gap: .55rem; color: var(--arcade-soft); font-size: .61rem; font-variant-numeric: tabular-nums; }
.game-card__stats span { display: inline-flex; align-items: center; gap: .22rem; }
.game-card__stats span:last-child i { color: var(--arcade-pink); }
.arcade-button { display: inline-flex; min-height: 2.72rem; align-items: center; justify-content: center; gap: .55rem; padding: .55rem .9rem; border: 0; border-radius: .82rem; color: #17131a; font-size: .84rem; font-weight: 900; cursor: pointer; box-shadow: 0 5px 16px rgba(0,0,0,.22); transition: transform .15s ease, filter .15s ease, box-shadow .15s ease; }
.arcade-button:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 8px 20px rgba(0,0,0,.28); }
.arcade-button:active { transform: translateY(1px) scale(.985); }
.arcade-button--lime { background: var(--arcade-lime); }
.arcade-button--pink { background: var(--arcade-pink); color: #fff; }
.arcade-button--cyan { background: var(--arcade-cyan); }
.arcade-button--wide { width: 100%; }
.arcade-button--play { min-height: 2.35rem; flex: 0 0 auto; padding: .4rem .7rem; background: var(--game-accent, var(--arcade-lime)); color: #141216; font-size: .69rem; }
.arcade-button--play i { transition: transform .18s; }
.arcade-button--play:hover i { transform: translateX(-3px); }
.shelf-footer { display: flex; align-items: center; justify-content: center; gap: .55rem; padding: 1rem .25rem .45rem; color: var(--arcade-muted); font-size: .72rem; }
.shelf-footer p { margin: 0; }
.shelf-footer b { color: var(--arcade-pink); }
.shelf-footer a { display: inline-flex; align-items: center; gap: .45rem; color: var(--arcade-cyan); font-weight: 800; }
.yn-bnr#ynpos-20660 { width: 100%; max-width: 100%; margin: .9rem auto .35rem; overflow: hidden; border: 1px solid transparent; border-radius: 1.15rem; }
.yn-bnr#ynpos-20660:not(:empty) { position: relative; display: grid; min-height: 11rem; align-content: center; gap: .55rem; padding: 1rem; overflow: hidden; border-color: var(--arcade-line); border-radius: 1.25rem; background: linear-gradient(112deg, rgba(255,255,255,.052), rgba(255,255,255,.018) 63%), var(--arcade-panel); box-shadow: 0 10px 32px rgba(0,0,0,.17); isolation: isolate; }
.yn-bnr#ynpos-20660:not(:empty)::after { position: absolute; z-index: -1; top: -50px; left: -40px; width: 160px; height: 160px; border-radius: 50%; background: var(--arcade-cyan); content: ""; opacity: .12; filter: blur(52px); pointer-events: none; }
.yn-bnr#ynpos-20660:not(:empty)::before { display: block; color: var(--arcade-soft); content: "پیشنهاد تبلیغاتی"; font-size: .58rem; font-weight: 700; line-height: 1.4; }
.yn-bnr#ynpos-20660 iframe { display: block; max-width: 100%; margin-inline: auto; border: 0; border-radius: .72rem; }
.games-empty { padding: 1.5rem; border: 1px dashed var(--arcade-line); border-radius: 1rem; color: var(--arcade-muted); text-align: center; }
.games-pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; padding: 1rem; color: var(--arcade-muted); font-size: .8rem; }
.games-pagination a { color: var(--arcade-lime); font-weight: 800; }

.game-detail { padding: .2rem 0 1rem; }
.game-back { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1rem; color: var(--arcade-muted); font-size: .77rem; }
.game-back i { color: var(--arcade-cyan); }
.game-detail__hero { display: flex; align-items: center; gap: 1rem; padding: 1rem; border: 1px solid color-mix(in srgb, var(--game-accent), transparent 78%); border-radius: 1.25rem; background: radial-gradient(ellipse at 10% 20%, color-mix(in srgb, var(--game-accent), transparent 88%), transparent 70%), var(--arcade-panel); }
.game-detail__icon { display: grid; width: 5rem; height: 5rem; flex: 0 0 auto; overflow: hidden; place-items: center; border: 1px solid color-mix(in srgb, var(--game-accent), transparent 68%); border-radius: 1rem; background: color-mix(in srgb, var(--game-accent), transparent 90%); color: var(--game-accent); font-size: 2.2rem; }
.game-detail__icon img { width: 100%; height: 100%; object-fit: cover; }
.game-detail__heading h1 { margin: .15rem 0 .4rem; font-size: clamp(1.5rem, 6vw, 2.2rem); font-weight: 900; letter-spacing: -.055em; }
.game-detail__summary { margin: 1rem .1rem; color: var(--arcade-muted); }
.game-detail__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; margin: 1rem 0; }
.game-detail__stats span { display: flex; align-items: center; gap: .5rem; min-height: 2.7rem; padding: .55rem .7rem; border: 1px solid var(--arcade-line); border-radius: .8rem; background: rgba(255,255,255,.025); color: #ded9e2; font-size: .75rem; }
.game-detail__stats i { color: var(--game-accent); }
.game-detail__cover { display: block; width: 100%; max-height: 320px; margin: 1rem 0; border-radius: 1.1rem; object-fit: cover; }
.game-detail__info { margin: 1rem 0; padding: 1rem; border: 1px solid var(--arcade-line); border-radius: 1rem; background: var(--arcade-panel); color: var(--arcade-muted); font-size: .9rem; }
.game-detail__info h2 { margin: 0 0 .5rem; color: var(--arcade-text); font-size: 1.05rem; }
.game-detail__info p:last-child { margin-bottom: 0; }
.game-detail__actions { display: flex; flex-wrap: wrap; gap: .65rem; padding-top: .4rem; }
.game-detail__actions form { flex: 1; }
.game-like-button { display: inline-flex; width: 100%; min-height: 2.8rem; align-items: center; justify-content: center; gap: .5rem; padding: .5rem .8rem; border: 1px solid rgba(255,79,154,.24); border-radius: .82rem; background: rgba(255,79,154,.08); color: #ff8ab9; font: inherit; font-size: .77rem; font-weight: 800; cursor: pointer; }
.game-like-button.is-liked { background: rgba(255,79,154,.16); }
.game-detail__actions > .arcade-button { flex: 1; }

.arcade-dock { position: fixed; z-index: 10; right: 50%; bottom: calc(.65rem + var(--arcade-safe-bottom)); display: grid; width: min(420px, calc(100% - 1.4rem)); min-height: 4.15rem; grid-template-columns: repeat(3, 1fr); padding: .35rem; transform: translateX(50%); border: 1px solid rgba(255,255,255,.12); border-radius: 1.25rem; background: rgba(34,31,39,.86); box-shadow: 0 14px 36px rgba(0,0,0,.45), inset 0 1px rgba(255,255,255,.04); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
.dock-item { display: flex; min-width: 0; flex-direction: column; align-items: center; justify-content: center; gap: .12rem; border: 0; border-radius: .9rem; background: transparent; color: var(--arcade-soft); cursor: pointer; transition: background .18s, color .18s, transform .18s; }
.dock-item > span { display: grid; width: 2.1rem; height: 1.9rem; place-items: center; border-radius: .7rem; font-size: 1.05rem; }
.dock-item small { font-size: .62rem; font-weight: 700; }
.dock-item:hover { color: var(--arcade-text); }
.dock-item:active { transform: scale(.94); }
.dock-item--active { color: var(--arcade-lime); }
.dock-item--active > span { background: rgba(200,255,61,.12); box-shadow: 0 0 18px rgba(200,255,61,.08); }

.sheet-backdrop { position: fixed; z-index: 19; inset: 0; background: rgba(5,4,8,.67); opacity: 0; transition: opacity .24s ease; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.sheet-backdrop:not([hidden]) { opacity: 1; }
.bottom-sheet { position: fixed; z-index: 20; right: 50%; bottom: 0; width: min(100%, 560px); max-height: min(82dvh, 720px); overflow-y: auto; padding: .65rem 1.15rem calc(1rem + var(--arcade-safe-bottom)); transform: translate(50%, 105%); border: 1px solid rgba(255,255,255,.1); border-bottom: 0; border-radius: 1.65rem 1.65rem 0 0; background: linear-gradient(145deg, #24212a, #19171e 68%); box-shadow: 0 -18px 60px rgba(0,0,0,.48); opacity: 0; visibility: hidden; touch-action: pan-y; transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .22s ease, visibility .28s; overscroll-behavior: contain; scrollbar-width: thin; }
.bottom-sheet.is-open { transform: translate(50%, 0); opacity: 1; visibility: visible; }
.tools-sheet { width: min(100%, 500px); max-height: min(88dvh, 760px); padding-inline: clamp(.9rem, 4vw, 1.25rem); }
.sheet-grabber { width: 2.5rem; height: .25rem; margin: 0 auto 1rem; border-radius: 999px; background: rgba(255,255,255,.22); }
.sheet-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.sheet-kicker { color: var(--arcade-lime); font-size: .69rem; font-weight: 800; }
.sheet-heading h2 { margin: .1rem 0 0; font-size: 1.35rem; font-weight: 900; letter-spacing: -.04em; }
.tools-heading__actions { display: flex; align-items: center; gap: .45rem; }
.sound-toggle { display: grid; width: 2.5rem; height: 2.5rem; place-items: center; border: 1px solid rgba(71,230,238,.22); border-radius: .8rem; background: rgba(71,230,238,.08); color: var(--arcade-cyan); font-size: .95rem; cursor: pointer; }
.sound-toggle[aria-pressed="false"] { border-color: var(--arcade-line); background: rgba(255,255,255,.035); color: var(--arcade-muted); }
.sheet-close { display: grid; width: 2.5rem; height: 2.5rem; flex: 0 0 auto; place-items: center; border: 1px solid var(--arcade-line); border-radius: .8rem; background: rgba(255,255,255,.04); color: var(--arcade-muted); font-size: 1rem; cursor: pointer; }
.share-sheet__message { margin: -.3rem 0 1rem; color: var(--arcade-muted); font-size: .82rem; line-height: 1.9; }
.share-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.share-option { display: grid; min-width: 0; min-height: 7.3rem; align-content: center; justify-items: center; gap: .23rem; padding: .7rem .4rem; border: 1px solid var(--arcade-line); border-radius: 1rem; background: rgba(255,255,255,.035); color: var(--arcade-text); font: inherit; text-align: center; text-decoration: none; cursor: pointer; transition: transform .16s, background .16s, border-color .16s; }
.share-option:hover { transform: translateY(-2px); background: rgba(255,255,255,.07); }
.share-option:active { transform: scale(.97); }
.share-option > span { display: grid; width: 2.5rem; height: 2.5rem; margin-bottom: .12rem; place-items: center; border-radius: .8rem; background: rgba(71,230,238,.1); color: var(--arcade-cyan); font-size: 1.05rem; }
.share-option b { font-size: .78rem; font-weight: 900; }
.share-option small { color: var(--arcade-muted); font-size: .62rem; }
.share-option--whatsapp > span { background: rgba(37,211,102,.11); color: #4be28a; }
.share-option--telegram > span { background: rgba(40,169,224,.12); color: #54c7f4; }
.share-option--copy > span { background: rgba(200,255,61,.1); color: var(--arcade-lime); }
.share-sheet__status { min-height: 1.2rem; margin: .65rem 0 0; color: var(--arcade-lime); font-size: .72rem; text-align: center; }
.account-actions { display: grid; gap: .65rem; }
.account-actions form { margin: 0; }
.sheet-action { display: grid; width: 100%; min-height: 4.1rem; grid-template-columns: 2.8rem 1fr auto; align-items: center; gap: .7rem; padding: .62rem .7rem; border: 1px solid var(--arcade-line); border-radius: 1rem; background: rgba(255,255,255,.035); text-align: right; cursor: pointer; transition: border-color .18s, background .18s; }
.sheet-action:hover { border-color: rgba(200,255,61,.25); background: rgba(255,255,255,.055); }
.sheet-action--primary { border-color: rgba(200,255,61,.19); background: rgba(200,255,61,.06); }
.sheet-action__icon { display: grid; width: 2.65rem; height: 2.65rem; place-items: center; border-radius: .8rem; background: rgba(200,255,61,.11); color: var(--arcade-lime); font-size: 1rem; }
.sheet-action--quiet .sheet-action__icon { background: rgba(255,79,154,.1); color: var(--arcade-pink); }
.sheet-action b, .sheet-action small { display: block; }
.sheet-action b { font-size: .86rem; }
.sheet-action small { margin-top: .1rem; color: var(--arcade-soft); font-size: .68rem; }
.sheet-action__arrow { color: var(--arcade-soft); font-size: .8rem; }
.sheet-footnote { display: flex; align-items: center; justify-content: center; gap: .4rem; margin: 1rem 0 .15rem; color: var(--arcade-soft); font-size: .72rem; }
.sheet-footnote i { color: var(--arcade-pink); }

.tool-picker { display: grid; gap: .55rem; }
.tool-choice { display: grid; min-height: 4.15rem; grid-template-columns: 2.6rem minmax(0, 1fr) auto; align-items: center; gap: .7rem; padding: .55rem .7rem; border: 1px solid var(--arcade-line); border-radius: 1rem; background: rgba(255,255,255,.035); color: var(--arcade-text); text-align: right; cursor: pointer; transition: transform .16s, border-color .16s, background .16s; }
.tool-choice:hover { transform: translateY(-1px); border-color: rgba(200,255,61,.25); background: rgba(255,255,255,.06); }
.tool-choice__icon { display: grid; width: 2.5rem; height: 2.5rem; place-items: center; border-radius: .8rem; background: rgba(255,79,154,.1); color: var(--arcade-pink); font-size: 1rem; }
.tool-choice__icon--cyan { background: rgba(71,230,238,.1); color: var(--arcade-cyan); }
.tool-choice b, .tool-choice small { display: block; }
.tool-choice b { font-size: .85rem; }
.tool-choice small { margin-top: .12rem; color: var(--arcade-soft); font-size: .68rem; }
.tool-choice__arrow { color: var(--arcade-muted); font-size: .8rem; }
.party-tools { display: block; }
.party-tools[hidden], .tool-picker[hidden], [data-tool-panel][hidden] { display: none !important; }
.tool-back { display: flex; align-items: center; gap: .45rem; margin: 0 0 .6rem; padding: .35rem .1rem; border: 0; background: transparent; color: var(--arcade-soft); font: inherit; font-size: .72rem; font-weight: 750; cursor: pointer; }
.party-tool { min-width: 0; padding: .85rem; border: 1px solid var(--arcade-line); border-radius: 1.1rem; background: rgba(255,255,255,.03); }
.party-tool__top { display: flex; align-items: center; gap: .55rem; }
.party-tool__icon { display: grid; width: 2.35rem; height: 2.35rem; flex: 0 0 auto; place-items: center; border-radius: .75rem; font-size: .95rem; }
.party-tool__icon--pink { background: rgba(255,79,154,.11); color: var(--arcade-pink); }
.party-tool__icon--cyan { background: rgba(71,230,238,.11); color: var(--arcade-cyan); }
.party-tool h3 { margin: 0; font-size: .86rem; }
.party-tool__top p { margin: .08rem 0 0; color: var(--arcade-soft); font-size: .62rem; }
.die-face { display: grid; width: clamp(5rem, 22vw, 6.1rem); aspect-ratio: 1; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 13%; border: 1px solid rgba(200,255,61,.52); border-radius: 1.15rem; background: linear-gradient(145deg, #dcff71, #a9e92c); box-shadow: 0 8px 26px rgba(175,245,55,.18), inset 0 2px rgba(255,255,255,.62); }
.die-face--pink { border-color: rgba(255,79,154,.55); background: linear-gradient(145deg, #ff93c1, #ed4f91); box-shadow: 0 8px 26px rgba(255,79,154,.16), inset 0 2px rgba(255,255,255,.5); }
.die-face span { width: .55rem; aspect-ratio: 1; place-self: center; border-radius: 50%; background: #24202a; opacity: 0; transform: scale(.45); transition: opacity .12s, transform .12s; }
.die-face.face-1 span:nth-child(5), .die-face.face-2 span:nth-child(1), .die-face.face-2 span:nth-child(9), .die-face.face-3 span:nth-child(1), .die-face.face-3 span:nth-child(5), .die-face.face-3 span:nth-child(9), .die-face.face-4 span:nth-child(1), .die-face.face-4 span:nth-child(3), .die-face.face-4 span:nth-child(7), .die-face.face-4 span:nth-child(9), .die-face.face-5 span:nth-child(1), .die-face.face-5 span:nth-child(3), .die-face.face-5 span:nth-child(5), .die-face.face-5 span:nth-child(7), .die-face.face-5 span:nth-child(9), .die-face.face-6 span:nth-child(1), .die-face.face-6 span:nth-child(3), .die-face.face-6 span:nth-child(4), .die-face.face-6 span:nth-child(6), .die-face.face-6 span:nth-child(7), .die-face.face-6 span:nth-child(9) { opacity: 1; transform: scale(1); }
.die-face.is-rolling { animation: dice-shake .28s ease-in-out 2; }
.party-tool > .arcade-button { width: 100%; min-height: 2.45rem; font-size: .76rem; }
.timer-control { display: flex; min-height: 5.1rem; align-items: center; justify-content: space-between; }
.timer-control > button { display: grid; width: 2rem; height: 2rem; place-items: center; border: 1px solid var(--arcade-line); border-radius: .65rem; background: rgba(255,255,255,.04); color: var(--arcade-cyan); font-size: 1.2rem; cursor: pointer; }
.timer-control strong { text-align: center; font-variant-numeric: tabular-nums; }
.timer-control strong > span { display: block; color: var(--arcade-cyan); font-size: 1.65rem; line-height: 1.1; }
.timer-control strong small { color: var(--arcade-soft); font-size: .6rem; font-weight: 500; }
.timer-actions { display: flex; align-items: center; gap: .35rem; }
.timer-actions .arcade-button { min-height: 2.45rem; flex: 1; font-size: .76rem; }
.timer-reset { padding: .45rem; border: 0; background: transparent; color: var(--arcade-muted); font-size: .67rem; cursor: pointer; }
.timer-finished { animation: timer-flash .55s ease-in-out 3; }
.party-tools { padding-bottom: .35rem; }
.party-tool { padding: 1rem; border-radius: 1.15rem; }
.party-tool--dice { grid-column: 1 / -1; }
.party-tool--timer { grid-column: 1 / -1; }
.dice-pair { display: flex; min-height: 8rem; align-items: center; justify-content: center; gap: clamp(1rem, 8vw, 3rem); }
.dice-total { margin: .15rem 0 .8rem; color: var(--arcade-muted); font-size: .78rem; font-weight: 800; text-align: center; }
.party-tool--dice > .arcade-button { max-width: 360px; min-height: 3rem; margin-inline: auto; font-size: .85rem; }
.timer-presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .42rem; margin-top: .9rem; }
.timer-presets button { min-height: 2.25rem; padding: .3rem; border: 1px solid var(--arcade-line); border-radius: .65rem; background: rgba(255,255,255,.025); color: var(--arcade-muted); font: inherit; font-size: .68rem; font-weight: 750; cursor: pointer; }
.timer-presets button.is-selected { border-color: rgba(71,230,238,.35); background: rgba(71,230,238,.1); color: var(--arcade-cyan); }
.timer-control { min-height: 6.1rem; }
.timer-control > button { width: 2.65rem; height: 2.65rem; border-radius: .8rem; font-size: 1.4rem; }
.timer-control strong > span { font-size: clamp(2.25rem, 9vw, 3rem); font-variant-numeric: tabular-nums; }
.timer-progress { height: .42rem; overflow: hidden; margin: -.15rem 0 .8rem; border-radius: 999px; background: rgba(255,255,255,.08); }
.timer-progress > span { display: block; width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--arcade-cyan), var(--arcade-lime)); box-shadow: 0 0 12px rgba(71,230,238,.34); transition: width .35s linear; }
.timer-actions .arcade-button { min-height: 2.9rem; font-size: .82rem; }
.party-tool__input { width: 100%; min-height: 3.25rem; margin-top: .75rem; padding: .65rem .75rem; resize: vertical; border: 1px solid var(--arcade-line); border-radius: .75rem; outline: 0; background: rgba(8,7,11,.4); color: var(--arcade-text); font: inherit; font-size: .75rem; line-height: 1.7; }
.party-tool__input:focus { border-color: rgba(71,230,238,.55); box-shadow: 0 0 0 3px rgba(71,230,238,.08); }
.party-tool__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; margin-top: .55rem; }
.party-tool__buttons .arcade-button { min-height: 2.55rem; padding-inline: .5rem; font-size: .69rem; }
.party-tool__result { min-height: 2.5rem; margin: .65rem 0 0; padding: .55rem .65rem; border-radius: .7rem; background: rgba(255,255,255,.035); color: var(--arcade-muted); font-size: .68rem; line-height: 1.7; overflow-wrap: anywhere; }
.party-tool--mini .party-tool__top { min-height: 3rem; }
.party-tool--mini .party-tool__top p { line-height: 1.6; }
.party-tool--mini > .arcade-button { width: 100%; min-height: 2.6rem; margin-top: .75rem; font-size: .75rem; }
body.sheet-open { overflow: hidden; }

@keyframes orbit-spin { to { transform: rotate(390deg); } }
@keyframes spark-pulse { 0%, 100% { opacity: .5; transform: scale(.82) rotate(0); } 50% { opacity: 1; transform: scale(1.2) rotate(30deg); } }
@keyframes dice-shake { 25% { transform: rotate(-12deg) scale(.85); } 75% { transform: rotate(12deg) scale(1.08); } }
@keyframes timer-flash { 50% { color: var(--arcade-pink); text-shadow: 0 0 20px var(--arcade-pink); } }

@media (min-width: 700px) {
  .arcade-shell { border-inline: 1px solid rgba(255,255,255,.025); background: rgba(17,16,20,.56); box-shadow: 0 0 90px rgba(0,0,0,.25); }
  .arcade-header { min-height: 88px; padding-inline: 1.55rem; }
  .arcade-main { padding: .8rem 1.55rem calc(6.5rem + var(--arcade-safe-bottom)); }
  .shelf-heading { padding-bottom: 1.25rem; }
  .game-shelf { gap: .95rem; }
  .game-card { min-height: 206px; grid-template-columns: 142px minmax(0, 1fr); border-radius: 1.45rem; }
  .game-card__body { padding: 1rem 1.1rem .9rem; }
  .game-card h2 { font-size: 1.5rem; }
  .game-card__body > p { font-size: .79rem; }
  .game-card__art > i { font-size: 3.5rem; }
}
@media (max-width: 370px) {
  .arcade-header { min-height: 68px; padding-inline: .75rem; }
  .arcade-status { gap: .22rem; padding-inline: .43rem; font-size: .6rem; }
  .arcade-brand { gap: .32rem; font-size: .9rem; }
  .arcade-brand__mark { width: 1.8rem; height: 1.8rem; }
  .avatar-trigger { width: 2.45rem; height: 2.45rem; }
  .share-trigger { width: 2.45rem; height: 2.45rem; }
  .arcade-main { padding-inline: .72rem; }
  .game-card { min-height: 185px; grid-template-columns: 88px minmax(0, 1fr); }
  .game-card__body { padding: .72rem .68rem; }
  .game-card h2 { font-size: 1.18rem; }
  .game-card__body > p { font-size: .67rem; }
  .game-card__art > i { font-size: 2.55rem; }
  .art-orbit { width: 4.6rem; height: 4.6rem; }
  .game-category { font-size: .55rem; }
  .game-badge { padding-inline: .35rem; font-size: .53rem; }
  .game-tags { gap: .22rem; }
  .game-tags span { padding-inline: .3rem; font-size: .52rem; }
  .game-card__stats { gap: .35rem; font-size: .55rem; }
  .arcade-button--play { padding-inline: .55rem; font-size: .63rem; }
}
@media (max-width: 520px) {
  .tools-sheet { max-height: min(88dvh, 680px); }
  .party-tool--dice, .party-tool--timer { grid-column: auto; }
  .dice-pair { min-height: 7rem; }
  .party-tool { padding: .85rem; }
}
@media (max-height: 700px) {
  .arcade-header { min-height: 66px; }
  .arcade-main { padding-top: .2rem; }
  .shelf-heading { padding-bottom: .7rem; }
  .game-card { min-height: 176px; }
  .game-card__body { padding-block: .68rem; }
  .game-card__body > p { margin-block: .12rem .35rem; }
  .game-tags { padding-bottom: .38rem; }
  .arcade-button--play { min-height: 2.2rem; }
  .game-shelf { gap: .58rem; }
  .arcade-dock { min-height: 3.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
