/* =========================================================
   Teruo Games — light minimal theme
   ========================================================= */

:root {
  --bg: #faf7f2;
  --bg-soft: #f1ede4;
  --surface: #ffffff;
  --ink: #2b2a28;
  --ink-soft: #6f6b64;
  --ink-faint: #a39e95;
  --line: #e7e1d6;
  --line-strong: #d9d2c4;

  --coral: #ff7a7a;
  --teal: #2fae93;
  --indigo: #5b6ee0;
  --amber: #f0a73c;
  --green: #3aa86b;
  --red: #e2574c;

  --radius: 16px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --shadow-s: 0 2px 8px rgba(43, 42, 40, 0.05);
  --shadow-m: 0 12px 30px rgba(43, 42, 40, 0.08);
  --shadow-l: 0 24px 60px rgba(43, 42, 40, 0.12);
  --maxw: 1120px;

  --sans: "Inter", "Zen Maru Gothic", -apple-system, BlinkMacSystemFont,
    "Hiragino Sans", "Noto Sans JP", sans-serif;
  --round: "Zen Maru Gothic", "Inter", -apple-system, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- views ---------- */
.view {
  display: none;
  min-height: 100vh;
  min-height: 100dvh;
}
.view.is-shown {
  display: block;
}
.arcade-view.is-shown {
  display: flex;
  flex-direction: column;
}

/* ---------- background orbs ---------- */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
  animation: orb-float 18s ease-in-out infinite;
}
.orb-a {
  width: 360px;
  height: 360px;
  top: -80px;
  left: -60px;
  background: radial-gradient(circle, #ffd0c2, transparent 70%);
}
.orb-b {
  width: 420px;
  height: 420px;
  top: 30%;
  right: -120px;
  background: radial-gradient(circle, #c6d4ff, transparent 70%);
}
.orb-c {
  width: 320px;
  height: 320px;
  bottom: -80px;
  left: 20%;
  background: radial-gradient(circle, #c5efe2, transparent 70%);
}
@keyframes orb-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-26px) scale(1.06);
  }
}

#homeView {
  position: relative;
  z-index: 1;
}

/* ---------- topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 22px;
  background: rgba(250, 247, 242, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--round);
  font-weight: 900;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--coral), var(--amber));
  color: #fff;
  font-weight: 900;
  font-size: 19px;
  box-shadow: var(--shadow-s);
}
.brand-mark.sm {
  width: 26px;
  height: 26px;
  font-size: 15px;
  border-radius: 8px;
}
.brand-name {
  font-size: 20px;
  letter-spacing: -0.02em;
}
.brand-name-2 {
  color: var(--coral);
}
.topbar-links {
  margin-left: auto;
  display: flex;
  gap: 22px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
}
.topbar-links a:hover {
  color: var(--ink);
}
.topbar-cta {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.15s, background 0.2s;
}
.topbar-cta:hover {
  transform: translateY(-1px);
  background: #000;
}
@media (max-width: 760px) {
  .topbar-links {
    display: none;
  }
}

/* ---------- hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 70px 22px 40px;
}
.hero-inner {
  max-width: 720px;
}
.hero-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-s);
}
.hero-title {
  font-family: var(--round);
  font-size: clamp(40px, 9vw, 76px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 22px 0 18px;
}
.hero-hl {
  background: linear-gradient(120deg, var(--coral), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  font-size: clamp(15px, 2.4vw, 18px);
  color: var(--ink-soft);
  max-width: 560px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero-stats {
  list-style: none;
  display: flex;
  gap: 36px;
  margin-top: 44px;
  flex-wrap: wrap;
}
.hero-stats li {
  display: flex;
  flex-direction: column;
}
.hero-stats strong {
  font-family: var(--round);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.hero-stats span {
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- pill buttons ---------- */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn-pill.primary {
  background: linear-gradient(135deg, var(--coral), var(--amber));
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 122, 122, 0.32);
}
.btn-pill.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(255, 122, 122, 0.4);
}
.btn-pill.ghost {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-pill.ghost:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-m);
}
.btn-pill.lg {
  padding: 17px 34px;
  font-size: 16.5px;
}

/* ---------- section headers ---------- */
.section-head {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
  text-align: center;
  margin-bottom: 38px;
}
.section-kicker {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--coral);
  margin-bottom: 10px;
}
.section-heading {
  font-family: var(--round);
  font-size: clamp(26px, 5vw, 40px);
  font-weight: 900;
  letter-spacing: -0.02em;
}
.section-note {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 15px;
}

/* ---------- play grid ---------- */
.play-section {
  padding: 60px 0;
}
.play-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 560px) {
  .play-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .play-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.play-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 26px 22px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-s);
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  transition: transform 0.18s, box-shadow 0.2s, border-color 0.2s;
}
.play-tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--tint);
}
.play-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-l);
  border-color: var(--line-strong);
}
.play-tile:active {
  transform: translateY(-1px) scale(0.99);
}
.tile-emoji {
  font-size: 34px;
  line-height: 1;
  margin-bottom: 6px;
}
.tile-name {
  font-family: var(--round);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.tile-en {
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.03em;
}
.tile-chip {
  position: absolute;
  top: 22px;
  right: 20px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 700;
}

/* ---------- why grid ---------- */
.why-section {
  padding: 50px 0;
}
.why-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 980px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.why-card {
  padding: 26px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-s);
  transition: transform 0.18s, box-shadow 0.2s;
}
.why-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-m);
}
.why-num {
  font-family: var(--round);
  font-size: 15px;
  font-weight: 900;
  color: var(--coral);
  letter-spacing: 0.05em;
}
.why-card h3 {
  font-family: var(--round);
  font-size: 19px;
  font-weight: 900;
  margin: 8px 0 8px;
}
.why-card p {
  font-size: 14.5px;
  color: var(--ink-soft);
}

/* ---------- catalog ---------- */
.catalog-section {
  padding: 50px 0;
}
.catalog-list {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.catalog-row {
  display: flex;
  gap: 20px;
  padding: 26px 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-s);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.catalog-row:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-m);
}
.catalog-icon {
  font-size: 34px;
  line-height: 1.2;
  flex-shrink: 0;
}
.catalog-body h3 {
  font-family: var(--round);
  font-size: 21px;
  font-weight: 900;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.catalog-body h3 span {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-faint);
  letter-spacing: 0.03em;
}
.catalog-body p {
  font-size: 14.5px;
  color: var(--ink-soft);
}
.catalog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.catalog-tags span {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
}
@media (max-width: 520px) {
  .catalog-row {
    flex-direction: column;
    gap: 12px;
    padding: 22px 20px;
  }
}

/* ---------- faq ---------- */
.faq-section {
  padding: 50px 0;
}
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-row {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-row[open] {
  border-color: var(--coral);
}
.faq-row summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-family: var(--round);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-row summary::-webkit-details-marker {
  display: none;
}
.faq-row summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--ink-faint);
  transition: transform 0.2s;
}
.faq-row[open] summary::after {
  content: "−";
  color: var(--coral);
}
.faq-row p {
  padding: 0 22px 20px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

/* ---------- closing ---------- */
.closing-section {
  padding: 50px 22px 70px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.closing-card {
  text-align: center;
  padding: 56px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fff4ef, #fdf0e0);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-m);
}
.closing-card h2 {
  font-family: var(--round);
  font-size: clamp(28px, 6vw, 44px);
  font-weight: 900;
  letter-spacing: -0.02em;
}
.closing-card p {
  margin: 14px auto 28px;
  max-width: 460px;
  color: var(--ink-soft);
  font-size: 16px;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 34px 22px 50px;
  color: var(--ink-soft);
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--round);
  font-weight: 900;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 10px;
}
.site-footer p {
  font-size: 13px;
}
.footer-sub {
  margin-top: 4px;
  color: var(--ink-faint);
}

/* =========================================================
   Arcade (in-game) shell
   ========================================================= */
.arcade-view {
  position: relative;
  z-index: 30;
  background: var(--bg);
}
.arcade-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.arcade-back,
.arcade-full {
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink);
  border-radius: var(--radius-pill);
  padding: 9px 16px;
  font-family: var(--round);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.arcade-full {
  padding: 9px 14px;
  font-size: 17px;
}
.arcade-back:hover,
.arcade-full:hover {
  background: var(--bg-soft);
}
.arcade-back:active,
.arcade-full:active {
  transform: scale(0.95);
}
#arcadeTitle {
  flex: 1;
  text-align: center;
  font-family: var(--round);
  font-size: 18px;
  font-weight: 900;
}
.arcade-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 60px;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- shared in-game widgets ---------- */
.hud {
  display: flex;
  gap: 12px;
  justify-content: center;
  width: 100%;
  max-width: 420px;
  margin-bottom: 16px;
}
.hud-cell {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-s);
}
.hud-label {
  display: block;
  font-size: 11px;
  color: var(--ink-soft);
  font-weight: 600;
}
.hud-value {
  display: block;
  font-family: var(--round);
  font-size: clamp(20px, 5vw, 26px);
  font-weight: 900;
  margin-top: 2px;
}
.hud-cell.is-you .hud-value {
  color: var(--teal);
}
.hud-cell.is-bot .hud-value {
  color: var(--coral);
}

.banner {
  text-align: center;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 14.5px;
  margin: 6px 0 16px;
  max-width: 460px;
}
.banner.is-info {
  background: #eef1ff;
  color: var(--indigo);
  border: 1px solid #d9deff;
}
.banner.is-win {
  background: #e7f7ee;
  color: var(--green);
  border: 1px solid #c8ecd6;
}
.banner.is-lose {
  background: #fdecea;
  color: var(--red);
  border: 1px solid #f6d2cd;
}
.banner.is-draw {
  background: #fff4e2;
  color: var(--amber);
  border: 1px solid #f7e2bd;
}

.btn-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px;
}
.btn-go {
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  border: none;
  background: linear-gradient(135deg, var(--indigo), #7c8bff);
  color: #fff;
  font-family: var(--round);
  font-weight: 800;
  font-size: 14.5px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(91, 110, 224, 0.32);
  transition: transform 0.15s, box-shadow 0.2s;
}
.btn-go:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(91, 110, 224, 0.42);
}
.btn-go:active {
  transform: scale(0.97);
}
.btn-go:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
  box-shadow: none;
}
.btn-soft {
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--round);
  font-weight: 800;
  font-size: 14.5px;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-soft:hover {
  background: var(--bg-soft);
}

/* ---------- janken ---------- */
.jk-arena {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 14px 0;
}
.jk-hand {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  font-size: 46px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-s);
}
.jk-hand.is-shaking {
  animation: shake 0.5s;
}
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-6px) rotate(-3deg);
  }
  75% {
    transform: translateX(6px) rotate(3deg);
  }
}
.jk-vs {
  font-family: var(--round);
  font-size: 26px;
  font-weight: 900;
  color: var(--amber);
}
.jk-picks {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
}
.jk-pick {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 38px;
  cursor: pointer;
  box-shadow: var(--shadow-s);
  transition: transform 0.12s, box-shadow 0.2s;
}
.jk-pick:hover {
  transform: scale(1.08) rotate(-6deg);
  box-shadow: var(--shadow-m);
}
.jk-pick:active {
  transform: scale(0.92);
}

/* ---------- tic tac toe ---------- */
.ttt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: min(300px, 88vw);
  aspect-ratio: 1;
}
.ttt-cell {
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: var(--round);
  font-size: clamp(40px, 14vw, 58px);
  font-weight: 900;
  cursor: pointer;
  box-shadow: var(--shadow-s);
  transition: background 0.15s, transform 0.1s;
}
.ttt-cell:hover {
  background: var(--bg-soft);
}
.ttt-cell:active {
  transform: scale(0.96);
}
.ttt-cell.is-o {
  color: var(--coral);
}
.ttt-cell.is-x {
  color: var(--indigo);
}
.ttt-cell.is-win {
  background: #fff4e2;
  border-color: var(--amber);
  animation: pop 0.5s ease;
}
@keyframes pop {
  50% {
    transform: scale(1.08);
  }
}

/* ---------- memory ---------- */
.mm-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: min(360px, 92vw);
}
.mm-card {
  aspect-ratio: 3/4;
  perspective: 800px;
  cursor: pointer;
}
.mm-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.4s;
  transform-style: preserve-3d;
}
.mm-card.is-flipped .mm-inner,
.mm-card.is-matched .mm-inner {
  transform: rotateY(180deg);
}
.mm-card.is-matched {
  animation: pop 0.5s ease;
}
.mm-face {
  position: absolute;
  inset: 0;
  border-radius: 13px;
  display: grid;
  place-items: center;
  backface-visibility: hidden;
  border: 1px solid var(--line);
}
.mm-front {
  background: linear-gradient(135deg, #fff, var(--bg-soft));
  box-shadow: var(--shadow-s);
}
.mm-front::before {
  content: "T";
  font-family: var(--round);
  font-size: clamp(24px, 7vw, 40px);
  font-weight: 900;
  color: var(--line-strong);
}
.mm-back {
  background: var(--surface);
  transform: rotateY(180deg);
  font-size: clamp(28px, 9vw, 44px);
  box-shadow: var(--shadow-s);
}
.mm-card.is-matched .mm-back {
  background: #e7f7ee;
  border-color: #c8ecd6;
}

/* ---------- othello ---------- */
.ov-board {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
  width: min(380px, 92vw);
  aspect-ratio: 1;
  padding: 6px;
  border-radius: 14px;
  background: #2f9e6e;
  box-shadow: var(--shadow-m);
}
.ov-cell {
  display: grid;
  place-items: center;
  background: #38b27e;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
}
.ov-cell.is-legal::after {
  content: "";
  width: 26%;
  height: 26%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  animation: pulse-dot 1.2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
  }
}
.ov-disc {
  width: 80%;
  height: 80%;
  border-radius: 50%;
  animation: drop 0.2s ease;
}
@keyframes drop {
  from {
    transform: scale(0);
  }
}
.ov-disc.is-black {
  background: radial-gradient(circle at 32% 30%, #555, #111);
}
.ov-disc.is-white {
  background: radial-gradient(circle at 32% 30%, #fff, #cfcfcf);
}

/* ---------- hit & blow ---------- */
.hb-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 16px;
}
.hb-inputs input {
  width: 58px;
  height: 68px;
  text-align: center;
  font-family: var(--round);
  font-size: 30px;
  font-weight: 900;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  outline: none;
  box-shadow: var(--shadow-s);
}
.hb-inputs input:focus {
  border-color: var(--indigo);
  background: #f4f6ff;
}
.hb-rules {
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 14px;
}
.hb-rules .is-hit {
  color: var(--green);
}
.hb-rules .is-blow {
  color: var(--amber);
}
.hb-log {
  width: 100%;
  max-width: 360px;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hb-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-s);
}
.hb-guess {
  letter-spacing: 5px;
  font-family: var(--round);
  font-weight: 900;
  font-size: 17px;
}
.hb-hit {
  color: var(--green);
  font-weight: 700;
  font-size: 13px;
}
.hb-blow {
  color: var(--amber);
  font-weight: 700;
  font-size: 13px;
}

/* ---------- snake ---------- */
.sn-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}
#snCanvas {
  width: min(420px, 92vw);
  height: auto;
  aspect-ratio: 1;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-m);
  touch-action: none;
  background: #f1ede5;
}
.sn-pad {
  display: grid;
  grid-template-areas:
    ". up ."
    "left down right";
  gap: 10px;
  margin-top: 18px;
}
.sn-pad button {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--shadow-s);
  transition: background 0.12s, transform 0.1s;
}
.sn-pad button:hover {
  background: var(--bg-soft);
}
.sn-pad button:active {
  transform: scale(0.9);
}
.sn-up {
  grid-area: up;
}
.sn-down {
  grid-area: down;
}
.sn-left {
  grid-area: left;
}
.sn-right {
  grid-area: right;
}

/* ---------- snackbar ---------- */
.snackbar {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow-l);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 100;
  max-width: 90vw;
  text-align: center;
}
.snackbar.is-up {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- promo overlay ---------- */
.promo-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(43, 42, 40, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.promo-overlay.is-up {
  display: flex;
}
.promo-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 34px 28px 28px;
  text-align: center;
  box-shadow: var(--shadow-l);
  border: 1px solid var(--line);
  animation: promo-in 0.3s ease;
}
@keyframes promo-in {
  from {
    transform: translateY(16px) scale(0.96);
    opacity: 0;
  }
}
.promo-x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--bg-soft);
  color: var(--ink-soft);
  font-size: 15px;
  cursor: pointer;
}
.promo-emoji {
  font-size: 44px;
}
.promo-title {
  font-family: var(--round);
  font-size: 26px;
  font-weight: 900;
  margin: 8px 0 12px;
}
.promo-title span {
  color: var(--coral);
}
.promo-sub {
  color: var(--ink-soft);
  font-size: 14.5px;
  margin-bottom: 16px;
}
.promo-sub strong {
  color: var(--amber);
}
.promo-list {
  list-style: none;
  text-align: left;
  max-width: 240px;
  margin: 0 auto 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.promo-list li {
  font-size: 14px;
  color: var(--ink);
  padding-left: 24px;
  position: relative;
}
.promo-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 900;
}
.promo-cta {
  width: 100%;
  padding: 15px;
  border-radius: var(--radius-pill);
  border: none;
  background: linear-gradient(135deg, var(--coral), var(--amber));
  color: #fff;
  font-family: var(--round);
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(255, 122, 122, 0.32);
}
.promo-fine {
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--ink-faint);
}

/* ---------- fullscreen tweaks ---------- */
:fullscreen .arcade-view {
  min-height: 100vh;
}
:-webkit-full-screen .arcade-view {
  min-height: 100vh;
}

/* ============================================================
   Prank game — OS lock-screen mimicry.
   These intentionally imitate real iOS / Windows / macOS
   screens for the joke to work, so they keep their own dark,
   system-styled look independent of the site theme.
   ============================================================ */
.prank-stealth-escape {
  position: fixed;
  top: 0;
  left: 0;
  width: 64px;
  height: 64px;
  z-index: 9999;
  background: transparent;
}

.prank-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 70vh;
  padding: 24px 18px;
  box-sizing: border-box;
}

.prank-lock-screen {
  background: linear-gradient(165deg, #1a1f3a 0%, #0a0d1f 100%);
  color: #fff;
  border-radius: 18px;
  position: relative;
  min-height: 80vh;
  justify-content: flex-start;
}
.prank-status-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 18px;
}
.prank-time {
  font-size: clamp(48px, 14vw, 72px);
  font-weight: 200;
  letter-spacing: -0.02em;
  margin-top: 18px;
}
.prank-date {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 22px;
}
.prank-lock-icon-small {
  font-size: 22px;
  margin-bottom: 14px;
}
.prank-prompt {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
}
.prank-prompt.wrong {
  color: #ff6b6b;
}
.prank-dots {
  display: flex;
  gap: 16px;
  margin-bottom: 6px;
}
.prank-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
}
.prank-dot.filled {
  background: #fff;
}
.prank-dots.wrong .prank-dot {
  border-color: #ff6b6b;
}
.prank-dots.wrong .prank-dot.filled {
  background: #ff6b6b;
}
.prank-dots.shake {
  animation: prank-shake 0.5s;
}
@keyframes prank-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-8px);
  }
  40%,
  80% {
    transform: translateX(8px);
  }
}
.prank-attempts {
  height: 20px;
  font-size: 12px;
  color: #ff6b6b;
  margin-bottom: 18px;
  font-weight: 700;
}
.prank-keypad {
  display: grid;
  grid-template-columns: repeat(3, 74px);
  gap: 14px;
  justify-content: center;
}
.prank-key {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.1s, transform 0.1s;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  padding: 0;
  touch-action: manipulation;
  user-select: none;
}
.prank-key span {
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
}
.prank-key small {
  font-size: 9px;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-top: 2px;
  opacity: 0.85;
}
.prank-key:hover {
  background: rgba(255, 255, 255, 0.28);
}
.prank-key:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.45);
}
.prank-empty {
  visibility: hidden;
}
.prank-del {
  background: transparent !important;
  font-size: 22px;
}
.prank-del:hover {
  background: rgba(255, 255, 255, 0.12) !important;
}
.prank-hint {
  margin-top: 22px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  line-height: 1.5;
}
@media (max-width: 380px) {
  .prank-keypad {
    grid-template-columns: repeat(3, 62px);
    gap: 10px;
  }
  .prank-key {
    width: 62px;
    height: 62px;
  }
  .prank-key span {
    font-size: 26px;
  }
}

.prank-locked {
  text-align: center;
  background: linear-gradient(165deg, #1a1f3a 0%, #0a0d1f 100%);
  color: #fff;
  border-radius: 18px;
  min-height: 80vh;
  justify-content: flex-start;
  padding-top: 30px;
}
.prank-lock-big {
  font-size: 64px;
  margin-bottom: 18px;
  animation: prank-pulse 1.5s ease-in-out infinite;
}
@keyframes prank-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
}
.prank-locked h2 {
  font-size: clamp(22px, 5vw, 26px);
  margin-bottom: 14px;
  color: #ff6b6b;
  font-weight: 900;
}
.prank-locked-sub {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
}
.prank-phone-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 320px;
  margin: 8px 0;
}
.prank-label {
  font-size: 12px;
  text-align: left;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
  letter-spacing: 1px;
}
.prank-phone-form input {
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 18px;
  text-align: center;
  letter-spacing: 2px;
  outline: none;
  font-family: inherit;
  font-weight: 700;
}
.prank-phone-form input:focus {
  border-color: #5b9fff;
}
.prank-phone-form input[readonly] {
  cursor: default;
  caret-color: transparent;
}
.prank-phone-form input.prank-input-complete {
  border-color: #5ecb8a;
  background: rgba(94, 203, 138, 0.12);
}
.prank-phone-keypad {
  display: grid;
  grid-template-columns: repeat(3, 70px);
  gap: 12px;
  justify-content: center;
  margin: 14px 0 18px;
}
.prank-phone-keypad .prank-key {
  width: 70px;
  height: 70px;
}
.prank-phone-keypad .prank-key span {
  font-size: 28px;
}
@media (max-width: 380px) {
  .prank-phone-keypad {
    grid-template-columns: repeat(3, 60px);
    gap: 10px;
  }
  .prank-phone-keypad .prank-key {
    width: 60px;
    height: 60px;
  }
  .prank-phone-keypad .prank-key span {
    font-size: 24px;
  }
}
.prank-warning {
  font-size: 12px;
  color: rgba(255, 220, 120, 0.85);
  margin-top: 12px;
  text-align: center;
}
.prank-disclaimer {
  margin-top: 18px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  font-style: italic;
}

.prank-loading {
  text-align: center;
  background: linear-gradient(165deg, #1a1f3a 0%, #0a0d1f 100%);
  color: #fff;
  border-radius: 18px;
  justify-content: center;
  min-height: 60vh;
}
.prank-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.15);
  border-top-color: #5b9fff;
  border-radius: 50%;
  margin: 0 auto 28px;
  animation: prank-spin 1s linear infinite;
}
@keyframes prank-spin {
  to {
    transform: rotate(360deg);
  }
}
.prank-loading p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
}
.prank-progress {
  width: 80%;
  max-width: 280px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 auto;
  overflow: hidden;
}
.prank-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #5b9fff, #ff7a7a);
  border-radius: 999px;
  transition: width 0.6s ease;
}

.prank-reveal {
  position: relative;
  background: linear-gradient(165deg, #1a1f3a 0%, #0a0d1f 100%);
  border-radius: 18px;
  min-height: 80vh;
  justify-content: center;
}
.prank-reveal-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 28px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  max-width: 440px;
  width: 100%;
  color: #fff;
}
.prank-reveal-emoji {
  font-size: clamp(48px, 12vw, 64px);
  margin-bottom: 14px;
  animation: prank-bounce 1.5s ease-in-out infinite;
}
@keyframes prank-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}
.prank-reveal h1 {
  font-size: clamp(24px, 6vw, 34px);
  font-weight: 900;
  color: #ff6b6b;
  margin-bottom: 14px;
}
.prank-reveal h2 {
  font-size: clamp(16px, 4vw, 20px);
  line-height: 1.5;
  color: #fff;
  margin-bottom: 18px;
  font-weight: 800;
}
.prank-reveal p {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 10px;
}
.prank-safe {
  padding: 12px 14px;
  background: rgba(94, 203, 138, 0.12);
  border: 1px solid rgba(94, 203, 138, 0.3);
  border-radius: 10px;
  margin: 14px 0 !important;
}
.prank-safe strong {
  color: #5ecb8a;
  font-weight: 900;
}
.prank-tip {
  color: #ffd06a !important;
  font-weight: 800 !important;
  margin: 16px 0 18px !important;
}

/* desktop prank — shared layout reset (real OS mimicry) */
body.prank-active .prank-win-lock,
body.prank-active .prank-win-login,
body.prank-active .prank-win-locked,
body.prank-active .prank-mac-login,
body.prank-active .prank-mac-locked {
  background: #000 !important;
  padding: 0 !important;
  justify-content: center !important;
  align-items: center !important;
}
.prank-win-lock,
.prank-win-login,
.prank-win-locked,
.prank-mac-login,
.prank-mac-locked {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* Windows 11 */
.prank-win-lock,
.prank-win-login,
.prank-win-locked {
  font-family: "Segoe UI Variable", "Segoe UI", -apple-system,
    BlinkMacSystemFont, sans-serif;
  font-weight: 300;
}
.prank-win-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 25% 40%, #2a6dbd 0%, transparent 65%),
    radial-gradient(ellipse 60% 60% at 75% 70%, #1a4e8f 0%, transparent 70%),
    linear-gradient(135deg, #0a1929 0%, #163b6a 50%, #06101d 100%);
  z-index: 0;
}
.prank-win-bg.blur {
  filter: blur(36px) brightness(0.55);
  transform: scale(1.1);
}
.prank-win-lock-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  margin-bottom: 8vh;
}
.prank-win-time {
  font-size: clamp(80px, 13vw, 168px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 6px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}
.prank-win-date {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}
.prank-win-hint {
  position: absolute;
  bottom: 7vh;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 1;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  animation: prankWinHintPulse 2.2s ease-in-out infinite;
}
@keyframes prankWinHintPulse {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}
.prank-win-login-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.prank-win-avatar {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5b9fff, #2c5fa3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}
.prank-win-avatar svg {
  width: 70%;
  height: 70%;
}
.prank-win-username {
  font-size: 26px;
  font-weight: 400;
}
.prank-win-hello {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}
.prank-win-hello-ring {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.prank-win-hello-ring::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: #4dabff;
  border-right-color: #4dabff;
  animation: prankWinHelloSpin 0.9s linear infinite;
}
@keyframes prankWinHelloSpin {
  to {
    transform: rotate(360deg);
  }
}
.prank-win-hello-icon {
  font-size: 22px;
  line-height: 1;
}
.prank-win-hello-msg {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
}
.prank-win-hello.failed .prank-win-hello-ring::before {
  animation: none;
  border-color: #ff5b5b;
}
.prank-win-hello.failed .prank-win-hello-msg {
  color: #ffb4b4;
}
.prank-win-pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.prank-win-pin-input {
  width: 220px;
  height: 36px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  color: #fff;
  text-align: center;
  font-size: 28px;
  letter-spacing: 12px;
  line-height: 36px;
  padding: 0 6px 0 18px;
  outline: none;
  caret-color: transparent;
  font-family: inherit;
}
.prank-win-pin-input:focus {
  border-color: #4dabff;
  background: rgba(0, 0, 0, 0.5);
}
.prank-win-pin-input.shake {
  animation: prank-shake 0.4s;
}
.prank-win-pin-input.wrong {
  border-color: #ff5b5b;
}
.prank-win-pin-msg {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
}
.prank-win-pin-msg.wrong {
  color: #ff8b8b;
}
.prank-win-keypad {
  display: grid;
  grid-template-columns: repeat(3, 66px);
  gap: 8px;
}
.prank-win-key {
  width: 66px;
  height: 46px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 18px;
  font-weight: 300;
  cursor: pointer;
  border-radius: 4px;
  touch-action: manipulation;
  user-select: none;
  font-family: inherit;
}
.prank-win-key:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.16);
}
.prank-win-key:active:not(:disabled) {
  background: rgba(255, 255, 255, 0.26);
}
.prank-win-key-empty {
  visibility: hidden;
}
.prank-win-signin-options {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}
.prank-win-locked {
  background:
    radial-gradient(ellipse at 50% 30%, #2c5fa3 0%, transparent 55%),
    linear-gradient(180deg, #0a1929 0%, #163b6a 60%, #06101d 100%);
  padding: 40px !important;
}
.prank-win-locked-inner {
  text-align: center;
  max-width: 520px;
  background: rgba(0, 0, 0, 0.3);
  padding: 36px 32px;
  border-radius: 8px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.prank-win-locked-icon {
  font-size: 56px;
  color: #ffcc33;
  margin-bottom: 12px;
  line-height: 1;
}
.prank-win-locked h1 {
  font-size: 24px;
  font-weight: 400;
  margin: 0 0 14px;
}
.prank-win-locked p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 6px;
}
.prank-win-phone-form {
  display: flex;
  gap: 8px;
  margin: 20px 0 12px;
}
.prank-win-phone-form input {
  flex: 1;
  height: 40px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  padding: 0 12px;
  font-size: 16px;
  border-radius: 4px;
  outline: none;
  font-family: inherit;
}
.prank-win-phone-form input:focus {
  border-color: #4dabff;
}
.prank-win-phone-form input.shake {
  animation: prank-shake 0.4s;
}
.prank-win-phone-form input.wrong {
  border-color: #ff5b5b;
  background: rgba(80, 0, 0, 0.4);
}
.prank-win-submit {
  height: 40px;
  padding: 0 20px;
  background: #4dabff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
}
.prank-win-submit:hover {
  background: #5fbcff;
}
.prank-win-warning {
  font-size: 12px !important;
  color: #ffcc66 !important;
  margin-top: 8px !important;
}

/* macOS */
.prank-mac-login,
.prank-mac-locked {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "Helvetica Neue", sans-serif;
}
.prank-mac-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 35%, #2a2a3a 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 80%, #3a2d52 0%, transparent 60%),
    linear-gradient(180deg, #15151f 0%, #08080f 100%);
  z-index: 0;
}
.prank-mac-menubar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: rgba(20, 20, 20, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 13px;
  z-index: 2;
}
.prank-mac-apple {
  width: 14px;
  height: 16px;
  display: inline-block;
  background: #fff;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M17.05 20.28c-.98.95-2.05.8-3.08.35-1.09-.46-2.09-.48-3.24 0-1.44.62-2.2.44-3.06-.35C2.79 15.25 3.51 7.59 9.05 7.31c1.35.07 2.29.74 3.08.8 1.18-.24 2.31-.93 3.57-.84 1.51.12 2.65.72 3.4 1.8-3.12 1.87-2.38 5.98.48 7.13-.57 1.5-1.31 2.99-2.53 4.08zM12 7.25c-.15-2.23 1.66-4.07 3.74-4.25.29 2.58-2.34 4.5-3.74 4.25z'/></svg>") no-repeat center / contain;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M17.05 20.28c-.98.95-2.05.8-3.08.35-1.09-.46-2.09-.48-3.24 0-1.44.62-2.2.44-3.06-.35C2.79 15.25 3.51 7.59 9.05 7.31c1.35.07 2.29.74 3.08.8 1.18-.24 2.31-.93 3.57-.84 1.51.12 2.65.72 3.4 1.8-3.12 1.87-2.38 5.98.48 7.13-.57 1.5-1.31 2.99-2.53 4.08zM12 7.25c-.15-2.23 1.66-4.07 3.74-4.25.29 2.58-2.34 4.5-3.74 4.25z'/></svg>") no-repeat center / contain;
}
.prank-mac-spacer {
  flex: 1;
}
.prank-mac-clock {
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 400;
}
.prank-mac-login-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 20px;
}
.prank-mac-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6);
}
.prank-mac-avatar svg {
  width: 100%;
  height: 100%;
  display: block;
}
.prank-mac-username {
  font-size: 22px;
  font-weight: 400;
  margin-top: 4px;
}
.prank-mac-pw-form {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 8px;
}
.prank-mac-pw-form.shake {
  animation: prank-shake 0.55s;
}
.prank-mac-pw-form input {
  width: 240px;
  height: 30px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  color: #fff;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
}
.prank-mac-pw-form input:focus {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
}
.prank-mac-pw-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.prank-mac-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: none;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 2px;
  font-family: inherit;
}
.prank-mac-arrow:hover {
  background: rgba(255, 255, 255, 0.38);
}
.prank-mac-pw-msg {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 6px;
}
.prank-mac-pw-msg.wrong {
  color: #ff8b8b;
}
.prank-mac-touchid {
  position: relative;
  width: 60px;
  height: 60px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.prank-mac-tid-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  animation: prankTidPulse 1.4s ease-in-out infinite;
}
@keyframes prankTidPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.18);
    opacity: 0.95;
  }
}
.prank-mac-tid-icon {
  color: rgba(255, 255, 255, 0.92);
  width: 30px;
  height: 30px;
  z-index: 1;
}
.prank-mac-tid-icon svg {
  width: 100%;
  height: 100%;
}
.prank-mac-touchid.failed .prank-mac-tid-ring {
  animation: none;
  border-color: #ff5b5b;
  transform: scale(1);
  opacity: 1;
}
.prank-mac-touchid.failed .prank-mac-tid-icon {
  color: #ff8b8b;
}
.prank-mac-locked {
  padding: 40px !important;
}
.prank-mac-locked-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 460px;
}
.prank-mac-lock-icon {
  font-size: 56px;
  margin-bottom: 18px;
  line-height: 1;
}
.prank-mac-locked h1 {
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 12px;
}
.prank-mac-locked p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 18px;
}
.prank-mac-phone-form {
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
  margin-bottom: 14px;
}
.prank-mac-phone-form input {
  width: 240px;
  height: 30px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  color: #fff;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
  font-family: inherit;
}
.prank-mac-phone-form input:focus {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
}
.prank-mac-phone-form input.wrong {
  border-color: #ff5b5b;
  background: rgba(80, 0, 0, 0.4);
}
.prank-mac-disclaimer {
  font-size: 11px !important;
  color: rgba(255, 255, 255, 0.55) !important;
  margin-top: 6px !important;
}
.prank-desktop-loading,
.prank-desktop-final {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 20px;
}
.prank-desktop-loading .prank-spinner {
  width: 44px;
  height: 44px;
}
.prank-desktop-loading p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.92);
}
.prank-desktop-final-icon {
  font-size: 64px;
  line-height: 1;
  margin-bottom: 4px;
}
.prank-desktop-final h1 {
  font-size: 24px;
  font-weight: 400;
  margin: 0 0 14px;
}
.prank-desktop-final p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 6px;
}
.prank-desktop-final-sub {
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.65) !important;
}
@media (max-width: 520px) {
  .prank-win-keypad {
    grid-template-columns: repeat(3, 56px);
    gap: 6px;
  }
  .prank-win-key {
    width: 56px;
    height: 42px;
    font-size: 16px;
  }
  .prank-win-pin-input {
    width: 180px;
    font-size: 24px;
    letter-spacing: 10px;
  }
  .prank-win-locked-inner,
  .prank-mac-locked-inner {
    padding: 24px 18px;
  }
  .prank-mac-pw-form input,
  .prank-mac-phone-form input,
  .prank-win-phone-form input {
    width: auto;
    flex: 1;
  }
}

/* hide site chrome while a desktop prank is active */
body.prank-active .topbar,
body.prank-active .arcade-bar,
body.prank-active .bg-orbs {
  display: none !important;
}
body.prank-active .arcade-stage {
  padding: 0;
  max-width: none;
}
