/* tier palette */
.t-I { --glow: #8b8b99; --tint: #2a2a33; }
.t-U { --glow: #ff5a4e; --tint: #3a1a1a; }
.t-R { --glow: #60a5fa; --tint: #15294a; }
.t-E { --glow: #c084fc; --tint: #2e1450; }
.t-L { --glow: #fbbf24; --tint: #4a3006; }

body.locked { overflow: hidden; }
.muted { color: var(--muted); }
.lang { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font: 700 14px/1 var(--body); cursor: pointer; }

.game { padding: 24px 0 40px; }
.game-title { font-size: clamp(1.8rem, 5vw, 2.6rem); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 18px; }
.game-title small { font: 600 15px/1.2 var(--body); color: var(--muted); letter-spacing: 0; }

.bar { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.res { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.res-ico { font-size: 26px; }
.res b { display: block; font: 700 22px/1.1 var(--display); }
.res small { color: var(--muted); font-size: 13px; }
.res-label { position: absolute; top: 10px; right: 14px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

.tabs { display: flex; gap: 6px; padding: 5px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 18px; overflow-x: auto; }
.tabs button { flex: 1; white-space: nowrap; background: none; border: 0; color: var(--muted); font: 700 15px/1 var(--body); padding: 11px 14px; border-radius: 999px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--text); color: var(--bg); }
.tabs .count { font-weight: 600; opacity: .7; }

/* banner */
.banner { position: relative; display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 22px; padding: 22px; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(130% 160% at 0% 0%, #4a3310 0%, #1d1712 55%, #15131b 100%); border: 1px solid rgb(251 191 36 / .3); }
.banner::before { content: ""; position: absolute; left: 97px; top: 50%; width: 520px; aspect-ratio: 1; translate: -50% -50%; pointer-events: none; opacity: .35;
  background: repeating-conic-gradient(from 0deg, rgb(251 191 36 / .5) 0deg 6deg, transparent 6deg 20deg); animation: spin 24s linear infinite; mask: radial-gradient(circle, #000 0%, transparent 60%); }
.banner > * { position: relative; }
.banner-art { aspect-ratio: 5/7; border-radius: 14px; display: grid; place-items: center; font-size: 60px;
  background: linear-gradient(160deg, #e0a417, #6b3f05); border: 2px solid #fbbf24; box-shadow: 0 0 40px rgb(251 191 36 / .5); animation: bob 3.5s ease-in-out infinite; }
.banner .eyebrow { margin-bottom: 10px; }
.banner h2 { font-size: clamp(1.4rem, 3.6vw, 2.1rem); }
.banner p:last-child { color: var(--muted); margin: 10px 0 0; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(2deg); } }
@keyframes spin { to { rotate: 360deg; } }

.prof-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 16px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.prof-row b { font-size: 17px; }
.ghost-btn.small { padding: 7px 14px; font-size: 14px; margin-left: auto; }

.pity { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 14px 4px; color: var(--muted); font-size: 15px; }
.pity b { color: var(--text); font-family: var(--display); }

.pulls { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn.pull { align-self: stretch; flex-direction: column; gap: 6px; padding: 18px; font-size: 18px; border-radius: 16px; background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.btn.pull.big { background: var(--yellow); color: var(--ink); border-color: transparent; position: relative; overflow: hidden; }
.btn.pull.big::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgb(255 255 255 / .55) 50%, transparent 65%); translate: -100% 0; animation: sweep 3.2s ease-in-out infinite; }
@keyframes sweep { 55%, 100% { translate: 100% 0; } }
.btn.pull small, .btn small { font-weight: 600; opacity: .75; font-size: 14px; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn:disabled::after { display: none; }
.btn:not(:disabled):active { transform: scale(.98); }

.extras { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.ghost-btn { background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 11px 18px; font: 600 15px/1.2 var(--body); cursor: pointer; }
.ghost-btn:hover:not(:disabled) { background: var(--surface-2); }
.ghost-btn:disabled { opacity: .4; cursor: not-allowed; }
.ghost-btn.danger { color: var(--red); border-color: rgb(255 90 78 / .35); }

.rates { margin-top: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.rates summary { cursor: pointer; font-weight: 700; }
.rates table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.rates td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.rates td small { color: var(--muted); margin-left: 6px; }
.rates td:last-child { text-align: right; color: var(--muted); }
.rates td i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--glow); margin-right: 10px; }
.rates p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- job card ---------- */
.jc { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  position: relative; display: flex; flex-direction: column; width: min(360px, 88vw); padding: 20px; border-radius: 22px; text-align: left; color: var(--text); overflow: hidden;
  background: linear-gradient(170deg, var(--tint), #16161d 70%); border: 2px solid var(--glow);
  box-shadow: 0 0 34px color-mix(in srgb, var(--glow) 40%, transparent), 0 20px 50px rgb(0 0 0 / .45);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .25s ease; }
.jc.tilting { transition: transform .05s linear; }
.jc.t-I { filter: saturate(.4); }
.jc-head { display: flex; gap: 12px; align-items: center; padding-right: 54px; }
.logo { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 30px; background: rgb(255 255 255 / .08); border: 1px solid var(--line); }
.co { font: 700 16px/1.2 var(--display); letter-spacing: -.01em; }
.tag { font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.3; }
.jc-pos { margin-top: 16px; font-weight: 700; font-size: 18px; line-height: 1.25; }
.jc-applied { margin-top: 16px; font-size: 13px; color: var(--muted); }
.jc-applied s { text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.jc-hired { margin-top: 6px; }
.jc-hired span { display: block; font: 700 11px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--glow); margin-bottom: 5px; }
.jc-sal { margin-top: 6px; font-size: 14px; color: var(--yellow); }
.jc-sal span { color: var(--muted); margin-right: 6px; }
.jc-sal span::after { content: ":"; }
.jc-req { margin: 10px 0 0; padding: 0 0 0 18px; font-size: 13px; color: #c9c9d4; line-height: 1.45; }
.jc-out { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: rgb(0 0 0 / .28); border-left: 3px solid var(--glow); font-size: 15px; line-height: 1.45; }
.jc-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; font: 700 11px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; }
.jc-foot span:first-child { color: var(--glow); }
.jc-foot span:last-child { color: var(--yellow); font-family: var(--display); }

.stamp { align-self: flex-end; margin: 12px 6px -2px 0; padding: 6px 10px; border: 3px solid var(--glow); border-radius: 8px; color: var(--glow);
  font: 700 18px/1 var(--display); letter-spacing: .03em; rotate: -14deg; opacity: .95; pointer-events: none;
  background: color-mix(in srgb, var(--glow) 12%, rgb(14 14 18 / .6)); }
.t-L .stamp { font-size: 24px; text-shadow: 0 0 18px var(--glow); }
.flipped .stamp { animation: slam .45s cubic-bezier(.2,.9,.3,1.3) .45s backwards; }
@keyframes slam { 0% { scale: 3.2; opacity: 0; } 70% { scale: .92; opacity: 1; } 100% { scale: 1; } }

.badge { position: absolute; top: 14px; right: 14px; padding: 5px 9px; border-radius: 999px; font: 800 11px/1 var(--body); letter-spacing: .08em; z-index: 2; }
.badge.new { background: var(--red); color: #fff; }
.badge.xp { background: rgb(0 0 0 / .5); color: #fff; }

/* holographic sheen for rare+ */
.holo { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at var(--mx) var(--my), rgb(255 255 255 / .28), transparent 45%); mix-blend-mode: overlay; }
.t-R .holo, .t-E .holo, .t-L .holo { opacity: .7; }
.jc.tilting .holo { opacity: 1; }
.t-L .holo { background:
  radial-gradient(circle at var(--mx) var(--my), rgb(255 255 255 / .35), transparent 40%),
  linear-gradient(115deg, transparent 20%, rgb(255 90 122 / .25) 35%, rgb(251 191 36 / .3) 45%, rgb(74 222 128 / .25) 55%, rgb(96 165 250 / .25) 65%, transparent 80%);
  background-size: 100% 100%, 250% 250%; background-position: center, var(--mx) var(--my); mix-blend-mode: color-dodge; }
.t-E .holo { background: radial-gradient(circle at var(--mx) var(--my), rgb(232 200 255 / .35), transparent 50%); }
.t-L.jc::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgb(255 255 255 / .3) 50%, transparent 70%); translate: -100% 0; animation: sweep 2.8s ease-in-out 1s infinite; pointer-events: none; }

/* mini card (10-pull) */
.mini { position: relative; aspect-ratio: 5/7; border-radius: 14px; padding: 10px 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; overflow: hidden;
  background: linear-gradient(170deg, var(--tint), #16161d 75%); border: 2px solid var(--glow); box-shadow: 0 0 18px color-mix(in srgb, var(--glow) 40%, transparent); color: var(--text); }
.mini.t-I { filter: saturate(.4); opacity: .85; }
.mini .logo { width: 44px; height: 44px; font-size: 26px; }
.mini-co { font: 700 11px/1.2 var(--display); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mini-stamp { font: 800 10px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--glow); border: 2px solid var(--glow); border-radius: 6px; padding: 4px 6px; rotate: -8deg; }
.flipped .mini-stamp { animation: slam .4s cubic-bezier(.2,.9,.3,1.3) .35s backwards; }
.mini .badge { top: 6px; right: 6px; font-size: 8px; padding: 3px 6px; }
.mini.t-L::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgb(255 255 255 / .35) 50%, transparent 70%); translate: -100% 0; animation: sweep 2.4s ease-in-out infinite; }

/* collection */
.coll-hint { margin: 0 0 12px; }
.progress { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-bottom: 16px; }
.progress div { height: 100%; width: 0; background: linear-gradient(90deg, var(--red), var(--yellow)); transition: width .4s ease; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.co-tile { min-width: 0; display: grid; gap: 10px; align-content: start; text-align: left; padding: 14px; border-radius: 14px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); transition: transform .15s ease, border-color .15s ease; }
.co-tile:hover { transform: translateY(-2px); border-color: rgb(255 255 255 / .2); }
.co-name { font: 700 13px/1.25 var(--display); overflow-wrap: anywhere; }
.co-tile.locked .logo { filter: grayscale(1) brightness(.6); }
.co-tile.locked .co-name { color: var(--muted); }
.co-tile.gold { border-color: rgb(251 191 36 / .6); box-shadow: 0 0 22px rgb(251 191 36 / .25); }
.co-stamps { display: flex; gap: 4px; flex-wrap: wrap; }
.cs { font: 700 10px/1 var(--body); padding: 4px 6px; border-radius: 6px; border: 1px dashed rgb(255 255 255 / .15); color: #5d5d6b; }
.cs.on { border: 1px solid var(--glow); color: var(--glow); background: color-mix(in srgb, var(--glow) 12%, transparent); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 0 0 20px; }
.stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.stats dt { color: var(--muted); font-size: 14px; }
.stats dd { margin: 6px 0 0; font: 700 20px/1.2 var(--display); }

.game .ad-box { margin: 32px 0 0; }
.about-game { padding: 40px 0 0; }
.disclaimer { margin-top: 32px; padding: 16px 18px; border-radius: 14px; border: 1px dashed rgb(255 255 255 / .18); color: var(--muted); font-size: 14px; line-height: 1.55; }
.disclaimer b { color: var(--text); }
.disclaimer a { color: var(--yellow); }
.picker .fine { font-size: 12px; margin: 16px 0 0; }

/* ---------- overlays & effects ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgb(8 8 12 / .93); backdrop-filter: blur(6px); display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 24px 16px; overflow-y: auto; }
.reveal-stage, #modal .modal-box { margin-top: auto; }
.reveal-actions, #modal .modal-box { margin-bottom: auto; }
.overlay[hidden] { display: none; }
#modal { z-index: 60; }
.reveal-stage { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; position: relative; z-index: 2; }
.reveal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; position: relative; z-index: 2; }
.hint { color: var(--muted); margin: 0; font-size: 14px; }

.envelope { display: grid; place-items: center; gap: 10px; cursor: pointer; color: var(--muted); }
.env-ico { font-size: 96px; filter: drop-shadow(0 0 30px var(--glow)); animation: send 1.1s ease-in forwards; }
.envelope.t-L .env-ico { animation: send 1.1s ease-in forwards, rattle .12s linear .6s 9; }
.envelope.t-L p { color: var(--glow); }
@keyframes send { 0% { transform: scale(.6); opacity: 0; } 30% { transform: scale(1.1); opacity: 1; } 70% { transform: scale(1) rotate(-6deg); } 100% { transform: translateY(-40px) scale(.9) rotate(8deg); filter: drop-shadow(0 0 80px var(--glow)); } }
@keyframes rattle { 50% { translate: 4px -2px; } }

.reveal-grid { display: flex; flex-wrap: wrap; gap: 14px; width: 100%; max-width: 900px; justify-content: center; }
.reveal-grid .flip { width: 160px; }
.reveal-single { display: grid; place-items: center; }
.flip { position: relative; padding: 0; border: 0; background: none; perspective: 1100px; cursor: pointer; animation: dealIn .4s ease backwards; border-radius: 14px; color: inherit; font: inherit; text-align: inherit; }
.flip-inner { position: relative; display: grid; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3,.7,.3,1); }
.flipped .flip-inner { transform: rotateY(180deg); }
.face { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.face.front { transform: rotateY(180deg); }
.face.back { border-radius: 14px; display: grid; place-items: center; min-height: 100%;
  background: repeating-linear-gradient(45deg, #1c1c24 0 10px, #22222c 10px 20px); border: 2px solid #3a3a46; }
.reveal-grid .face.back { aspect-ratio: 5/7; }
.reveal-single .face.back { border-radius: 22px; }
.face.back span { font: 700 34px/1 var(--display); color: #5d5d6b; }
/* rarity tell: rare+ backs glow before you flip */
.t-R .face.back, .t-E .face.back, .t-L .face.back { border-color: var(--glow); box-shadow: 0 0 22px color-mix(in srgb, var(--glow) 55%, transparent); }
.t-R .face.back span, .t-E .face.back span, .t-L .face.back span { color: var(--glow); }
.t-L .face.back { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 50px var(--glow); } }
@keyframes dealIn { from { transform: translateY(30px) scale(.9); opacity: 0; } }

.rays { position: fixed; left: 50%; top: 50%; width: 160vmax; aspect-ratio: 1; translate: -50% -50%; z-index: 0; pointer-events: none; opacity: 0;
  background: repeating-conic-gradient(rgb(251 191 36 / .22) 0deg 8deg, transparent 8deg 22deg); mask: radial-gradient(circle, #000 0%, transparent 55%); transition: opacity .6s; }
.rays.on { opacity: 1; animation: spin 18s linear infinite; }
#reveal:has(.rays.on) { background: radial-gradient(circle, rgb(60 40 5 / .95), rgb(8 8 12 / .96) 60%); }
.flash { position: fixed; inset: 0; z-index: 75; pointer-events: none; opacity: 0; }
.flash.on { animation: flash .7s ease-out; }
@keyframes flash { 0% { opacity: 1; } 100% { opacity: 0; } }
.fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 76; pointer-events: none; }
.shake { animation: shake .4s ease; }
.shake-big { animation: shake-big .6s ease; }
.thud { animation: thud .35s ease .45s; }
@keyframes shake { 20% { translate: -6px 2px; } 40% { translate: 5px -3px; } 60% { translate: -4px 2px; } 80% { translate: 3px 0; } }
@keyframes shake-big { 10% { translate: -12px 4px; } 25% { translate: 10px -6px; } 40% { translate: -9px 5px; } 55% { translate: 7px -3px; } 70% { translate: -4px 2px; } 85% { translate: 2px 0; } }
@keyframes thud { 30% { translate: 0 6px; scale: .98; } }
.ghost-fly { position: fixed; z-index: 76; font-size: 64px; translate: -50% -50%; pointer-events: none; animation: ghost 2.2s ease-in forwards; }
@keyframes ghost { 0% { opacity: 0; transform: translate(0, 0) scale(.5); } 20% { opacity: 1; transform: translate(0, -20px) scale(1); } 100% { opacity: 0; transform: translate(140px, -320px) scale(.8) rotate(20deg); } }

.modal-box { width: 100%; display: grid; place-items: center; }
.modal-card { display: grid; justify-items: center; gap: 18px; }
.modal-actions { display: flex; gap: 10px; }
.modal-company { display: grid; justify-items: center; gap: 16px; text-align: center; }
.modal-company h3 { font-size: 1.3rem; }
.company-cards { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.picker { width: min(520px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; text-align: center; }
.picker h3 { font-size: 1.5rem; }
.picker p { margin: 8px 0 18px; }
.picker-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pick { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: 700 15px/1.2 var(--body); cursor: pointer; text-align: left; }
.pick span { font-size: 26px; }
.pick:hover { border-color: var(--yellow); }
.pick.on { border-color: var(--yellow); background: rgb(255 210 63 / .12); }
.fake-ad { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 24px; text-align: center; }
.fake-ad h3 { font-size: 1.3rem; margin: 12px 0 8px; }
.fake-ad p { color: var(--muted); margin: 0 0 14px; }
.fake-ico { font-size: 56px; }
.cd { font: 700 40px/1 var(--display); color: var(--yellow); }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 140%); width: max-content; max-width: calc(100% - 32px);
  background: var(--text); color: var(--bg); font-weight: 600; font-size: 15px; padding: 12px 18px; border-radius: 14px; transition: transform .25s ease, opacity .25s ease; pointer-events: none; opacity: 0; visibility: hidden; }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

@media (max-width: 760px) {
  .reveal-grid { gap: 10px; max-width: 360px; }
  .reveal-grid .flip { width: calc((100% - 20px) / 3); }
  .mini .logo { width: 36px; height: 36px; font-size: 22px; }
  .mini-co { font-size: 10px; }
  .banner { grid-template-columns: 90px 1fr; gap: 16px; padding: 16px; }
  .banner::before { left: 61px; }
  .banner-art { font-size: 38px; }
  .pulls { grid-template-columns: 1fr; }
  .tabs button { font-size: 13px; padding: 10px 6px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .co-tile { padding: 12px; }
  .co-tile .logo { width: 40px; height: 40px; font-size: 22px; }
}
@media (max-width: 480px) {
  .res-label { display: none; }
  .res { padding: 12px; gap: 10px; }
  .picker-grid { grid-template-columns: 1fr; }
}

/* bait: looked legendary, was garbage */
.deflate { animation: deflate .9s ease; }
@keyframes deflate { 15% { scale: 1.06 .94; } 35% { scale: .9 1.08; rotate: -3deg; } 55% { scale: 1.03 .97; rotate: 2deg; } 100% { scale: 1; rotate: 0deg; } }
.bust-label { position: absolute; left: 50%; top: 42%; translate: -50% -50%; rotate: -10deg; z-index: 5; white-space: nowrap; pointer-events: none;
  padding: 10px 16px; border-radius: 12px; background: #3d2f12; color: #fbbf24; border: 3px dashed #a37b16;
  font: 700 22px/1 var(--display); box-shadow: 0 10px 30px rgb(0 0 0 / .5); animation: bustIn .5s cubic-bezier(.2,.9,.3,1.4) both; }
.bust-label.sm { font-size: 10px; padding: 4px 6px; border-width: 2px; border-radius: 6px; }
@keyframes bustIn { from { scale: 0; opacity: 0; } }
.ghost-fly.puff { font-size: 80px; }
.top nav { align-items: center; }
#sound-btn { padding: 5px 10px; font-size: 15px; }

/* spotlight: a legendary (or a bait) spins on its own */
.spot { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 24px 16px; overflow-y: auto;
  background: rgb(8 8 12 / .82); backdrop-filter: blur(4px); }
.spot-wrap { position: relative; width: min(360px, 88vw); perspective: 1200px; }
.spinner { transform-style: preserve-3d; display: grid; }
.spot-wrap.spinning .spinner { animation: spinFast .22s linear 4, spinLand .6s cubic-bezier(.15,.7,.25,1) .88s 1; }
.spot-wrap.spinning .face.front { visibility: hidden; }
.spot-wrap.spinning .face.back { backface-visibility: visible; -webkit-backface-visibility: visible; }
.spot-wrap .face.back { border-radius: 22px; min-height: 420px; }
.spot-wrap.spinning { animation: spotGrow 1.5s ease-in forwards; }
@keyframes spinFast { to { transform: rotateY(360deg); } }
@keyframes spinLand { to { transform: rotateY(360deg); } }
@keyframes spotGrow { 0% { scale: .6; filter: drop-shadow(0 0 0 #fbbf24); } 100% { scale: 1.04; filter: drop-shadow(0 0 40px #fbbf24); } }
.spot-next { align-self: center; animation: dealIn .3s ease both; }

/* ---------- CEO's office ---------- */
.t-M { --glow: #ff7ad9; --tint: #2a1240; }
.ceo-box { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin: 4px 0 14px; padding: 14px 16px; border-radius: 16px;
  background: linear-gradient(120deg, #1d1530, #17171e 60%); border: 1px solid rgb(192 132 252 / .25); }
.ceo-box.ready { border-color: transparent; background: linear-gradient(120deg, #2a1745, #1b1424 60%) padding-box, linear-gradient(120deg, #ff5a7a, #fbbf24, #4ade80, #60a5fa, #c084fc) border-box; border: 2px solid transparent; animation: ceoGlow 2.4s ease-in-out infinite; }
@keyframes ceoGlow { 50% { box-shadow: 0 0 28px rgb(255 122 217 / .35); } }
.ceo-ico { font-size: 34px; }
.ceo-text { display: grid; gap: 4px; min-width: 0; }
.ceo-text small { color: var(--muted); font-size: 13px; }
.ceo-count { font: 700 13px/1 var(--display); color: #ff9ae4; margin-left: 6px; }
.ceo-progress { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.ceo-progress div { height: 100%; width: 0; background: linear-gradient(90deg, #c084fc, #ff7ad9, #fbbf24); transition: width .4s ease; }
.ceo-actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.ceo-actions .btn { align-self: stretch; padding: 12px 16px; font-size: 14px; }
.ceo-actions .ghost-btn.small { margin: 0; }
@media (max-width: 560px) { .ceo-box { grid-template-columns: auto 1fr; } .ceo-actions { grid-column: 1 / -1; flex-direction: row; } .ceo-actions .btn { flex: 1; } }

.overlay.ceo { z-index: 55; background: radial-gradient(circle at 50% 30%, #1f1a2e, #08080c 70%); }
.ceo-stage { position: relative; z-index: 2; width: 100%; display: grid; place-items: center; margin: auto 0; }
.ceo-rays { position: fixed; left: 50%; top: 50%; width: 160vmax; aspect-ratio: 1; translate: -50% -50%; pointer-events: none; opacity: 0; z-index: 0;
  background: repeating-conic-gradient(rgb(255 122 217 / .16) 0deg 7deg, rgb(251 191 36 / .14) 7deg 14deg, transparent 14deg 26deg); mask: radial-gradient(circle, #000 0%, transparent 55%); transition: opacity .8s; }
.overlay.ceo.win .ceo-rays { opacity: 1; animation: spin 22s linear infinite; }

/* elevator */
.elevator { width: min(380px, 100%); padding: 22px; border-radius: 22px; text-align: center; animation: sway 3s ease-in-out infinite;
  background: linear-gradient(180deg, #3a3a44, #24242c); border: 2px solid #55555f; box-shadow: inset 0 0 40px rgb(0 0 0 / .5), 0 30px 60px rgb(0 0 0 / .5); }
@keyframes sway { 50% { translate: 0 -3px; } }
.el-display { display: inline-flex; align-items: center; gap: 10px; padding: 10px 22px; border-radius: 10px; background: #0b0b0e; border: 2px solid #111;
  font: 700 54px/1 var(--display); color: #ff6b3d; text-shadow: 0 0 14px rgb(255 107 61 / .8); letter-spacing: .02em; min-width: 170px; justify-content: center; }
.el-display i { font-style: normal; font-size: 26px; animation: blinkUp 1s steps(2) infinite; }
@keyframes blinkUp { 50% { opacity: .2; } }
.el-panel { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 22px auto 0; max-width: 260px; }
.el-panel span { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font: 700 12px/1 var(--body); color: #c9c9d4;
  background: radial-gradient(circle at 35% 30%, #6a6a74, #33333b); border: 1px solid #1d1d22; }
.el-panel span:first-child { color: #ffd23f; box-shadow: 0 0 12px rgb(255 210 63 / .7); border-color: #ffd23f; }
.el-notes { position: relative; height: 60px; margin-top: 10px; }
.el-notes span { position: absolute; bottom: 0; font-size: 26px; color: #ff9ae4; opacity: 0; animation: note 3s ease-out infinite; }
.el-notes span:nth-child(1) { left: 12%; } .el-notes span:nth-child(2) { left: 32%; animation-delay: .6s; } .el-notes span:nth-child(3) { left: 52%; animation-delay: 1.2s; }
.el-notes span:nth-child(4) { left: 72%; animation-delay: 1.8s; } .el-notes span:nth-child(5) { left: 88%; animation-delay: 2.4s; }
@keyframes note { 0% { opacity: 0; transform: translateY(0) rotate(0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-70px) rotate(18deg); } }
.el-caption { color: var(--muted); font-size: 14px; margin: 6px 0 0; }

.doors { position: fixed; inset: 0; z-index: 5; pointer-events: none; }
.door { position: absolute; top: 0; bottom: 0; width: 50%; background: linear-gradient(90deg, #6d6d78, #9a9aa6 50%, #6d6d78); box-shadow: inset 0 0 0 1px #4a4a54; transition: transform .8s cubic-bezier(.6,0,.3,1); }
.door.l { left: 0; transform: translateX(-100%); border-right: 2px solid #3a3a44; }
.door.r { right: 0; transform: translateX(100%); border-left: 2px solid #3a3a44; }
.doors.shut .door { transform: none; }
.doors.opening .door.l { transform: translateX(-100%); }
.doors.opening .door.r { transform: translateX(100%); }

/* office */
.office, .verdict { width: min(440px, 100%); display: grid; gap: 16px; justify-items: center; text-align: center; }
.ceo-person { display: flex; align-items: center; gap: 14px; text-align: left; padding: 12px 18px 12px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.ceo-face { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 40px; background: radial-gradient(circle at 40% 35%, #4a3a20, #1e1810); border: 2px solid #fbbf24; }
.ceo-person b { display: block; font: 700 15px/1.2 var(--display); }
.ceo-person small { color: var(--muted); font-size: 13px; }
.bubble { position: relative; width: 100%; padding: 18px 20px; border-radius: 18px; background: #f4f1ea; color: #16120a; font: 700 19px/1.35 var(--body); box-shadow: 0 16px 40px rgb(0 0 0 / .4); }
.bubble::before { content: ""; position: absolute; top: -10px; left: 50%; translate: -50% 0; border: 10px solid transparent; border-top: 0; border-bottom-color: #f4f1ea; }
.bubble.pop { animation: pop .35s cubic-bezier(.2,.9,.3,1.3); }
.bubble.think { font-style: italic; font-weight: 600; color: #4a4030; }
.bubble.dots::after { content: ""; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
@keyframes pop { from { scale: .85; opacity: 0; } }
.answers { display: grid; gap: 10px; width: 100%; }
.answer { padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: 700 16px/1.3 var(--body); cursor: pointer; transition: transform .12s, border-color .12s; animation: dealIn .3s ease backwards; }
.answer:nth-child(2) { animation-delay: .06s; } .answer:nth-child(3) { animation-delay: .12s; }
.answer:hover:not(:disabled) { border-color: var(--yellow); transform: translateY(-1px); }
.answer:disabled { opacity: .45; cursor: default; }
.ceo-step { color: var(--muted); font-size: 13px; margin: 0; }
.ceo-no { font: 700 clamp(20px, 6.5vw, 30px)/1.05 var(--display); max-width: 92%; color: var(--red); border: 4px solid var(--red); border-radius: 12px; padding: 12px 18px; rotate: -8deg; animation: slam .45s cubic-bezier(.2,.9,.3,1.3); }
.rank-line { color: var(--muted); margin: 0; font-size: 14px; }

/* real offer card */
.jc.real { border: 2px solid transparent;
  background: linear-gradient(170deg, #2a1240, #16161d 70%) padding-box, linear-gradient(120deg, #ff5a7a, #fbbf24, #4ade80, #60a5fa, #c084fc) border-box;
  box-shadow: 0 0 40px rgb(255 122 217 / .4), 0 20px 50px rgb(0 0 0 / .45); }
.jc.real .holo { opacity: .8; background:
  radial-gradient(circle at var(--mx) var(--my), rgb(255 255 255 / .35), transparent 40%),
  linear-gradient(115deg, transparent 20%, rgb(255 90 122 / .25) 35%, rgb(251 191 36 / .3) 45%, rgb(74 222 128 / .25) 55%, rgb(96 165 250 / .25) 65%, transparent 80%);
  background-size: 100% 100%, 250% 250%; background-position: center, var(--mx) var(--my); mix-blend-mode: color-dodge; }
.jc.real .stamp { animation: slam .5s cubic-bezier(.2,.9,.3,1.3) .5s backwards; }
.real-badge { margin-top: 14px; align-self: flex-start; padding: 5px 10px; border-radius: 999px; font: 800 11px/1 var(--body); letter-spacing: .1em; color: #16120a; background: linear-gradient(90deg, #fbbf24, #ff9ae4); }
.perks li::marker { content: "✓  "; color: #4ade80; }
.jc.real.arrive { animation: arrive .8s cubic-bezier(.2,.9,.3,1.2); }
@keyframes arrive { from { transform: perspective(900px) rotateY(90deg) scale(.6); opacity: 0; } }

/* real offers in the collection tab */
.real-wrap { margin-bottom: 22px; padding: 16px; border-radius: 16px; background: linear-gradient(120deg, #1d1530, #17171e 60%); border: 1px solid rgb(192 132 252 / .25); }
.real-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.real-head h2 { font-size: 1.15rem; }
.real-rank { font: 700 13px/1 var(--body); padding: 6px 10px; border-radius: 999px; color: #16120a; background: linear-gradient(90deg, #fbbf24, #ff9ae4); }
.real-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.real-grid .muted { margin: 0; }
.real-tile { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; text-align: left; padding: 12px; border-radius: 14px; cursor: pointer; color: var(--text);
  border: 1px solid transparent; background: linear-gradient(170deg, #2a1240, #17171e) padding-box, linear-gradient(120deg, #ff5a7a, #fbbf24, #60a5fa, #c084fc) border-box; }
.real-tile b { display: block; font: 700 13px/1.25 var(--display); }
.real-tile small { color: var(--muted); font-size: 12px; }
.real-tile > span { font: 700 12px/1 var(--display); color: #ff9ae4; }
.verdict .modal-actions { width: 100%; }
.verdict .modal-actions > * { flex: 1; white-space: nowrap; }

/* where the job was "found": parody job boards */
.jc-src { margin-top: 10px; font-size: 12px; color: var(--muted); }
.jc-src span { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; font-size: 10px; margin-right: 4px; }

/* CEO's office room: walk from the lift to the chair */
.room { position: relative; width: 100%; height: 220px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(180deg, #2b2438 0%, #241e30 68%, #3a2a1c 68%, #2c2016 100%); box-shadow: inset 0 -30px 40px rgb(0 0 0 / .35); }
.room > * { position: absolute; line-height: 1; }
.room-window { top: 16px; left: 36%; width: 30%; height: 74px; border-radius: 6px; border: 4px solid #4a4058; overflow: hidden;
  background: linear-gradient(180deg, #5b7bd6, #f0a98a); display: flex; align-items: flex-end; justify-content: center; }
.room-window span { font-size: 40px; transform: translateY(6px); }
.room-plant { right: 1%; top: 54px; font-size: 30px; }
.room-lift { left: 3%; bottom: 32%; width: 66px; height: 108px; border: 4px solid #8c8c98; border-bottom: 0; border-radius: 6px 6px 0 0; background: #1b1b22; display: flex; justify-content: space-between; }
.lift-door { width: 10px; height: 100%; background: linear-gradient(90deg, #9a9aa6, #6d6d78); }
.room-desk { right: 4%; bottom: 18%; width: 40%; height: 54px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #7a4e2a, #5a361b); box-shadow: 0 6px 0 #3a230f; }
.desk-top { position: absolute; top: -26px; left: 10px; font-size: 24px; }
.desk-plate { position: absolute; left: 50%; top: 14px; translate: -50% 0; padding: 4px 8px; border-radius: 4px; background: #e8c46a; color: #3a230f; font: 800 11px/1 var(--display); letter-spacing: .08em; }
.room-ceo { right: 7%; bottom: calc(18% + 44px); font-size: 52px; animation: ceoBob 2.6s ease-in-out infinite; }
@keyframes ceoBob { 50% { translate: 0 -3px; } }
.room-chair { left: 47%; bottom: 14%; font-size: 46px; }
.room-me { left: 6%; bottom: 20%; font-size: 50px; }
.room-me span { display: inline-block; }
.room-me.walking { animation: walkIn 2.6s linear forwards; }
.room-me.walking span { transform: scaleX(-1); animation: stepBob .38s ease-in-out infinite; }
@keyframes walkIn { from { left: 6%; } to { left: 45%; } }
@keyframes stepBob { 50% { translate: 0 -5px; } }
.room-me.seated { left: 45.5%; bottom: 24%; font-size: 44px; animation: sitDown .35s ease-out; }
@keyframes sitDown { from { bottom: 20%; } }
@media (max-width: 420px) { .room { height: 190px; } .room-ceo { font-size: 44px; } .room-me { font-size: 42px; } .room-chair { font-size: 40px; } .room-lift { height: 92px; width: 56px; } }

/* card back: where the vacancy came from */
.face.back { position: relative; }
.back-src { position: absolute; left: 6px; right: 6px; bottom: 10px; text-align: center; font: 600 11px/1.25 var(--body); color: #8b8b99; }
.back-src b { display: block; font: 700 13px/1.2 var(--display); color: var(--text); margin-top: 2px; }
.t-R .back-src b, .t-E .back-src b, .t-L .back-src b { color: var(--glow); }
.reveal-grid .back-src { bottom: 7px; font-size: 9px; }
.reveal-grid .back-src b { font-size: 10px; }
.spot-wrap .back-src, .reveal-single .back-src { bottom: 22px; font-size: 13px; }
.spot-wrap .back-src b, .reveal-single .back-src b { font-size: 18px; }
