:root {
  --bg: #f4f1ea;
  --panel: #ffffff;
  --ink: #1d2733;
  --muted: #6b7480;
  --line: #e4ddcf;
  --navy: #14324a;
  --accent: #1f7a8c;
  --ok: #2e9e5b;
  --near: #efa31d;
  --far: #dc5446;
  --start: #2563eb;
  --end: #8b3fd9;
  --ocean: #cde2ec;
  --land: #f1ebdd;
  --border: #b6ab96;
  --hint: #ff2f86;
  --radius: 12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  -webkit-tap-highlight-color: transparent;
}
button, input, select { font: inherit; color: inherit; }
.hidden { display: none !important; }

/* ---------- Yläpalkki ---------- */
.topbar {
  display: flex; align-items: center; gap: 18px;
  padding: 8px 18px;
  background: var(--navy); color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
  z-index: 5;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.3rem; letter-spacing: .3px; }
.brand .logo { font-size: 1.4rem; }
.tabs { display: flex; gap: 4px; background: rgba(255,255,255,.09); padding: 4px; border-radius: 12px; }
.tab {
  border: 0; background: transparent; color: #cfe0ea; padding: 7px 16px; border-radius: 9px;
  cursor: pointer; font-weight: 600;
}
.tab:hover { color: #fff; background: rgba(255,255,255,.08); }
.tab.active { background: #fff; color: var(--navy); }
.tab .flag { width: 18px; height: 11px; vertical-align: -1px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.top-actions { margin-left: auto; display: flex; gap: 6px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.06); color: #fff; cursor: pointer; font-weight: 800; font-size: 1rem;
}
.icon-btn:hover { background: rgba(255,255,255,.18); }

main { flex: 1; min-height: 0; position: relative; }
.view { height: 100%; }

/* ---------- Napit ja lomakkeet ---------- */
.btn {
  border: 1px solid var(--line); background: #fff; padding: 9px 14px; border-radius: 10px;
  cursor: pointer; font-weight: 600; white-space: nowrap;
  transition: background .15s, transform .05s, box-shadow .15s;
}
.btn:hover { background: #f6f3ec; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #18697a; }
.btn.ghost { background: transparent; color: var(--muted); }
.btn:disabled { opacity: .45; cursor: default; }
.btn small { font-weight: 500; opacity: .7; }
select {
  border: 1px solid var(--line); background: #fff; padding: 8px 10px; border-radius: 10px; cursor: pointer;
}

/* ---------- Reitti: asettelu ---------- */
.route-layout { display: flex; height: 100%; }
.map-wrap { position: relative; flex: 1; min-width: 0; background: #e3ecf1; overflow: hidden; }
#route-map { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; user-select: none; }
#route-map:active { cursor: grabbing; }

.map-controls {
  position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px;
}
.map-controls button {
  width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255,255,255,.95);
  font-size: 1.15rem; font-weight: 700; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.map-controls button:hover { background: #fff; }
.legend {
  position: absolute; left: 12px; bottom: 12px; display: flex; flex-wrap: wrap; gap: 4px 12px;
  background: rgba(255,255,255,.9); padding: 7px 11px; border-radius: 10px; font-size: .8rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.1); max-width: calc(100% - 24px);
}
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.sw.start { background: var(--start); } .sw.end { background: var(--end); }
.sw.ok { background: var(--ok); } .sw.near { background: var(--near); } .sw.far { background: var(--far); }
.tooltip {
  position: absolute; pointer-events: none; background: var(--navy); color: #fff; padding: 4px 9px;
  border-radius: 7px; font-size: .85rem; font-weight: 600; white-space: nowrap; opacity: 0;
  transform: translate(-50%, -140%); transition: opacity .1s;
}
.tooltip.show { opacity: 1; }

.panel {
  width: 370px; background: var(--panel); border-left: 1px solid var(--line);
  padding: 16px 18px 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px;
}
/* osat eivät saa kutistua (muuten pitkä ilmoitus valuu listan alle) – paneeli vierittyy */
.panel > * { flex-shrink: 0; }
.seg { display: flex; background: #f1ede4; border-radius: 11px; padding: 4px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 8px; border-radius: 8px; cursor: pointer; font-weight: 600; color: var(--muted); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.free-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.free-opts select { min-width: 0; width: 100%; }
.free-opts .btn { grid-column: 1 / -1; }

.route-card { background: linear-gradient(180deg, #f8f6f1, #f2eee5); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; text-align: center; }
.route-date { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin-bottom: 8px; }
.route-title { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.chip { color: #fff; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 1.05rem; }
.chip.start { background: var(--start); }
.chip.end { background: var(--end); }
.arrow { color: var(--muted); font-size: 1.2rem; }
.route-sub { margin: 10px 0 8px; color: var(--muted); font-size: .92rem; line-height: 1.4; }
.route-sub b { color: var(--ink); }
.pips { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; }
.pip { width: 16px; height: 16px; border-radius: 4px; background: #e5dfd3; transition: background .3s; }
.pip.ok { background: var(--ok); } .pip.near { background: var(--near); } .pip.far { background: var(--far); }

.guess-box { display: flex; gap: 8px; }
.input-wrap { position: relative; flex: 1; }
#guess-input, #quiz-input {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 2px solid var(--line); outline: none; font-size: 1rem;
  transition: border-color .15s;
}
#guess-input:focus, #quiz-input:focus { border-color: var(--accent); }
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.14);
  z-index: 20; max-height: 300px; overflow-y: auto;
}
.suggest li { padding: 8px 10px; border-radius: 7px; cursor: pointer; display: flex; justify-content: space-between; gap: 8px; }
.suggest li small { color: var(--muted); }
.suggest li.sel { background: #e7f2f5; }
.msg { min-height: 1.4em; font-size: .92rem; font-weight: 600; }
.msg.ok { color: var(--ok); } .msg.near { color: #b9770b; } .msg.far { color: var(--far); } .msg.warn { color: var(--muted); }
.msg.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }

.guess-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.guess-list li {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 9px; background: #faf8f4;
  border: 1px solid var(--line); animation: pop .25s ease-out;
}
.guess-list .n { color: var(--muted); font-size: .8rem; width: 1.4em; text-align: right; }
.guess-list .dot { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.guess-list .dot.ok { background: var(--ok); } .guess-list .dot.near { background: var(--near); } .guess-list .dot.far { background: var(--far); }
.guess-list .name { font-weight: 600; flex: 1; }
.guess-list .tag { font-size: .75rem; color: var(--muted); }
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.route-actions { display: flex; gap: 8px; }
.route-actions .btn { flex: 1; }

.result { border-radius: var(--radius); padding: 16px; text-align: center; border: 1px solid var(--line); animation: pop .3s ease-out; }
.result.win { background: linear-gradient(180deg, #ecf8f0, #e1f3e7); border-color: #bfe3cb; }
.result.lose { background: linear-gradient(180deg, #fdf0ee, #f9e4e0); border-color: #efc6bf; }
.result h3 { margin: 4px 0 6px; font-size: 1.25rem; }
.result p { margin: 6px 0; line-height: 1.45; }
.result .stars { font-size: 1.8rem; letter-spacing: 4px; color: #f2b01e; }
.result .stars .off { color: #d9d2c4; }
.result .path { font-weight: 600; }
.result .muted { color: var(--muted); font-size: .9rem; }
.result .btns { display: flex; gap: 8px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }

/* ---------- Reitti: kartan SVG ---------- */
.sphere { fill: var(--ocean); }
.graticule { fill: none; stroke: #fff; stroke-opacity: .55; stroke-width: .6; vector-effect: non-scaling-stroke; }
.country, .bgland {
  fill: var(--land); stroke: var(--border); stroke-width: .6; stroke-linejoin: round;
  vector-effect: non-scaling-stroke; transition: fill .45s;
}
.country.start { fill: var(--start); }
.country.end { fill: var(--end); }
.country.g-ok { fill: var(--ok); }
.country.g-near { fill: var(--near); }
.country.g-far { fill: var(--far); }
.country.reveal { fill: #a7dcb9; }
.country.known:hover { stroke: #1d2733; stroke-width: 1.6; }
.hint-outline { fill: rgba(255,47,134,.18); stroke: var(--hint); stroke-width: 3; vector-effect: non-scaling-stroke; animation: pulse 1.1s ease-in-out infinite; }
.hint-dot { fill: none; stroke: var(--hint); vector-effect: non-scaling-stroke; stroke-width: 3; animation: pulse 1.1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.markers circle { stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.markers .start { fill: var(--start); } .markers .end { fill: var(--end); }
.markers .g-ok { fill: var(--ok); } .markers .g-near { fill: var(--near); } .markers .g-far { fill: var(--far); }
.markers .reveal { fill: #63c08a; }
.labels text {
  font-weight: 700; fill: #17212c; stroke: rgba(255,255,255,.92); paint-order: stroke; stroke-linejoin: round;
  text-anchor: middle; dominant-baseline: middle; pointer-events: none;
}
.labels text.start, .labels text.end { font-size: 1.12em; }
.route-line polyline { fill: none; stroke: var(--navy); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; opacity: .85; }
.route-line polyline.opt { stroke: #fff; stroke-width: 5; opacity: .9; }
.route-line circle { fill: var(--navy); stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; }

/* ---------- Visa ---------- */
#quiz-map { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; user-select: none; }
#quiz-map.quiz-find { cursor: crosshair; }
.qunit {
  fill: var(--land); stroke: var(--border); stroke-width: .6; stroke-linejoin: round;
  vector-effect: non-scaling-stroke; transition: fill .35s;
}
#quiz-map.quiz-find .qunit:not(.q-ok):not(.q-near):not(.q-fail):hover,
#quiz-map.quiz-find .qdot:not(.q-ok):not(.q-near):not(.q-fail):hover { fill: #e2d4b4; }
.qdot { fill: #e7dfcf; stroke: #7d725f; stroke-width: 1.2; vector-effect: non-scaling-stroke; transition: fill .35s; }
.qunit.q-ok, .qdot.q-ok { fill: var(--ok); }
.qunit.q-near, .qdot.q-near { fill: var(--near); }
.qunit.q-fail, .qdot.q-fail { fill: var(--far); }
.qdot.q-target { fill: var(--start); stroke: #fff; animation: pulse 1.1s ease-in-out infinite; }
.fx-layer, #quiz-map .labels { pointer-events: none; }
.fx path, .fx circle { vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.fx.q-target path { fill: var(--start); stroke: #0b3a9e; stroke-width: 2.5; animation: pulse 1.1s ease-in-out infinite; }
.fx-wrong path, .fx-wrong circle { fill: rgba(220, 84, 70, .55); stroke: var(--far); stroke-width: 2.5; animation: fade-out 1.3s ease-in forwards; }
.fx-reveal path, .fx-reveal circle { fill: rgba(37, 99, 235, .45); stroke: var(--start); stroke-width: 3; animation: pulse .55s ease-in-out 3; }
.fx-info path, .fx-info circle { fill: rgba(31, 122, 140, .25); stroke: var(--accent); stroke-width: 2.5; }
.fx circle { fill-opacity: .25; }
@keyframes fade-out { 60% { opacity: 1; } to { opacity: 0; } }
.quiz-label { display: block; font-size: .9rem; color: var(--muted); font-weight: 600; }
.quiz-name { display: block; font-size: 1.7rem; font-weight: 800; margin-top: 4px; line-height: 1.15; overflow-wrap: anywhere; }
.quiz-stats { display: flex; justify-content: center; gap: 14px; margin-top: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.quiz-stats .ok { color: var(--ok); } .quiz-stats .near { color: #b9770b; } .quiz-stats .far { color: var(--far); }
.modal-body .missed { font-size: .9rem; color: var(--muted); line-height: 1.5; text-align: left; }

/* ---------- Palapeli ---------- */
.jig-toolbar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--line);
}
.jig-hud { margin-left: auto; display: flex; gap: 14px; font-weight: 700; font-variant-numeric: tabular-nums; flex-wrap: wrap; }
.jig-hud span { display: inline-flex; align-items: center; gap: 5px; }
.jig-hud .lbl { color: var(--muted); font-weight: 600; }
#view-jigsaw { display: flex; flex-direction: column; }
#view-jigsaw.hidden { display: none; }
.jig-layout { flex: 1; min-height: 0; display: flex; }
.board-wrap { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; padding: 10px; background: #e3ecf1; }
#jig-board { width: 100%; height: 100%; display: block; touch-action: none; user-select: none; }
.board-bg { fill: var(--ocean); }
.ctx { fill: #ddd6c7; stroke: #c3b8a4; stroke-width: .6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.slot { fill: #faf6ee; stroke: #a99d86; stroke-width: .8; stroke-dasharray: none; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.board-hard .slot { stroke: none; }
.slot-outline { fill: none; stroke: #8c806b; stroke-width: 1.1; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.piece { stroke: rgba(25,30,35,.6); stroke-width: .8; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.piece.placed { animation: placed .5s ease-out; }
@keyframes placed { 0% { stroke: #fff; stroke-width: 4; } 100% { stroke-width: .8; } }
.piece.loose { cursor: grab; }
.piece.loose.hinted { animation: pulse 1s ease-in-out infinite; }
.slot-hint { fill: rgba(255,47,134,.35); stroke: var(--hint); stroke-width: 2.5; vector-effect: non-scaling-stroke; animation: pulse .9s ease-in-out infinite; }
.slot-hint-ring { fill: none; stroke: var(--hint); stroke-width: 3; vector-effect: non-scaling-stroke; animation: pulse .9s ease-in-out infinite; }
.jig-labels text {
  font-weight: 700; fill: #1b242e; stroke: rgba(255,255,255,.85); paint-order: stroke; stroke-linejoin: round;
  text-anchor: middle; dominant-baseline: middle; pointer-events: none;
}
.jig-toast {
  position: absolute; top: 18px; left: 50%; transform: translate(-50%, -10px); background: var(--navy); color: #fff;
  padding: 7px 14px; border-radius: 999px; font-weight: 700; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none;
  white-space: nowrap;
}
.jig-toast.show { opacity: 1; transform: translate(-50%, 0); }

.tray {
  width: 300px; overflow-y: auto; background: #fff; border-left: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 10px; align-content: start;
  touch-action: pan-y; transition: background .15s;
}
.tray.drop-hover { background: #eef6f8; }
.tray-empty { grid-column: 1 / -1; color: var(--muted); text-align: center; padding: 30px 10px; }
.thumb {
  aspect-ratio: 1 / 1; background: #f8f5ef; border: 1px solid var(--line); border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px 6px 6px; gap: 4px;
  cursor: grab; user-select: none; touch-action: none; transition: box-shadow .15s, transform .15s; min-width: 0;
}
.thumb:hover { box-shadow: 0 3px 10px rgba(0,0,0,.12); transform: translateY(-1px); }
.thumb svg { width: 100%; flex: 1; min-height: 0; pointer-events: none; overflow: visible; }
.thumb path { stroke: rgba(25,30,35,.55); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.thumb .tname { font-size: .78rem; font-weight: 600; text-align: center; line-height: 1.15; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thumb.away { display: none; }
.thumb.hinted { box-shadow: 0 0 0 3px var(--hint); animation: pulse 1s ease-in-out infinite; }

#drag-layer { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 60; overflow: visible; }
#drag-layer { filter: drop-shadow(0 8px 10px rgba(0,0,0,.35)); }
#drag-layer .piece { opacity: .93; }
body.is-dragging, body.is-dragging * { cursor: grabbing !important; }

/* ---------- Modaali, ilmoitukset ---------- */
.modal { position: fixed; inset: 0; background: rgba(15,25,35,.5); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 16px; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal-card {
  position: relative; background: #fff; border-radius: 16px; max-width: 520px; width: 100%; max-height: 90vh; overflow-y: auto;
  padding: 24px 26px; box-shadow: 0 20px 60px rgba(0,0,0,.3); animation: pop .25s ease-out;
}
.modal-close { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 1.7rem; cursor: pointer; color: var(--muted); line-height: 1; }
.modal-body h2 { margin: 0 0 12px; }
.modal-body h3 { margin: 18px 0 6px; font-size: 1rem; }
.modal-body p, .modal-body li { line-height: 1.5; }
.modal-body ul { padding-left: 20px; margin: 6px 0; }
.modal-body .center { text-align: center; }
.modal-body .big { font-size: 2.6rem; margin: 4px 0; }
.modal-body table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.modal-body th, .modal-body td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.modal-body td.num, .modal-body th.num { text-align: right; font-variant-numeric: tabular-nums; }
.stat-row { display: flex; gap: 10px; justify-content: space-between; text-align: center; margin: 6px 0 4px; }
.stat-row div { flex: 1; background: #f6f3ec; border-radius: 10px; padding: 10px 4px; }
.stat-row b { display: block; font-size: 1.5rem; }
.stat-row span { font-size: .75rem; color: var(--muted); }
.modal-body .credits { margin-top: 14px; font-size: .75rem; color: var(--muted); text-align: center; }
.modal-body a { color: var(--accent); }
.about ul { padding-left: 18px; }
.about li { margin: 6px 0; font-size: .92rem; }
.about p { font-size: .92rem; }
#btn-about { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 1.1rem; }
.modal-body .btns { display: flex; gap: 8px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.key { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: 4px; }

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); background: var(--navy); color: #fff;
  padding: 10px 18px; border-radius: 999px; font-weight: 600; opacity: 0; transition: opacity .2s, transform .2s; z-index: 120; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 110; overflow: hidden; }
#confetti i { position: absolute; top: -20px; width: 9px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translate(var(--dx), 110vh) rotate(var(--rot)); } }

/* ---------- Mobiili ---------- */
@media (max-width: 860px) {
  html, body { height: auto; min-height: 100%; }
  .topbar { gap: 10px; padding: 8px 10px; }
  .brand { font-size: 1.1rem; }
  .tab { padding: 6px 10px; }
  .route-layout { flex-direction: column; }
  .map-wrap { flex: none; height: 46vh; position: sticky; top: 0; z-index: 3; border-bottom: 1px solid var(--line); }
  .panel { width: auto; border-left: 0; overflow: visible; }
  .legend { font-size: .7rem; gap: 2px 8px; padding: 5px 8px; }
  #view-jigsaw { height: auto; }
  .jig-toolbar { gap: 6px; padding: 8px; }
  .jig-toolbar select { flex: 1 1 40%; min-width: 0; padding: 6px 8px; font-size: .85rem; }
  .jig-toolbar .btn { padding: 6px 10px; font-size: .85rem; }
  .jig-hud { margin-left: auto; gap: 10px; font-size: .85rem; }
  .jig-layout { flex-direction: column; }
  .board-wrap { flex: none; height: auto; padding: 4px; }
  #jig-board { height: auto; max-height: 62vh; }
  .tray {
    width: auto; border-left: 0; border-top: 1px solid var(--line);
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 96px; grid-template-rows: 96px 96px;
    overflow-x: auto; overflow-y: hidden; touch-action: pan-x;
  }
  .thumb { padding: 5px; }
  .thumb .tname { font-size: .7rem; }
}
@media (max-width: 600px) {
  .topbar { flex-wrap: wrap; row-gap: 6px; }
  .ds-tabs { order: 3; width: 100%; }
  .ds-tabs .tab { flex: 1; }
}
@media (max-width: 480px) {
  .brand span:last-child { display: none; }
  .brand { display: none; }
  #view-tabs .tab { padding: 6px 8px; font-size: .9rem; }
  .quiz-name { font-size: 1.4rem; }
  .icon-btn { width: 34px; height: 34px; }
}
