/* =========================================================
   LEARNWRIGHT ARCADE
   Shared look for every playable game: top bar, title screen,
   results screen, buttons, cards, speech bubbles, toasts and
   effects. Each game adds its own styles on top.
   ========================================================= */
:root {
  --teal: #0E3B43; --teal-900: #082A30; --teal-700: #14474F; --teal-600: #1F5560;
  --sun: #FFC83D; --sun-600: #F0B21E; --sun-50: #FFF5D6;
  --mint: #3DD9B3; --mint-600: #23B893; --mint-50: #E3F9F2; --mint-text: #1B6E5C;
  --coral: #FF6B4A; --coral-600: #C94A2E; --coral-50: #FFEDE7; --sky: #7FD3E6; --sky-50: #EAF7FB;
  --violet: #8B6CEF; --cream: #FFF6E5; --paper: #FFFFFF; --line: #E4E9E5;
  --ink: #0E3B43; --ink-2: #33494E; --muted: #587075; --on-dark: #FFF6E5; --on-dark-2: #CFE3E4;
  --game: 'Lilita One', 'Arial Rounded MT Bold', 'Trebuchet MS', sans-serif;
  --body: 'Lexend', 'Segoe UI', system-ui, sans-serif;
  --num: 'Bricolage Grotesque', 'Lexend', sans-serif;
  --pop: cubic-bezier(.2, 1.5, .4, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body.arcade { background: var(--teal-900); color: var(--ink); font-family: var(--body); overflow: hidden; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; touch-action: manipulation; overscroll-behavior: none; }
button { font: inherit; color: inherit; }
img { -webkit-user-drag: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 4px solid var(--sun); outline-offset: 3px; }
.arc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- shell ---------- */
.arc { position: fixed; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100vh; height: 100dvh; }
.arc-top { position: relative; z-index: 40; min-height: 64px; padding: env(safe-area-inset-top) 14px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--teal); color: var(--on-dark); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .18); }
.arc-back { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px 0 10px; border-radius: 999px; border: 2px solid var(--mint); color: var(--mint); text-decoration: none; font-weight: 600; font-size: 15px; }
.arc-back:hover { background: rgba(61, 217, 179, .12); }
.arc-title { flex: 1 1 auto; min-width: 0; text-align: center; font-family: var(--game); font-size: 24px; letter-spacing: .4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arc-hud { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; }
.arc-best { font-size: 13px; font-weight: 600; color: var(--on-dark-2); border: 2px dashed rgba(207, 227, 228, .45); border-radius: 999px; padding: 5px 10px; white-space: nowrap; }
.arc-score { display: inline-flex; align-items: center; gap: 6px; min-width: 96px; justify-content: center; font-family: var(--game); font-size: 19px; color: var(--teal); background: var(--sun); padding: 6px 14px; border-radius: 999px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15); font-variant-numeric: tabular-nums; white-space: nowrap; }
.arc-score svg { flex: 0 0 auto; }
.arc-score.bump { animation: arc-bump .35s ease; }
.arc-icon-btn { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 999px; border: 2px solid var(--mint); background: transparent; color: var(--mint); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.arc-progress { position: absolute; left: 0; right: 0; bottom: -6px; height: 6px; background: rgba(8, 42, 48, .55); pointer-events: none; }
.arc-progress > i { display: block; height: 100%; width: 0; background: var(--sun); border-radius: 0 6px 6px 0; transition: width .6s cubic-bezier(.2, .8, .2, 1); }
@media (max-width: 700px) {
  .arc-top { min-height: 56px; padding: env(safe-area-inset-top) 8px 0; gap: 6px; }
  .arc-back { padding: 0 10px 0 8px; } .arc-back span { display: none; }
  .arc-title { font-size: 18px; } .arc-best { display: none; }
  .arc-score { min-width: 0; font-size: 16px; padding: 5px 10px; }
}

.arc-stage { position: relative; overflow: hidden; overflow: clip; isolation: isolate; container: stage / size; background: var(--teal-700); }
.arc-bg { position: absolute; inset: -3%; background-position: center; background-size: cover; background-repeat: no-repeat; animation: arc-kenburns 40s ease-in-out infinite alternate; z-index: 0; transition: filter 1.2s ease; }
.arc-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 42, 48, .06), rgba(8, 42, 48, 0) 40%, rgba(8, 42, 48, .28)); }
.arc-world { position: absolute; inset: 0; z-index: 5; overflow: hidden; overflow: clip; }
.arc-flash { position: absolute; inset: 0; z-index: 31; pointer-events: none; opacity: 0; background: #fff; }
.arc-flash.go { animation: arc-flash .5s ease-out; }
.arc-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 32; pointer-events: none; }
.arc-stage.shake .arc-world, .arc-stage.shake .arc-bg { animation: arc-shake .42s ease; }
.arc-stage.shake-big .arc-world, .arc-stage.shake-big .arc-bg { animation: arc-shake-big .6s ease; }

/* ---------- title screen ---------- */
.arc-screen { position: absolute; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; }
.arc-screen.out { animation: arc-fade-out .32s ease forwards; pointer-events: none; }
.arc-intro { overflow: hidden; overflow: clip; background: var(--teal-700); }
.arc-intro-bg { position: absolute; inset: -24px; background-position: center; background-size: cover; filter: blur(2px) saturate(1.08); }
.arc-intro::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 42%, rgba(8, 42, 48, 0) 0%, rgba(8, 42, 48, .35) 70%, rgba(8, 42, 48, .62) 100%), linear-gradient(180deg, rgba(8, 42, 48, .1), rgba(8, 42, 48, 0) 40%, rgba(8, 42, 48, .55)); }
.arc-intro-inner { position: relative; z-index: 2; display: grid; grid-template-areas: "head" "hero" "foot"; justify-items: center; align-items: center; gap: clamp(8px, 2cqh, 18px); padding: 16px; text-align: center; max-width: 960px; }
.arc-intro-head { grid-area: head; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.arc-intro-foot { grid-area: foot; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.arc-hero { grid-area: hero; width: clamp(140px, 33cqmin, 290px); height: auto; filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .35)); animation: arc-float 3.2s ease-in-out infinite; }
.arc-logo { margin: 0; font-family: var(--game); font-weight: 400; font-size: clamp(44px, 10cqmin, 110px); line-height: .92; color: var(--cream); -webkit-text-stroke: clamp(5px, .9cqmin, 10px) var(--teal); paint-order: stroke fill; text-shadow: 0 7px 0 var(--teal), 0 18px 34px rgba(0, 0, 0, .35); transform: rotate(-2deg); letter-spacing: .5px; }
.arc-tagline { margin: 0; font-weight: 600; font-size: clamp(15px, 2.4cqmin, 20px); color: #fff; background: rgba(14, 59, 67, .85); padding: 8px 18px; border-radius: 999px; }
.arc-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.arc-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(255, 246, 229, .96); color: var(--teal); font-size: 13px; font-weight: 600; white-space: nowrap; }
.arc-chip.sun { background: var(--sun); }
.arc-chip.dark { background: rgba(14, 59, 67, .85); color: var(--cream); }
.arc-intro-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; }
@container stage (max-height: 560px) and (min-width: 560px) {
  .arc-intro-inner { grid-template-areas: "hero head" "hero foot"; grid-template-columns: auto auto; column-gap: clamp(16px, 4cqw, 48px); }
  .arc-hero { width: clamp(110px, 40cqh, 230px); }
  .arc-logo { font-size: clamp(40px, 15cqh, 84px); }
  .arc-intro-head { gap: 8px; } .arc-intro-foot { gap: 10px; }
}
@container stage (max-height: 380px) {
  .arc-chips { display: none; }
  .arc-btn.big { min-height: 62px; font-size: 30px; padding: 0 40px; }
}

/* ---------- buttons ---------- */
.arc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; padding: 0 30px; border-radius: 20px; border: 4px solid var(--teal); background: var(--sun); color: var(--teal); font-family: var(--game); font-size: 25px; line-height: 1; text-decoration: none; cursor: pointer; box-shadow: 0 6px 0 var(--teal); transition: transform .08s ease, box-shadow .08s ease; white-space: nowrap; }
.arc-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--teal); }
.arc-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--teal); }
.arc-btn.big { min-height: 84px; padding: 0 58px; font-size: 42px; border-width: 5px; box-shadow: 0 8px 0 var(--teal); animation: arc-pulse 1.8s ease-in-out infinite; }
.arc-btn.alt { background: var(--cream); }
.arc-btn.mint { background: var(--mint); }
.arc-btn.coral { background: var(--coral); color: #fff; }
.arc-btn.small { min-height: 46px; padding: 0 18px; font-size: 18px; border-width: 3px; box-shadow: 0 4px 0 var(--teal); border-radius: 16px; }
.arc-btn.small:active { box-shadow: 0 1px 0 var(--teal); transform: translateY(3px); }
.arc-btn[disabled] { opacity: .5; cursor: default; transform: none; animation: none; }
.arc-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 3px solid var(--teal); background: var(--cream); color: var(--teal); font-weight: 600; font-size: 15px; cursor: pointer; box-shadow: 0 4px 0 var(--teal); }
.arc-pill:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--teal); }

/* ---------- panels, cards, bubbles ---------- */
.arc-panel { background: var(--cream); border: 4px solid var(--teal); border-radius: 24px; box-shadow: 0 7px 0 var(--teal); }
.arc-card { position: relative; background: var(--paper); border: 3px solid var(--teal); border-radius: 20px; box-shadow: 0 6px 0 var(--teal); cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .2s ease, opacity .2s ease; padding: 0; color: var(--ink); }
.arc-card:hover { transform: translateY(-4px); box-shadow: 0 10px 0 var(--teal); }
.arc-card:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--teal); }
.arc-card.right { background: var(--mint-50); border-color: var(--mint-text); box-shadow: 0 6px 0 var(--mint-text); animation: arc-pop .45s ease; }
.arc-card.wrong { background: var(--coral-50); border-color: var(--coral); box-shadow: 0 6px 0 var(--coral-600); animation: arc-shake-x .45s ease; }
.arc-card.dim { opacity: .4; }
.arc-card[disabled] { cursor: default; }
.arc-card[disabled]:hover { transform: none; box-shadow: 0 6px 0 var(--teal); }
.arc-card.right[disabled]:hover { box-shadow: 0 6px 0 var(--mint-text); }
.arc-card.wrong[disabled]:hover { box-shadow: 0 6px 0 var(--coral-600); }
.arc-say { position: relative; background: var(--paper); border: 3px solid var(--teal); border-radius: 20px; padding: 12px 16px; font-weight: 500; font-size: 17px; line-height: 1.38; color: var(--ink); box-shadow: 0 5px 0 var(--teal); }
.arc-say b, .arc-say strong { font-weight: 700; color: var(--teal); }
.arc-say .key { color: var(--mint-text); font-weight: 700; }
.arc-say.good { background: var(--mint-50); border-color: var(--mint-text); box-shadow: 0 5px 0 var(--mint-text); }
.arc-say.bad { background: var(--coral-50); border-color: var(--coral); box-shadow: 0 5px 0 var(--coral-600); }
.arc-say.pop { animation: arc-say-pop .4s var(--pop); }
.arc-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mint-text); }
.arc-timer { position: relative; height: 16px; border-radius: 99px; background: rgba(255, 255, 255, .7); border: 3px solid var(--teal); overflow: hidden; }
.arc-timer > i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: var(--mint); transform-origin: left center; }
.arc-timer.low > i { background: var(--coral); }
.arc-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--teal); color: var(--cream); font-family: var(--game); font-size: 17px; letter-spacing: .3px; white-space: nowrap; box-shadow: 0 3px 0 rgba(0, 0, 0, .2); }
.arc-pose { animation: arc-squash .38s var(--pop); }
.arc-fly { position: absolute; z-index: 29; pointer-events: none; margin: 0; }

/* ---------- toasts, banners, combo, hand ---------- */
.arc-toast { position: absolute; left: 50%; top: 24%; z-index: 33; pointer-events: none; white-space: nowrap; font-family: var(--game); font-size: clamp(34px, 8cqmin, 72px); color: var(--cream); -webkit-text-stroke: 7px var(--teal); paint-order: stroke fill; text-shadow: 0 6px 0 var(--teal); animation: arc-toast 1.3s ease forwards; }
.arc-toast.good { color: var(--sun); }
.arc-toast.bad { color: #FFD3C8; }
.arc-toast.mint { color: var(--mint); }
.arc-banner { position: absolute; left: 50%; top: 50%; z-index: 28; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 40px 20px; background: var(--teal); color: var(--cream); border-radius: 26px; border: 4px solid var(--cream); box-shadow: 0 10px 0 rgba(8, 42, 48, .5), 0 30px 60px rgba(0, 0, 0, .35); text-align: center; animation: arc-banner 1.6s cubic-bezier(.2, .9, .3, 1) forwards; max-width: calc(100% - 32px); }
.arc-banner b { font-family: var(--game); font-weight: 400; font-size: clamp(30px, 7cqmin, 56px); line-height: 1; color: var(--sun); white-space: nowrap; }
.arc-banner span { font-size: clamp(14px, 2.4cqmin, 19px); font-weight: 600; }
.arc-combo { position: absolute; right: 12px; top: 12px; z-index: 26; font-family: var(--game); font-size: 21px; padding: 7px 15px; border-radius: 999px; background: var(--coral); color: #fff; border: 3px solid var(--teal); box-shadow: 0 4px 0 var(--teal); transform: rotate(4deg); animation: arc-pop .3s ease; pointer-events: none; white-space: nowrap; }
.arc-hand { position: absolute; z-index: 27; width: 64px; height: 64px; margin: -6px 0 0 -18px; pointer-events: none; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .3)); animation: arc-hand 1s ease-in-out infinite; }

/* ---------- results ---------- */
.arc-results { background: rgba(8, 42, 48, .66); overflow-y: auto; padding: 118px 16px 28px; align-items: flex-start; -webkit-overflow-scrolling: touch; }
.arc-res-card { position: relative; width: min(100%, 580px); margin: auto; padding: 94px 26px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; animation: arc-in-up .55s var(--pop); }
.arc-res-char { position: absolute; top: -108px; left: 50%; width: 196px; height: 196px; object-fit: contain; transform: translateX(-50%); filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .25)); }
.arc-res-title { margin: 0; font-family: var(--game); font-weight: 400; font-size: clamp(36px, 7vw, 54px); line-height: 1; color: var(--teal); }
.arc-res-line { margin: 0; font-size: 17px; line-height: 1.45; font-weight: 500; color: var(--ink-2); max-width: 46ch; }
.arc-stars { display: flex; align-items: flex-end; justify-content: center; gap: 10px; min-height: 76px; }
.arc-star { width: 58px; height: 58px; opacity: .25; transform: scale(.72); filter: grayscale(1); }
.arc-star.mid { width: 76px; height: 76px; }
.arc-star.on { opacity: 1; filter: none; animation: arc-star-pop .6s var(--pop) forwards; }
.arc-res-rows { width: 100%; background: var(--paper); border-radius: 18px; border: 2px solid var(--line); padding: 2px 16px; }
.arc-res-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-2); text-align: left; }
.arc-res-row:last-child { border-bottom: 0; }
.arc-res-row b { font-family: var(--num); font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: var(--teal); white-space: nowrap; }
.arc-new { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 999px; background: var(--sun); color: var(--teal); font-family: var(--game); font-size: 17px; border: 3px solid var(--teal); box-shadow: 0 3px 0 var(--teal); animation: arc-pulse 1.4s ease-in-out infinite; }
.arc-res-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 2px; }
.arc-book { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 10px 14px; border-radius: 18px; background: var(--sky-50); border: 2px solid #CDE9F1; }
.arc-book-title { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.arc-book-title b { color: var(--teal); }
.arc-book-row { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.arc-sticker { position: relative; width: 52px; height: 52px; border-radius: 50%; background: #fff; border: 3px solid var(--teal); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; text-decoration: none; }
.arc-sticker img { width: 120%; height: 120%; object-fit: cover; object-position: 50% 12%; }
.arc-sticker.off { border-style: dashed; border-color: #9DB7BB; background: #EEF4F4; }
.arc-sticker.off img { filter: grayscale(1) brightness(1.7) contrast(.6); opacity: .55; }
.arc-sticker.new { animation: arc-star-pop .7s var(--pop) .9s both; box-shadow: 0 0 0 4px var(--sun); }
.arc-next { width: 100%; text-align: left; display: flex; flex-direction: column; gap: 8px; }
.arc-next-title { font-size: 14px; font-weight: 600; color: var(--ink-2); text-align: center; }
.arc-next-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.arc-lvl { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: 14px; background: var(--paper); border: 2px solid var(--line); font-size: 13px; color: var(--ink-2); line-height: 1.3; }
.arc-lvl b { font-family: var(--game); font-weight: 400; font-size: 15px; color: var(--teal); display: flex; align-items: center; gap: 5px; }
.arc-lvl.done { background: var(--mint-50); border-color: #BDEBDD; }
.arc-cta { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 16px 18px; border-radius: 18px; background: var(--teal); color: var(--cream); }
.arc-cta p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--on-dark-2); }
.arc-cta p b { color: var(--cream); }

/* ---------- who's playing chip ---------- */
.arc-player { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; max-width: 230px; padding: 3px 12px 3px 4px; border-radius: 999px; border: 3px solid var(--teal); background: var(--cream); color: var(--teal); font-weight: 700; font-size: 15px; cursor: pointer; box-shadow: 0 4px 0 var(--teal); }
.arc-player img { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; object-position: 50% 14%; background: #fff; border: 2px solid var(--teal); }
.arc-player span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arc-player svg { flex: 0 0 auto; }
.arc-player:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--teal); }
.arc-link { color: var(--teal); font-weight: 600; font-size: 14px; }
.arc-mini-stars { display: inline-flex; gap: 1px; vertical-align: middle; }
.arc-mini-stars i { display: inline-flex; color: rgba(14, 59, 67, .22); }
.arc-mini-stars i.on { color: var(--sun); filter: drop-shadow(0 1px 0 var(--teal)); }
.arc-mini-stars svg { width: 16px; height: 16px; }
.arc-mini-stars.big svg { width: 22px; height: 22px; }

/* ---------- level map ---------- */
.arc-map { flex-direction: column; align-items: stretch; justify-content: flex-start; background: var(--teal-700); overflow: hidden; overflow: clip; }
.arc-map-bg { position: absolute; inset: -24px; background-size: cover; background-position: center; filter: blur(3px) brightness(.6) saturate(1.1); }
.arc-map-head { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 12px 16px 4px; }
.arc-map-title { margin: 0; flex: 1 1 auto; min-width: 0; font-family: var(--game); font-weight: 400; font-size: clamp(24px, 4.6cqmin, 40px); line-height: 1; color: var(--cream); -webkit-text-stroke: 5px var(--teal-900); paint-order: stroke fill; text-shadow: 0 4px 0 rgba(0, 0, 0, .25); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arc-map-scroll { position: relative; z-index: 1; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.arc-map-scroll.vert { overflow-y: auto; -webkit-overflow-scrolling: touch; }
/* the levels are colourful tiles in a grid; arcade.js (layoutMap) sets --cols, --rowh and --gap */
.arc-map-path { position: relative; width: 100%; box-sizing: border-box; display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); grid-auto-rows: var(--rowh, 110px); gap: var(--gap, 12px); align-content: center; padding: var(--padt, 26px) 16px var(--padb, 14px); }
.arc-node { position: relative; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; align-items: center; column-gap: 9px; padding: 7px 10px 7px 9px; border-radius: 16px; border: 4px solid var(--teal-900); background: var(--c, var(--sun)) linear-gradient(180deg, rgba(255, 255, 255, .38), rgba(255, 255, 255, 0) 58%); color: var(--teal-900); font-family: var(--body); text-align: left; cursor: pointer; box-shadow: 0 6px 0 var(--d, var(--teal-900)); transition: transform .16s var(--pop), filter .16s ease, box-shadow .16s ease; z-index: 1; -webkit-tap-highlight-color: transparent; }
.arc-node:hover { transform: translateY(-3px); filter: brightness(1.06); }
.arc-node .flash { position: absolute; inset: 0; border-radius: 11px; background: #fff; opacity: 0; pointer-events: none; }
.arc-node .num { grid-row: 1 / span 2; font-family: var(--game); font-size: min(calc(var(--rowh, 110px) * .5), calc(var(--colw, 160px) * .36)); line-height: 1; color: var(--cream); -webkit-text-stroke: 5px var(--teal-900); paint-order: stroke fill; text-shadow: 0 3px 0 rgba(0, 0, 0, .22); padding: 0 2px; }
.arc-node .ttl { align-self: end; font-weight: 700; font-size: clamp(12px, calc(var(--rowh, 110px) * .135), 16px); line-height: 1.15; overflow: hidden; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.arc-node .foot { align-self: start; margin-top: 3px; display: flex; align-items: center; gap: 4px; font-weight: 700; font-size: 12px; line-height: 1.2; white-space: nowrap; }
.arc-node .foot svg { width: 14px; height: 14px; flex: none; }
.arc-node .arc-mini-stars { background: var(--cream); border-radius: 999px; padding: 1px 5px; border: 2px solid var(--teal-900); }
.arc-node.locked { filter: saturate(.3) brightness(.93); }
.arc-node.soon { filter: saturate(.62) opacity(.82); border-style: dashed; box-shadow: none; }
.arc-node.member .foot { color: var(--teal-900); }
/* the picked tile lights up */
.arc-node.sel { z-index: 2; transform: translateY(-4px) scale(1.045); filter: brightness(1.12) saturate(1.25); box-shadow: 0 10px 0 var(--d, var(--teal-900)), 0 0 0 4px #fff, 0 0 26px 12px var(--c, var(--sun)); animation: arc-tile-glow 1.5s ease-in-out infinite; }
.arc-node.locked.sel { filter: saturate(.45) brightness(1.02); }
.arc-node.soon.sel { filter: saturate(.75) opacity(.95); box-shadow: 0 0 0 4px #fff, 0 0 18px 6px var(--c, var(--sun)); }
.arc-node.lit .flash { animation: arc-tile-flash .55s ease-out; }
.arc-map-path.tiny .arc-node { grid-template-columns: auto; justify-items: center; text-align: center; padding: 4px 6px; }
.arc-map-path.tiny .arc-node .ttl { display: none; }
.arc-map-path.tiny .arc-node .num { grid-row: auto; font-size: calc(var(--rowh, 70px) * .52); align-self: end; }
.arc-map-path.tiny .arc-node .foot { font-size: 11px; margin-top: 0; }
.arc-map-me { position: absolute; z-index: 3; right: -8px; top: -24px; width: clamp(38px, calc(var(--rowh, 110px) * .5), 62px); height: clamp(38px, calc(var(--rowh, 110px) * .5), 62px); object-fit: contain; filter: drop-shadow(0 5px 5px rgba(0, 0, 0, .35)); animation: arc-bob 1.6s ease-in-out infinite; pointer-events: none; }
@keyframes arc-tile-glow { 0%, 100% { box-shadow: 0 10px 0 var(--d, var(--teal-900)), 0 0 0 4px #fff, 0 0 22px 8px var(--c, var(--sun)); } 50% { box-shadow: 0 10px 0 var(--d, var(--teal-900)), 0 0 0 4px #fff, 0 0 34px 16px var(--c, var(--sun)); } }
@keyframes arc-tile-flash { 0% { opacity: .9; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .arc-node.sel, .arc-node.lit .flash, .arc-map-me { animation: none; } }
.arc-map-card { position: relative; z-index: 2; margin: 6px 16px 16px; padding: 12px 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; animation: arc-in-up .35s var(--pop); }
.arc-map-card h3 { margin: 2px 0 4px; font-family: var(--game); font-weight: 400; font-size: clamp(20px, 3.4cqmin, 28px); line-height: 1.05; color: var(--teal); }
.arc-card-text { min-width: 0; flex: 1 1 240px; }
.arc-card-meta { margin: 0; font-size: 15px; line-height: 1.4; color: var(--ink-2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.arc-card-act { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.arc-map-card.member { background: #EAF4F3; }
.arc-map-card.soon, .arc-map-card.locked { background: #F2F5F4; }
@container stage (max-width: 560px) {
  .arc-map-head { gap: 6px; padding: 8px 10px 0; }
  .arc-map-head .arc-chip { display: none; }
  .arc-map-head .arc-player span, .arc-map-head .arc-player svg { display: none; }
  .arc-map-head .arc-player { padding: 3px; }
  .arc-map-head .arc-pill { padding: 0 12px; }
  .arc-map-title { font-size: 24px; }
  .arc-map-card { margin: 4px 10px 10px; padding: 10px 12px; }
  .arc-card-act .arc-btn { width: 100%; }
}
@container stage (max-height: 520px) {
  .arc-map-head { padding: 6px 12px 0; }
  .arc-map-title { font-size: 22px; }
  .arc-map-card { margin: 2px 12px 8px; padding: 6px 12px; }
  .arc-map-card h3 { font-size: 18px; margin: 0; }
  .arc-card-meta { font-size: 13px; }
  .arc-map-card .arc-btn { min-height: 46px; font-size: 19px; padding: 0 18px; }
}

/* ---------- who's playing? ---------- */
.arc-players { z-index: 34; background: rgba(8, 42, 48, .74); padding: 16px; overflow-y: auto; align-items: flex-start; }
.arc-players-card { width: min(100%, 640px); margin: auto; padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 14px; animation: arc-in-up .4s var(--pop); }
.arc-players-title { margin: 0; text-align: center; font-family: var(--game); font-weight: 400; font-size: clamp(28px, 5cqmin, 40px); color: var(--teal); }
.arc-players-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 12px; }
.arc-pcard { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px 10px; border-radius: 18px; border: 3px solid var(--teal); background: #fff; color: var(--teal); cursor: pointer; box-shadow: 0 5px 0 var(--teal); transition: transform .12s ease; }
.arc-pcard:hover { transform: translateY(-3px); }
.arc-pcard img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; object-position: 50% 14%; background: var(--sky-50); border: 3px solid var(--teal); }
.arc-pcard b { font-family: var(--game); font-weight: 400; font-size: 20px; line-height: 1.1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arc-pcard span { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.arc-pcard span svg { width: 14px; height: 14px; color: var(--sun-600); }
.arc-pcard.on { background: var(--sun-50); box-shadow: 0 0 0 4px var(--sun), 0 5px 0 var(--teal); }
.arc-pcard.add { border-style: dashed; background: var(--cream); }
.arc-pcard .plus { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-family: var(--game); font-size: 44px; color: var(--teal); background: var(--mint-50); border: 3px dashed var(--teal); }
.arc-add { display: flex; flex-direction: column; gap: 12px; }
.arc-field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; font-weight: 600; font-size: 15px; color: var(--ink-2); min-width: 0; }
.arc-field legend { padding: 0; margin-bottom: 6px; }
.arc-field input[name="name"], .arc-field select { min-height: 48px; padding: 0 14px; border-radius: 14px; border: 3px solid var(--teal); font: 600 18px var(--body); color: var(--teal); background: #fff; width: 100%; }
.arc-avatars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.arc-avatars label { position: relative; cursor: pointer; }
.arc-avatars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.arc-avatars img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 14%; border-radius: 50%; border: 3px solid #C9D5D4; background: #fff; }
.arc-avatars input:checked + img { border-color: var(--teal); box-shadow: 0 0 0 4px var(--sun); }
.arc-avatars input:focus-visible + img { outline: 4px solid var(--sun); outline-offset: 3px; }
.arc-add-actions, .arc-players-foot { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* ---------- results extras ---------- */
.arc-res-note { margin: 0; font-size: 15px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; text-align: center; }
.arc-res-note a { color: var(--teal); font-weight: 700; }
.arc-res-links { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.arc-res-links .arc-pill { text-decoration: none; }
.arc-res-actions .arc-btn svg { margin-left: 2px; }
.arc-lvl small { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--muted); }
.arc-lvl.open, .arc-lvl.done { background: var(--mint-50); border-color: #BDEBDD; }
.arc-lvl.member { background: #EAF4F3; border-color: #CFE6E3; }
.arc-lvl b svg { width: 14px; height: 14px; }

/* ---------- living characters ----------
   Every guide character breathes and sways. A.pose() adds a move on top: a bounce for a cheer,
   a wobble for an oops, a hop for a jump, then the breathing carries on. */
.arc-live, .cc-moss, .bb-dot, .kc-rev, .kc-cog, .si-tilly, .sc-orla, .mm-penny { transform-origin: 50% 100%; animation: arc-idle 3.4s ease-in-out infinite; }
.kc-cog { animation-duration: 4.1s; animation-delay: -1.3s; }
.arc-p-squash { animation: arc-squash .38s var(--pop), arc-idle 3.4s ease-in-out .38s infinite !important; }
.arc-p-cheer { animation: arc-cheer .95s ease-out, arc-idle 3.4s ease-in-out .95s infinite !important; }
.arc-p-oops { animation: arc-oops .8s ease-out, arc-idle 3.4s ease-in-out .8s infinite !important; }
.arc-p-hop { animation: arc-hop .55s ease-out, arc-idle 3.4s ease-in-out .55s infinite !important; }
@keyframes arc-idle { 0%, 100% { transform: scale(1) rotate(0); } 25% { transform: scale(1.012, .988) rotate(-1.1deg); } 50% { transform: scale(.985, 1.032) rotate(0); } 75% { transform: scale(1.01, .99) rotate(1.1deg); } }
@keyframes arc-cheer { 0% { transform: scale(1.14, .84); } 22% { transform: translateY(-17%) scale(.93, 1.09) rotate(-5deg); } 42% { transform: translateY(0) scale(1.1, .9); } 62% { transform: translateY(-10%) scale(.96, 1.05) rotate(5deg); } 82% { transform: translateY(0) scale(1.05, .95); } 100% { transform: none; } }
@keyframes arc-oops { 0% { transform: none; } 14% { transform: translateX(-5%) rotate(-6deg); } 30% { transform: translateX(5%) rotate(5deg); } 46% { transform: translateX(-3%) rotate(-3deg); } 64% { transform: scale(1.05, .93); } 100% { transform: none; } }
@keyframes arc-hop { 0% { transform: scale(1.12, .86); } 38% { transform: translateY(-13%) scale(.94, 1.08); } 72% { transform: translateY(0) scale(1.07, .93); } 100% { transform: none; } }

/* ---------- drifting specks over the background ---------- */
.arc-amb { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.arc-amb i { position: absolute; width: calc(6px * var(--s)); height: calc(6px * var(--s)); border-radius: 50%; opacity: 0; background: rgba(255, 255, 255, .85); animation: arc-mote var(--d) ease-in-out var(--dl) infinite; }
.arc-amb.fireflies i { background: #FFF2A8; box-shadow: 0 0 10px 4px rgba(255, 226, 110, .75); animation-name: arc-fly; }
.arc-amb.stars i { width: calc(3.5px * var(--s)); height: calc(3.5px * var(--s)); box-shadow: 0 0 8px 2px rgba(255, 255, 255, .8); animation-name: arc-twinkle; animation-duration: calc(var(--d) * .4); }
.arc-amb.dust i { width: calc(18px * var(--s)); height: calc(5px * var(--s)); background: rgba(255, 226, 190, .6); filter: blur(1.5px); animation-name: arc-dust; animation-timing-function: linear; animation-duration: calc(var(--d) * .55); }
.arc-amb.spray i { background: rgba(255, 255, 255, .9); filter: blur(.6px); animation-name: arc-spray; animation-duration: calc(var(--d) * .5); }
.arc-amb.petals i { width: calc(9px * var(--s)); height: calc(6px * var(--s)); border-radius: 60% 40% 60% 40%; background: #FFF6E5; animation-name: arc-petal; animation-timing-function: linear; }
.arc-amb.petals i:nth-child(3n) { background: #FFD3DC; } .arc-amb.petals i:nth-child(3n+1) { background: #FFE9A8; }
@keyframes arc-mote { 0% { opacity: 0; transform: translate(0, 0); } 30% { opacity: .7; } 70% { opacity: .5; } 100% { opacity: 0; transform: translate(var(--x), var(--y)); } }
@keyframes arc-fly { 0% { opacity: 0; transform: translate(0, 0); } 15% { opacity: 1; } 35% { transform: translate(calc(var(--x) * .6), calc(var(--y) * -.4)); opacity: .4; } 55% { opacity: 1; } 75% { transform: translate(calc(var(--x) * -.3), var(--y)); opacity: .9; } 100% { opacity: 0; transform: translate(var(--x), calc(var(--y) * .5)); } }
@keyframes arc-twinkle { 0%, 100% { opacity: .15; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.25); } }
@keyframes arc-dust { 0% { opacity: 0; transform: translateX(40vw); } 20% { opacity: .8; } 80% { opacity: .6; } 100% { opacity: 0; transform: translateX(-60vw) translateY(var(--y)); } }
@keyframes arc-spray { 0% { opacity: 0; transform: translate(0, 20px) scale(.6); } 25% { opacity: .9; } 100% { opacity: 0; transform: translate(var(--x), -90px) scale(1.2); } }
@keyframes arc-petal { 0% { opacity: 0; transform: translate(0, -30px) rotate(0); } 15% { opacity: .9; } 85% { opacity: .8; } 100% { opacity: 0; transform: translate(calc(var(--x) * 3), 220px) rotate(540deg); } }

/* ---------- keyframes ---------- */
@keyframes arc-kenburns { from { transform: scale(1); } to { transform: scale(1.06) translate(-1%, -.8%); } }
@keyframes arc-float { 50% { transform: translateY(-12px) rotate(-2deg); } }
@keyframes arc-pulse { 50% { transform: scale(1.05); } }
@keyframes arc-bump { 50% { transform: scale(1.22); } }
@keyframes arc-pop { 0% { transform: scale(.6); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes arc-say-pop { 0% { transform: scale(.85); opacity: .4; } 100% { transform: scale(1); opacity: 1; } }
@keyframes arc-squash { 0% { transform: scale(1.14, .86); } 55% { transform: scale(.94, 1.07); } 100% { transform: scale(1); } }
@keyframes arc-shake-x { 15%, 55% { transform: translateX(-10px) rotate(-2deg); } 35%, 75% { transform: translateX(10px) rotate(2deg); } }
@keyframes arc-shake { 10% { transform: translate(-7px, 4px); } 25% { transform: translate(6px, -5px); } 40% { transform: translate(-5px, -3px); } 55% { transform: translate(5px, 4px); } 70% { transform: translate(-3px, 2px); } 85% { transform: translate(2px, -2px); } }
@keyframes arc-shake-big { 8% { transform: translate(-14px, 8px) rotate(-.6deg); } 20% { transform: translate(12px, -10px) rotate(.5deg); } 34% { transform: translate(-10px, -6px); } 48% { transform: translate(9px, 8px); } 62% { transform: translate(-6px, 4px); } 76% { transform: translate(4px, -3px); } 90% { transform: translate(-2px, 1px); } }
@keyframes arc-toast { 0% { opacity: 0; transform: translate(-50%, 24px) scale(.55); } 18% { opacity: 1; transform: translate(-50%, 0) scale(1.1); } 32% { transform: translate(-50%, 0) scale(1); } 78% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -34px) scale(1); } }
@keyframes arc-banner { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.5) rotate(-6deg); } 16% { opacity: 1; transform: translate(-50%, -50%) scale(1.06) rotate(1deg); } 26% { transform: translate(-50%, -50%) scale(1) rotate(0); } 82% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(.9); } }
@keyframes arc-flash { 0% { opacity: .8; } 100% { opacity: 0; } }
@keyframes arc-star-pop { 0% { opacity: 0; transform: scale(.2) rotate(-40deg); } 100% { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes arc-wobble { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-7deg); } 75% { transform: rotate(7deg); } }
@keyframes arc-in-up { from { opacity: 0; transform: translateY(40px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes arc-in-right { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: none; } }
@keyframes arc-fade-out { to { opacity: 0; transform: scale(1.03); } }
@keyframes arc-bob { 50% { transform: translateY(-6px); } }
@keyframes arc-hand { 0%, 100% { transform: translate(0, 0) rotate(-12deg); } 50% { transform: translate(6px, 10px) rotate(-12deg) scale(.92); } }

@media (prefers-reduced-motion: reduce) {
  .arc-bg, .arc-hero, .arc-btn.big, .arc-new, .arc-hand, .arc-amb i { animation: none !important; }
  .arc-live, .cc-moss, .bb-dot, .kc-rev, .kc-cog, .si-tilly, .sc-orla, .mm-penny, .arc-p-squash, .arc-p-cheer, .arc-p-oops, .arc-p-hop { animation: none !important; }
  .arc-stage.shake .arc-world, .arc-stage.shake .arc-bg, .arc-stage.shake-big .arc-world, .arc-stage.shake-big .arc-bg { animation: none !important; }
}

/* ---------- per-game panel texture ----------
   A game sets --panel-tex on .arc (see its index.html). The pale wash keeps the writing easy to read. */
.arc-panel, .arc-say:not(.good):not(.bad), .arc-card:not(.right):not(.wrong) { background-image: linear-gradient(rgba(255, 250, 240, .52), rgba(255, 250, 240, .52)), var(--panel-tex, none); background-size: cover; background-position: center; }

/* ---------- the characters explain the game (cfg.intro) ---------- */
.arc-talk { z-index: 40; background: rgba(8, 42, 48, .74); padding: 14px; }
.arc-talk-inner { display: flex; align-items: flex-end; justify-content: center; gap: clamp(6px, 2cqw, 22px); width: min(900px, 100%); }
.arc-talk-char { flex: none; width: clamp(120px, 30cqw, 300px); max-height: 72cqh; object-fit: contain; transform-origin: 50% 100%; filter: drop-shadow(0 8px 0 rgba(8, 42, 48, .45)); }
.arc-talk-char.talking { animation: arc-talk-bob .52s ease-in-out infinite; }
@keyframes arc-talk-bob { 0%, 100% { transform: translateY(0) scale(1, 1); } 50% { transform: translateY(-5px) scale(1.03, .97); } }
.arc-talk-box { position: relative; flex: 1 1 auto; min-width: 0; background: var(--cream); border: 4px solid var(--teal); border-radius: 24px; box-shadow: 0 7px 0 var(--teal); padding: 30px 20px 16px; margin-bottom: 10px; }
.arc-talk-who { position: absolute; top: -20px; left: 18px; padding: 5px 18px 6px; border-radius: 999px; border: 3px solid var(--teal); background: var(--sun); color: var(--teal); font-family: var(--game); font-size: 21px; line-height: 1; white-space: nowrap; }
.arc-talk-text { margin: 0 0 14px; color: var(--ink); font-size: clamp(17px, 2.3cqw, 23px); line-height: 1.45; font-weight: 500; }
.arc-talk-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.arc-talk-dots { display: flex; gap: 6px; margin-right: auto; }
.arc-talk-dots i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--teal); background: var(--paper); }
.arc-talk-dots i.on { background: var(--mint); }
.arc-talk-foot .arc-pill svg { width: 18px; height: 18px; }
.arc-talk [data-act="talk-next"].ready { background: var(--mint); animation: arc-pulse 1.4s ease-in-out infinite; }
@container stage (max-width: 620px) {
  .arc-talk-inner { flex-direction: column; align-items: center; gap: 0; }
  .arc-talk-char { width: clamp(110px, 44cqw, 210px); max-height: 32cqh; margin-bottom: -4px; }
  .arc-talk-box { width: 100%; padding: 28px 14px 14px; }
  .arc-talk-foot { gap: 8px; }
  .arc-talk-foot .arc-pill { padding: 0 12px; }
}
@container stage (max-height: 430px) and (min-width: 621px) {
  .arc-talk { padding: 8px 12px; }
  .arc-talk-char { width: clamp(90px, 24cqw, 190px); max-height: 84cqh; }
  .arc-talk-box { padding: 24px 14px 10px; margin-bottom: 6px; }
  .arc-talk-who { top: -17px; font-size: 18px; }
  .arc-talk-text { font-size: 16px; line-height: 1.38; margin-bottom: 8px; }
  .arc-talk-foot .arc-pill { min-height: 38px; font-size: 14px; }
  .arc-talk-foot .arc-btn.small { min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .arc-talk-char.talking, .arc-talk [data-act="talk-next"].ready { animation: none; } }

/* ----- words of encouragement (arcade.js Voice.cheer) ----- */
.arc-cheer { position: absolute; z-index: 60; left: 50%; top: 13%; transform: translateX(-50%); max-width: 86%; padding: .35em .9em; border-radius: 999px; background: #FFC83D; color: #0E3B43; font-family: 'Lilita One', 'Arial Rounded MT Bold', sans-serif; font-size: clamp(20px, 3.4cqw, 40px); line-height: 1.15; text-align: center; white-space: nowrap; box-shadow: 0 5px 0 #F0B21E, 0 12px 26px rgba(8, 42, 48, .35); pointer-events: none; animation: arc-cheer-in 1.9s cubic-bezier(.2, 1.4, .4, 1) both; }
.arc-cheer.oops { background: #fff; box-shadow: 0 5px 0 #C9D4D0, 0 12px 26px rgba(8, 42, 48, .35); font-size: clamp(17px, 2.7cqw, 30px); }
@keyframes arc-cheer-in { 0% { opacity: 0; transform: translateX(-50%) scale(.5) rotate(-4deg); } 12% { opacity: 1; transform: translateX(-50%) scale(1.08) rotate(2deg); } 20%, 80% { opacity: 1; transform: translateX(-50%) scale(1) rotate(0); } 100% { opacity: 0; transform: translateX(-50%) translateY(-18px) scale(.96); } }
@media (max-width: 520px) { .arc-cheer { white-space: normal; } }

/* ----- score screen: fits the window without scrolling on short screens (laptops, zoomed browsers, phones on their side) ----- */
@media (max-height: 900px) {
  .arc-results { padding: 86px 16px 14px; }
  .arc-res-card { padding: 66px 22px 16px; gap: 8px; }
  .arc-res-char { width: 150px; height: 150px; top: -84px; }
  .arc-res-title { font-size: clamp(30px, 5vw, 42px); }
  .arc-res-line { font-size: 15.5px; line-height: 1.35; }
  .arc-stars { min-height: 54px; gap: 8px; }
  .arc-star { width: 42px; height: 42px; }
  .arc-star.mid { width: 54px; height: 54px; }
  .arc-res-row { min-height: 34px; font-size: 14px; }
  .arc-res-row b { font-size: 17px; }
  .arc-res-actions .arc-btn { min-height: 50px; }
  .arc-res-note { font-size: 14px; }
}
@media (max-height: 900px) and (min-width: 620px) {
  .arc-res-card { width: min(100%, 680px); }
  .arc-res-rows { display: grid; grid-template-columns: 1fr 1fr; column-gap: 22px; }
  .arc-res-row:nth-last-child(-n+2) { border-bottom: 0; }
  .arc-res-row:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-height: 640px) {
  .arc-results { padding: 58px 12px 8px; }
  .arc-res-card { padding: 44px 18px 12px; gap: 6px; }
  .arc-res-char { width: 104px; height: 104px; top: -58px; }
  .arc-res-title { font-size: 30px; }
  .arc-stars { min-height: 42px; }
  .arc-star { width: 34px; height: 34px; }
  .arc-star.mid { width: 42px; height: 42px; }
  .arc-res-row { min-height: 29px; }
  .arc-res-actions .arc-btn { min-height: 44px; font-size: 20px; }
  .arc-res-links .arc-pill { min-height: 34px; }
}