/* Watched It? — a 70s living room: wood paneling, a glowing tube TV with channel knobs, a channel guide of 100 at the end. */
.wi-page { --ink: #2a1608; --wood: #5a3a22; --wood-2: #3a2416; --amber: #ffb347; --amber-2: #d98a1f; --cream: #fff3dc; --screen: #0f1a24; --glow: #8fe3d6; }
.wi-page [hidden] { display: none !important; }
.wi-title { font-family: 'Bungee', Impact, sans-serif; font-weight: 400; color: var(--wood); letter-spacing: .01em; }

/* the card: wood paneling with a warm lamp glow */
.cbx-card.wi-card { --cbx-full-pad: 6px; position: relative; padding: 18px 14px 14px; color: #fff; overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255, 179, 71, .18), transparent 60%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .22) 0 2px, transparent 2px 46px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 9px, transparent 9px 17px),
    linear-gradient(180deg, var(--wood), var(--wood-2));
  box-shadow: 0 30px 60px -28px rgba(42, 22, 8, .8), inset 0 0 0 3px rgba(255, 179, 71, .2); }
.cbx-card.wi-card p { color: inherit; }
.cbx-card.wi-card .wi-banner { margin: 0 0 10px; padding: 10px 14px; border-radius: 12px; font: 800 14px/1.45 var(--cbx-body); color: var(--ink); background: var(--amber); }
.wi-banner b { color: #7a3a00; }

/* ---- playing ---- */
.wi-top { display: flex; align-items: center; gap: 8px; margin: 0 auto 8px; max-width: 460px; font: 900 13px var(--cbx-body); }
.wi-count { padding: 5px 11px; border-radius: 999px; background: var(--amber); color: var(--ink); }
.wi-count b { font-size: 16px; }
.wi-rank { padding: 5px 11px; border-radius: 999px; background: rgba(0, 0, 0, .3); color: #fff; }
.wi-rank.up { animation: wi-up .7s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes wi-up { 40% { transform: scale(1.18); background: var(--amber); color: var(--ink); } }
.wi-prog { margin-left: auto; color: rgba(255, 255, 255, .75); font-variant-numeric: tabular-nums; }
.wi-prog.ms { color: var(--amber); }
.wi-mini { display: grid; grid-template-columns: repeat(20, 1fr); gap: 2px; max-width: 460px; margin: 0 auto 12px; padding: 6px; border-radius: 8px; background: rgba(0, 0, 0, .35); }
.wi-cell { aspect-ratio: 1; border: 0; padding: 0; border-radius: 3px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; overflow: hidden; pointer-events: none; }
.wi-cell span { font-size: 11px; line-height: 1; opacity: 0; transition: opacity .2s; }
.wi-cell.yes { background: color-mix(in srgb, var(--rc) 55%, var(--cream)); }
.wi-cell.yes span { opacity: 1; }
.wi-cell.no { background: rgba(255, 255, 255, .03); }
.wi-cell.cur { box-shadow: 0 0 0 2px var(--amber); animation: wi-pulse 1s ease-in-out infinite; }
@keyframes wi-pulse { 50% { background: var(--amber); } }

/* the TV: a cabinet with a rounded glowing screen and a knob panel on the right */
.wi-deck { position: relative; max-width: 400px; margin: 0 auto; filter: drop-shadow(0 16px 16px rgba(0, 0, 0, .45)); }
.wi-ticket { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 66px; gap: 10px; padding: 12px; border-radius: 22px; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab;
  background: linear-gradient(180deg, #c98b4f, #a8693a); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .25), inset 0 -4px 0 rgba(0, 0, 0, .25);
  transition: transform .22s cubic-bezier(.3, .7, .4, 1), opacity .22s; }
.wi-ticket.drag { transition: none; cursor: grabbing; }
.wi-ticket.fly-r { transform: translateX(130%) rotate(16deg); opacity: 0; }
.wi-ticket.fly-l { transform: translateX(-130%) rotate(-16deg); opacity: 0; }
.wi-ticket.enter { transform: scale(.94) translateY(10px); opacity: 0; transition: none; }
.wi-ticket[data-lean="yes"] .wi-face { box-shadow: inset 0 0 0 4px var(--amber), inset 0 0 40px rgba(0, 0, 0, .6); }
.wi-ticket[data-lean="no"] .wi-face { filter: saturate(.4) brightness(.8); }
.wi-face { position: relative; padding: 18px 14px 22px; min-height: 236px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border-radius: 28px / 22px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%, color-mix(in srgb, var(--rc) 35%, #1e3346), var(--screen) 75%);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, .6), 0 0 0 4px #2a1608; }
.wi-face::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 3px), radial-gradient(ellipse at 30% 15%, rgba(255, 255, 255, .16), transparent 40%); }
.cbx-card .wi-kick { margin: 2px 0 6px; font: 900 11px var(--cbx-body); letter-spacing: .2em; text-transform: uppercase; color: color-mix(in srgb, var(--rc) 60%, #fff); }
.wi-emoji { font-size: 66px; line-height: 1; margin-bottom: 8px; filter: drop-shadow(0 0 14px rgba(143, 227, 214, .35)); }
.wi-ticket h2 { margin: 0; font: 400 clamp(20px, 6vw, 27px)/1.12 'Bungee', Impact, sans-serif; color: #fff; text-shadow: 0 0 12px rgba(143, 227, 214, .4); }
.cbx-card .wi-line { margin: 8px 0 0; font: 800 14.5px/1.4 var(--cbx-body); color: rgba(255, 255, 255, .78); max-width: 260px; }
.wi-ticket.start h2 { font-size: clamp(18px, 5.2vw, 23px); }
/* the knob panel: channel number, year, two knobs and a speaker grille */
.wi-stub { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 10px 4px; border-radius: 12px; background: #2a1608; color: var(--amber); }
.wi-stub span { font: 900 10px var(--cbx-body); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 243, 220, .8); }
.wi-stub b { font: 400 clamp(20px, 6vw, 26px)/1.05 'Bungee', Impact, sans-serif; color: var(--amber); }
.wi-stub i { width: 30px; height: 30px; margin-top: 8px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ddd, #777); box-shadow: 0 2px 0 rgba(0, 0, 0, .5); position: relative; }
.wi-stub i::after { content: ''; position: absolute; left: 50%; top: 3px; width: 3px; height: 10px; margin-left: -1.5px; border-radius: 2px; background: #333; }
.wi-stub i + i { transform: rotate(70deg); }
.wi-legs { display: flex; justify-content: space-between; width: 70%; margin: -2px auto 0; }
.wi-legs i { width: 10px; height: 18px; border-radius: 0 0 4px 4px; background: #2a1608; }
.wi-legs i:first-child { transform: skewX(14deg); } .wi-legs i:last-child { transform: skewX(-14deg); }
.wi-stamp { position: absolute; left: 50%; top: 34px; margin-left: -70px; opacity: 0; transform: rotate(-12deg) scale(2.2); pointer-events: none; z-index: 2; }
.wi-stamp span { display: block; padding: 4px 12px; border: 4px solid var(--amber); border-radius: 10px; color: var(--amber); font: 400 22px 'Bungee', Impact, sans-serif; background: rgba(15, 26, 36, .75); }
.wi-ticket.stamped .wi-stamp { animation: wi-stamp .24s cubic-bezier(.2, 1.4, .5, 1) forwards; }
@keyframes wi-stamp { to { opacity: .95; transform: rotate(-12deg) scale(1); } }

.wi-choose { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; max-width: 400px; margin: 16px auto 0; }
.wi-choose button { min-height: 56px; border-radius: 14px; border: 0; cursor: pointer; font: 900 18px var(--cbx-body); }
.wi-no { background: rgba(0, 0, 0, .3); color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25); }
.wi-yes { background: linear-gradient(180deg, #ffd08a, var(--amber)); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 4px 0 #9a5a10; }
.wi-yes:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 1px 0 #9a5a10; }
.wi-choose .wi-no[hidden] + .wi-yes { grid-column: 1 / -1; }
.wi-choose button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.wi-tools { display: flex; justify-content: center; gap: 22px; margin-top: 10px; min-height: 30px; }
.wi-link { border: 0; background: none; color: rgba(255, 255, 255, .82); font: 800 14px var(--cbx-body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 4px; }

/* ---- finished ---- */
.wi-greet { text-align: center; margin: 4px 0 4px; }
.cbx-card .wi-greet-k { margin: 0; font: 900 13px var(--cbx-body); letter-spacing: .2em; text-transform: uppercase; color: var(--amber); }
.cbx-card .wi-greet-n { margin: 0; font: 400 clamp(56px, 17vw, 88px)/1 'Bungee', Impact, sans-serif; color: var(--cream); text-shadow: 4px 4px 0 var(--ink); }
.wi-greet-n small { font: 900 26px var(--cbx-body); text-shadow: none; margin-left: 4px; }
.cbx-card .wi-greet-r { margin: 4px 0 0; font: 800 16px var(--cbx-body); }
.wi-greet-r b { color: var(--amber); }
.wi-greet-r small { color: rgba(255, 255, 255, .72); font-size: 14px; }
.cbx-card .wi-crowd { margin: 6px auto 0; max-width: 520px; text-align: center; font: 800 15px/1.4 var(--cbx-body); }
.wi-crowd b { color: var(--amber); }
.wi-wall-wrap { position: relative; max-width: 520px; margin: 12px auto 0; }
.wi-wall-wrap:has(.wi-deep:not([hidden])) { margin-bottom: 56px; }
/* the channel guide: a big glowing screen with all 100 */
.wi-wall { position: relative; display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; padding: 14px; border-radius: 30px / 24px; background: radial-gradient(ellipse at 50% 40%, #1e3346, var(--screen) 75%); box-shadow: 0 0 0 10px #a8693a, 0 0 0 13px #2a1608, 0 18px 30px -12px rgba(0, 0, 0, .6); margin: 12px; }
.wi-tile { aspect-ratio: 1; border: 0; padding: 0; border-radius: 6px; display: grid; place-items: center; cursor: pointer; background: rgba(255, 255, 255, .04); }
.wi-tile span { font-size: clamp(16px, 4.8vw, 27px); line-height: 1; }
.wi-tile.no span { opacity: .2; filter: grayscale(1); }
.wi-tile:not(.no) { background: color-mix(in srgb, var(--rc) 55%, #1e3346); box-shadow: 0 0 8px color-mix(in srgb, var(--rc) 50%, transparent); }
.wi-tile.both, .wi-tile.me, .wi-tile.them { background: color-mix(in srgb, var(--rc) 75%, #1e3346); }
.wi-tile:focus-visible { outline: 3px solid var(--amber); outline-offset: 1px; }
.cbx-card .wi-hint { margin: 10px 0 0; text-align: center; font: 800 13px var(--cbx-body); color: rgba(255, 255, 255, .78); min-height: 18px; }
.wi-deep { position: absolute; right: 0; bottom: -50px; z-index: 2; display: grid; justify-items: center; gap: 1px; padding: 8px 12px 9px; transform: rotate(-6deg); pointer-events: none;
  border: 4px solid var(--amber); border-radius: 12px; color: var(--ink); background: var(--cream); text-align: center; text-transform: uppercase; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .4);
  animation: wi-deep-in .4s cubic-bezier(.2, 1.5, .45, 1) .3s both; }
.wi-deep .k { font: 900 10px var(--cbx-body); letter-spacing: .2em; color: #9a5a10; }
.wi-deep b { font: 400 clamp(13px, 3.8vw, 17px)/1.1 'Bungee', Impact, sans-serif; }
.wi-deep span:last-child { font: 900 10px/1.2 var(--cbx-body); letter-spacing: .06em; }
@keyframes wi-deep-in { from { opacity: 0; transform: rotate(-6deg) scale(1.8); } to { opacity: 1; transform: rotate(-6deg) scale(1); } }
.wi-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin: 8px 0 0; font: 800 13px var(--cbx-body); }
.wi-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .6); }
.wi-compare { max-width: 520px; margin: 10px auto 0; padding: 12px 14px; border-radius: 14px; background: rgba(0, 0, 0, .3); text-align: center; font: 800 16px/1.45 var(--cbx-body); }
.wi-compare p { margin: 0; } .wi-compare b { color: var(--amber); }
.cbx-card .wi-compare .wi-teach { margin-top: 4px; font-size: 14px; color: rgba(255, 255, 255, .88); }
.wi-eras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-width: 520px; margin: 12px auto 0; padding: 0; list-style: none; }
.wi-eras li { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; padding: 7px 10px; border-radius: 10px; background: rgba(0, 0, 0, .3); border-left: 5px solid var(--rc); font: 800 12px var(--cbx-body); }
.wi-eras li, .wi-eras span { color: #fff; }
.wi-eras b { font-size: 15px; }
.cbx-card .wi-next { max-width: 520px; margin: 12px auto 0; text-align: center; font: 800 15px/1.5 var(--cbx-body); }
.wi-next b { color: var(--amber); }
.wi-next small { color: rgba(255, 255, 255, .72); }
.wi-night { max-width: 520px; margin: 12px auto 0; padding: 12px 14px; border-radius: 12px; background: var(--cream); color: var(--ink); border-left: 8px solid var(--amber); }
.cbx-card .wi-night p { margin: 0; font: 800 15px/1.45 var(--cbx-body); color: var(--ink); }
.cbx-card .wi-night .wi-night-k { margin-bottom: 4px; font: 900 13px var(--cbx-body); letter-spacing: .08em; text-transform: uppercase; color: #9a5a10; }
.wi-night b { color: #7a3a00; }
.wi-acts { display: grid; gap: 8px; max-width: 420px; margin: 14px auto 0; }
.wi-card .cbx-btn { border-radius: 14px; font-weight: 900; min-height: 48px; }
.wi-card .cbx-btn:not(.alt) { background: linear-gradient(180deg, #ffd08a, var(--amber)); color: var(--ink); border: 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 4px 0 #9a5a10; }
.wi-card .cbx-btn.wi-img { background: linear-gradient(180deg, #1e3346, var(--screen)); color: var(--glow); box-shadow: inset 0 0 0 2px rgba(143, 227, 214, .5), 0 4px 0 #000; }
.wi-card .cbx-btn.alt { background: rgba(0, 0, 0, .3); color: #fff; border: 0; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25); }

@media (max-width: 560px) {
  .cbx-card.wi-card { --cbx-full-pad: 4px; padding: 16px 10px 14px; }
  .wi-page .cbx-hero { margin-bottom: 10px; }
  .wi-ticket { grid-template-columns: 1fr 56px; padding: 10px; gap: 8px; }
  .wi-face { min-height: 214px; padding: 16px 12px 20px; }
  .wi-emoji { font-size: 56px; }
  .wi-eras { grid-template-columns: repeat(2, 1fr); }
  .wi-wall { padding: 10px; gap: 2px; margin: 10px; }
}
@media (max-width: 560px) and (max-height: 760px) { .wi-page .cbx-sub { display: none; } }
@media (prefers-reduced-motion: reduce) { .wi-ticket { transition: none; } .wi-cell.cur { animation: none; background: var(--amber); } .wi-ticket.stamped .wi-stamp { animation: none; opacity: .95; transform: rotate(-12deg); } .wi-deep, .wi-rank.up { animation: none; } }

.cb-appcard { display: flex; align-items: center; gap: 12px; max-width: 420px; margin: 14px auto 0; padding: 12px 14px; border-radius: 16px; background: #fff; color: #1d1d1f; text-decoration: none; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .5); }
.cb-appcard img { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.cb-appcard b { display: block; font: 900 15px/1.25 Nunito, system-ui, sans-serif; }
.cb-appcard span { display: block; font: 700 13px/1.35 Nunito, system-ui, sans-serif; color: #5a5a60; }
.cb-appcard i { margin-left: auto; flex: none; font-style: normal; padding: 8px 12px; border-radius: 999px; background: #0a84ff; color: #fff; font: 900 13px Nunito, system-ui, sans-serif; }
