/* "Päikeseloojang" theme (theme.js). Fonts: Anton, Barlow Condensed (SIL Open Font License), Yellowtail (Apache 2.0) —
   loaded only when the theme is on, because only then does anything use them. */
@font-face { font-family: 'Anton'; src: url(/fonts/sunset/anton.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; src: url(/fonts/sunset/barlow-c-600.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; font-weight: 800; font-style: italic; src: url(/fonts/sunset/barlow-c-800i.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Yellowtail'; src: url(/fonts/sunset/yellowtail.woff2) format('woff2'); font-display: swap; }

:root:is(.theme-sunset, .look-sunset) {
  --bg: #120a1f; --bg2: rgba(255, 255, 255, .07); --card: rgba(18, 9, 32, .78); --line: rgba(255, 255, 255, .16); --text: #fff8f2; --muted: #f0d3cf;
  --green: #3fe0d0; --green-d: #1fa99c; --blue: #ff3d8b; --blue-d: #c21d64; --gold: #ffd166; --gold-d: #e0a43a; --orange: #ff9a3c; --purple: #b98cff;
  --red: #ff5c70; --red-d: #d63a50;
  --ok-bg: rgba(63, 224, 208, .18); --ok-text: #7af0e3; --bad-bg: rgba(255, 92, 112, .2); --bad-text: #ff9aa8;
  --cond: 'Barlow Condensed', 'Arial Narrow', sans-serif; --display: 'Anton', Impact, sans-serif;
  color-scheme: dark;
}
:is(.theme-sunset, .look-sunset) body { background: #0a1640; }
/* the picture: a still gradient until it is painted (or with reduced motion) */
.sunset-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.sunset-bg .vc-canvas { position: absolute; inset: 0; width: 100vw; height: 100vh; height: 100lvh; display: block;
  background: linear-gradient(180deg, #081a44 0%, #1b2f72 14%, #4b3f96 27%, #a54a93 39%, #ee6474 49%, #ff9a5e 58%, #ffd08c 64%, #5b3566 64.2%, #22163f 76%, #0b0920 100%); }
.sunset-scrim { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, rgba(6, 3, 18, .25) 0%, rgba(6, 3, 18, .55) 100%); }
:is(.theme-sunset, .look-sunset) main { position: relative; }

/* header and menu: dark glass */
:is(.theme-sunset, .look-sunset) .top { background: rgba(10, 5, 20, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom-color: rgba(255, 255, 255, .14); }
:is(.theme-sunset, .look-sunset) .logo { font-family: 'Yellowtail', cursive; font-weight: 400; font-size: 32px; color: #fff3f9; letter-spacing: 0;
  text-shadow: 0 0 6px #ff3d8b, 0 0 18px #ff3d8b, 0 0 32px rgba(255, 154, 60, .7); }
:is(.theme-sunset, .look-sunset) .nav a { font-family: var(--cond); font-weight: 600; letter-spacing: .14em; color: #f3dcd6; }
:is(.theme-sunset, .look-sunset) .nav a.on { color: #fff; background: linear-gradient(90deg, rgba(255, 61, 139, .35), rgba(255, 154, 60, .3)); border-color: rgba(255, 255, 255, .35); }
@media (max-width: 760px) { :is(.theme-sunset, .look-sunset) .nav { background: rgba(10, 5, 20, .85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); } }

/* headings: condensed italic capitals with a sunset fill */
:is(.theme-sunset, .look-sunset) h1 { font-family: var(--cond); font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .01em; font-size: 2.3em;
  background: linear-gradient(180deg, #ffe08a 10%, #ff9a3c 50%, #ff3d8b 92%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .45)); }
:is(.theme-sunset, .look-sunset) h2, :is(.theme-sunset, .look-sunset) .sec-head h2 { font-family: var(--display); font-weight: 400; letter-spacing: .04em; text-transform: uppercase; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
:is(.theme-sunset, .look-sunset) h3 { color: #fff; }
:is(.theme-sunset, .look-sunset) .es-sub { color: #3fe0d0; }

/* cards: dark glass so the picture shows round them */
:is(.theme-sunset, .look-sunset) .card, :is(.theme-sunset, .look-sunset) .unit, :is(.theme-sunset, .look-sunset) .feedback, :is(.theme-sunset, .look-sunset) .continue-card, :is(.theme-sunset, .look-sunset) .stat, :is(.theme-sunset, .look-sunset) .choice, :is(.theme-sunset, .look-sunset) .tile, :is(.theme-sunset, .look-sunset) .field, :is(.theme-sunset, .look-sunset) .answer-input {
  background-color: var(--card); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
:is(.theme-sunset, .look-sunset) .card { border-color: rgba(255, 255, 255, .16); }
:is(.theme-sunset, .look-sunset) .feedback.ok { background: rgba(20, 70, 66, .92); } :is(.theme-sunset, .look-sunset) .feedback.bad { background: rgba(80, 18, 36, .92); }
:is(.theme-sunset, .look-sunset) .unit-jump { background: rgba(10, 5, 20, .7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 14px; }

/* buttons: hot pink to orange */
:is(.theme-sunset, .look-sunset) .btn:not(.ghost):not(.red):not(.purple):not(.gold) { background: linear-gradient(90deg, #ff3d8b, #ff9a3c); box-shadow: 0 4px 0 #a01e55, 0 0 18px rgba(255, 61, 139, .35); color: #fff; }
:is(.theme-sunset, .look-sunset) .btn.ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
:is(.theme-sunset, .look-sunset) .node.next { box-shadow: 0 0 0 4px rgba(63, 224, 208, .35), 0 0 30px rgba(255, 61, 139, .6); }
:is(.theme-sunset, .look-sunset) .continue-card { border-color: #ff3d8b; box-shadow: 0 4px 0 #a01e55, 0 0 24px rgba(255, 61, 139, .3); }
:is(.theme-sunset, .look-sunset) .myplace { background: linear-gradient(90deg, #ff3d8b, #ff9a3c); box-shadow: 0 4px 0 #a01e55, 0 6px 18px rgba(0, 0, 0, .4); }
:is(.theme-sunset, .look-sunset) .player-top .bar > div { background: linear-gradient(90deg, #3fe0d0, #ff3d8b, #ff9a3c); }
@media (prefers-reduced-transparency: reduce) { :is(.theme-sunset, .look-sunset) .card, :is(.theme-sunset, .look-sunset) .top { backdrop-filter: none; background-color: #160c27; } }
:is(.theme-sunset, .look-sunset) .btn .es-sub { color: rgba(255, 255, 255, .85); }
:is(.theme-sunset, .look-sunset) .sec-head { background: linear-gradient(90deg, #ff3d8b, #ff9a3c) !important; box-shadow: 0 4px 0 #a01e55, 0 0 22px rgba(255, 61, 139, .35) !important; }
:is(.theme-sunset, .look-sunset) .sec-head h2 { color: #fff; }
:is(.theme-sunset, .look-sunset) .node:not(.done):not(.next):not(.extra) { background: rgba(30, 18, 48, .9); }
:is(.theme-sunset, .look-sunset) .node-label { color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
:is(.theme-sunset, .look-sunset) .muted { color: var(--muted); }

/* ---------- the "Päikeseloojang" award: nametag and profile (works with any theme) ---------- */
.nt-sunset { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 2px 12px 3px 10px; border-radius: 999px; font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .03em; font-size: 1.08em; line-height: 1.25;
  color: #fff; background: linear-gradient(90deg, #2a0f4a 0%, #a54a93 38%, #ee6474 66%, #ff9a5e 100%); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .55) inset, 0 0 14px rgba(255, 61, 139, .55); text-shadow: 0 0 6px rgba(255, 61, 139, .9), 0 1px 2px rgba(0, 0, 0, .6); }
.nt-palm { width: 14px; height: 16px; flex: none; background: #ffe08a; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 28'%3E%3Cpath d='M12 9c-1-4-6-6-10-4 3 0 6 1 8 4-4-1-8 1-9 5 3-3 6-3 9-2-2 3-2 7 0 10 0-4 1-7 2-9l1 15h2L14 12c2 1 4 4 4 7 2-3 1-7-2-9 3-1 6 0 8 2-1-4-5-6-9-4 2-3 5-4 8-4-4-2-9 0-11 4z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 28'%3E%3Cpath d='M12 9c-1-4-6-6-10-4 3 0 6 1 8 4-4-1-8 1-9 5 3-3 6-3 9-2-2 3-2 7 0 10 0-4 1-7 2-9l1 15h2L14 12c2 1 4 4 4 7 2-3 1-7-2-9 3-1 6 0 8 2-1-4-5-6-9-4 2-3 5-4 8-4-4-2-9 0-11 4z'/%3E%3C/svg%3E") center / contain no-repeat; }
.ulink:has(.nt-sunset) { text-decoration: none; }
.uprof-card.uprof-sunset { border-color: #ff3d8b; box-shadow: 0 4px 0 #a01e55, 0 0 30px rgba(255, 61, 139, .35); }
.uprof-sunset h1 { font-family: 'Yellowtail', cursive; font-weight: 400; color: #fff3f9; text-shadow: 0 0 6px #ff3d8b, 0 0 18px #ff3d8b, 0 0 30px rgba(255, 154, 60, .7); }
.gift-screen { text-align: center; }
.gift-arts { display: flex; gap: 22px; justify-content: center; align-items: center; flex-wrap: wrap; min-height: 120px; margin-bottom: 10px; }
.gift-nt { font-size: 34px; }
.nt-demo { font-size: 14px; display: block; margin: 8px 0; }


/* leaderboard: a Sunset-award row shows a live strip of the scene */
.sunset-bg.offstage { visibility: hidden; }
tr.lb-sunset > td { padding: 6px 0; }
.lb-sunbox { position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr) 84px; align-items: center; min-height: 64px; padding: 0 8px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, #4b3f96 0%, #a54a93 30%, #ee6474 55%, #ff9a5e 75%, #5b3566 76%, #22163f 100%); box-shadow: 0 0 0 2px #ff3d8b, 0 0 22px rgba(255, 61, 139, .45); }
.lb-scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lb-sunbox::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 3, 18, .55), rgba(6, 3, 18, .15) 55%, rgba(6, 3, 18, .5)); pointer-events: none; }
.lb-sunbox > :not(canvas) { position: relative; z-index: 1; }
.lb-sunbox .lb-xp, .lb-sunbox .lb-xp .muted { color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
.lb-sunbox .lb-rank { color: #fff; }
.lb-sunbox .nt-sunset { background: none; box-shadow: none; padding: 0; gap: 0; font-size: 1.35em; letter-spacing: .04em;
  text-shadow: 0 0 6px #ff3d8b, 0 0 16px rgba(255, 61, 139, .85), 0 2px 3px rgba(0, 0, 0, .8); }
.lb-sunbox .nt-sunset .nt-palm { display: none; }
