/* Wave 3 (SkillSafe additions): styles for the gap chip, the added buttons, end-screen lines and dialogs.
   Colours and type are the game's own (--gold, --jade, --ink, --serif from index.html). */
.ssk-root {
  --ssk-bg: #0e1726; --ssk-fg: #f6f1e2; --ssk-muted: #a9b7c4; --ssk-line: rgba(244, 213, 138, .3);
  --ssk-accent: #f4d58a; --ssk-accent-fg: #1a1408; --ssk-radius: 14px; --ssk-scrim: rgba(8, 14, 24, .7);
  --ssk-font: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}
.ssk-root .ssk-title { font-family: "Songti SC", "STSong", "Kaiti SC", "Noto Serif CJK SC", "SimSun", serif; color: #f4d58a; letter-spacing: .08em; }
.ssk-root .ssk-big { font-family: Georgia, serif; text-shadow: 0 0 18px rgba(125, 240, 210, .6); }
.ssk-root .ssk-list li.ssk-mine, .ssk-root .ssk-vs .ssk-win b { color: #7df0d2; }

.w3-opt { min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(244, 213, 138, .55); background: var(--ink); font-size: 14px; }
.w3-opt:hover, .w3-opt:focus-visible { border-color: var(--jade); outline: none; }
/* during a flight the two added buttons step aside (the author's quality and sound buttons stay) */
.w3-playing .opts .w3-opt { display: none; }
.w3-playing #ss-overlay { display: none !important; }

.w3-chip { position: absolute; right: 14px; top: calc(max(14px, env(safe-area-inset-top)) + 58px); padding: 8px 14px; border-radius: 14px; background: var(--ink);
  font: 13px/1.5 -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif; min-width: 170px; max-width: 46vw; }
.w3-chip[hidden] { display: none; }
.w3-chip-row { display: flex; justify-content: space-between; gap: 14px; }
.w3-chip-row .n { color: #c9d6df; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w3-chip-row .v { color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.w3-chip-row.ahead .v { color: var(--jade); }

.w3-done:empty { display: none; }
.w3-done { padding: 8px 16px; border-radius: 14px; background: var(--ink); margin: -14px 0 18px; max-width: min(620px, 92vw); font: 15px/1.5 -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif; }
.w3-line { margin: 4px 0; color: #fff; text-shadow: 0 1px 6px rgba(8, 14, 24, .9); }
.w3-line.dim { color: #c9d6df; }
.w3-line.hot { color: var(--jade); }
.w3-line.sq { white-space: pre-line; letter-spacing: .08em; line-height: 1.25; margin-top: 8px; }
.w3-done-row { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; justify-content: center; }
@media (max-height: 480px) { .w3-done { font-size: 12px; margin-bottom: 8px; } .w3-line.sq { display: none; } .w3-done-row { margin-top: 8px; } }
