/* The arena, drawn in the original's language (css/strata.css: its tokens, its five strata colours, its type). */

/* ---------- no stock scrollbars (owner rule; /root/tools/larpcheck/scrollbars.css, the colour scheme left to the original) ---------- */
:root { --sb-thumb: rgba(19, 26, 42, .22); --sb-thumb-hover: rgba(19, 26, 42, .4); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --sb-thumb: rgba(228, 233, 242, .2); --sb-thumb-hover: rgba(228, 233, 242, .38); } }
:root[data-theme="dark"] { --sb-thumb: rgba(228, 233, 242, .2); --sb-thumb-hover: rgba(228, 233, 242, .38); }
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--sb-thumb); border-radius: 6px; }
*::-webkit-scrollbar-thumb:hover { background: var(--sb-thumb-hover); }
*::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
*::-webkit-scrollbar-corner { background: transparent; }
@supports (-moz-appearance: none) { * { scrollbar-width: thin; scrollbar-color: var(--sb-thumb) transparent; } }
.no-sb { scrollbar-width: none; } .no-sb::-webkit-scrollbar { display: none; }

[hidden]:not([hidden=until-found i]) { display: none !important; }   /* (the original's base rule: its first <style> block) */
.is-hidden { display: none !important; }
.coin-nums i b { font: inherit; color: var(--l-compiler); }
.rb-cell .rb-note b { font: 600 12px/1.3 var(--font-body); letter-spacing: 0; color: var(--l-compiler); }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
::selection { background: color-mix(in srgb, var(--focus) 26%, transparent); }
a { color: var(--ink); text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
.linkbtn { border: 0; background: none; padding: 0; cursor: pointer; color: var(--muted); font-size: 12.5px; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.linkbtn:hover { color: var(--ink); }
.app { max-width: 1400px; }

/* ---------- header: the brand, the pitch, the coin ---------- */
.top { align-items: flex-start; }
.brand .logo { width: 40px; height: 40px; border-radius: 50%; align-self: center; object-fit: cover; }
.lede { flex: 1 1 380px; }
.coin { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; margin-left: auto; min-width: 0; }
.coin-nums { display: flex; gap: 18px; }
.coin-nums span { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.coin-nums i { font-style: normal; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.coin-nums b { font-size: 15px; font-weight: 600; }
.ca-pill { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 4px 0 12px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); max-width: 100%; min-width: 0; }
.ca-pill.is-live { border-color: var(--l-screen); }
.ca-lab { font: 700 13px/1 var(--font-display); letter-spacing: -0.01em; white-space: nowrap; }
.ca-addr { display: flex; align-items: center; gap: 8px; min-width: 0; height: 26px; padding: 0 2px 0 6px; border: 0; border-radius: 6px; background: none; font: 500 12.5px/1 var(--font-mono); color: var(--ink); cursor: copy; }
.ca-addr:disabled { cursor: default; color: var(--muted); font: 500 12.5px/1 var(--font-body); }
.ca-addr > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }
.ca-copy { flex: none; font: 600 12px/1 var(--font-body); font-style: normal; padding: 6px 10px; border-radius: 6px; background: var(--ink); color: var(--bg); }
.ca-link { flex: none; font: 600 12px/1 var(--font-body); padding: 7px 10px; border-radius: 6px; background: var(--panel-2); color: var(--ink); text-decoration: none; white-space: nowrap; }
.ca-link:hover { background: var(--line); }

/* ---------- the round strip (where the original had its program picker) ---------- */
.roundbar { display: grid; grid-template-columns: auto minmax(0, 2.6fr) repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.rb-cell { background: var(--panel); padding: 9px 14px 10px; display: flex; flex-direction: column; gap: 1px; min-width: 0; position: relative; }
.rb-cell i { font-style: normal; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rb-cell b { font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-cell b.num { font-family: var(--font-mono); font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.rb-cell span { font-size: 12.5px; color: var(--muted); line-height: 1.3; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rb-round b { font-size: 26px; }
.rb-task { background: var(--ink); color: var(--bg); }
.rb-task i, .rb-task span { color: var(--bg); opacity: .72; }
.rb-task b { font-size: 21px; }
.rb-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--panel-2); }
.rb-prog span { display: block; height: 100%; width: 0; background: var(--l-screen); transition: width .9s linear; }
.roundbar.judging .rb-prog span { background: var(--l-assembler); width: 100% !important; animation: judging 1.1s ease-in-out infinite alternate; }
@keyframes judging { from { opacity: .35; } to { opacity: 1; } }
.rb-note { font-size: 12px; }

/* ---------- the task card over the editor ---------- */
.taskcard { background: var(--s-source); border: 1px solid color-mix(in srgb, var(--l-source) 28%, var(--line)); border-radius: 10px; padding: 10px 14px 11px; margin-bottom: 10px; }
.taskcard ul { margin: 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; }
.taskcard li::marker { color: var(--l-source); }
.taskcard .tc-rule { margin: 7px 0 0; font-size: 12.5px; color: var(--muted); }
.taskcard .tc-rule b { color: var(--ink); }
.taskcard code { font-family: var(--font-mono); font-size: 12.5px; }

/* ---------- the machine's buttons + the Result view ---------- */
.btn.submit { background: var(--l-screen); border-color: var(--l-screen); color: #fff; font-weight: 600; }
:root[data-theme="dark"] .btn.submit { color: #06201c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.submit { color: #06201c; } }
.btn.submit:hover { filter: brightness(1.06); }
.btn:disabled { opacity: .55; cursor: progress; }
.result { height: 100%; overflow: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.result .r-line { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.result .r-tag { font: 700 11px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; padding: 4px 7px; border-radius: 5px; background: var(--panel-2); color: var(--muted); flex: none; }
.result .r-tag.ok { background: var(--s-screen); color: var(--l-screen); }
.result .r-tag.bad { background: var(--bad-bg); color: var(--bad); }
.result .r-tag.cpu { background: var(--s-cpu); color: var(--l-cpu); }
.result .r-big { font-family: var(--font-mono); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.result .r-sub { color: var(--muted); }
.result .r-why { font-family: var(--font-mono); font-size: 12.5px; color: var(--bad); overflow-wrap: anywhere; }
.result .r-bars { display: grid; grid-template-columns: 90px minmax(0, 1fr) 110px; gap: 6px 10px; align-items: center; font-size: 12.5px; }
.result .r-bars .bar { height: 8px; border-radius: 2px; background: var(--panel-2); overflow: hidden; }
.result .r-bars .bar i { display: block; height: 100%; border-radius: 2px; background: var(--l-cpu); }
.result .r-bars .bar i.par { background: var(--muted); opacity: .45; }
.result .r-bars span:last-child { text-align: right; }
.result p { margin: 0; }

/* ---------- the arena: board · your entry + past rounds · chat ---------- */
.arena { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); gap: 28px; padding-top: 10px; }
.arena > div { min-width: 0; display: flex; flex-direction: column; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-bottom: 10px; }
.sec-head h2 { font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: -0.015em; margin: 0; }
.sec-note { font-size: 12.5px; color: var(--muted); text-align: right; }
.sec-link { font-size: 12.5px; white-space: nowrap; }
.side-col .sec-head + * { margin-bottom: 0; }
.side-col .sec-head:not(:first-child) { margin-top: 22px; }

.feed { margin: 0 0 8px; min-height: 20px; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed b { color: var(--ink); font-weight: 600; }
.feed.flash { animation: flash 1.6s ease-out; }
@keyframes flash { from { color: var(--l-screen); } to { color: var(--muted); } }
.board { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.board li { display: grid; grid-template-columns: 30px minmax(0, 1fr) minmax(70px, 120px) 104px 76px; gap: 10px; align-items: center; padding: 7px 4px; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); font-size: 14px; }
.board li .rk { font-family: var(--font-mono); color: var(--muted); font-size: 12.5px; }
.board li .nm { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board li .bar { height: 6px; border-radius: 2px; background: var(--panel-2); overflow: hidden; }
.board li .bar i { display: block; height: 100%; background: var(--l-cpu); border-radius: 2px; }
.board li .sc { font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; font-size: 13px; }
.board li .pz { font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; font-size: 12.5px; color: var(--l-screen); }
.board li.me { background: color-mix(in srgb, var(--l-screen) 9%, transparent); }
.board li.me .nm::after { content: " · you"; color: var(--l-screen); font-weight: 500; }
.board li.top .rk { color: var(--ink); font-weight: 600; }
.board li.paid-line { border-bottom: 1px dashed var(--muted); }
.board li.new { animation: rowin .6s cubic-bezier(.2, .7, .2, 1); }
@keyframes rowin { from { background: color-mix(in srgb, var(--l-screen) 22%, transparent); } }
.board .empty { display: block; color: var(--muted); font-size: 13.5px; padding: 14px 4px; border: 0; }
.board-more { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }

.entry { display: flex; flex-direction: column; gap: 10px; }
.entry label { display: flex; flex-direction: column; gap: 4px; }
.entry label i { font-style: normal; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.entry input, .c-form input { font: 500 14px/1.2 var(--font-body); color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; outline: none; min-width: 0; width: 100%; }
.entry input#t-addr { font-family: var(--font-mono); font-size: 12.5px; }
.entry input:focus, .c-form input:focus { border-color: var(--focus); }
.entry input.bad { border-color: var(--bad); background: var(--bad-bg); }
.entry-note { margin: 0; font-size: 12.5px; color: var(--muted); }
.mine { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.mine li { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; }
.mine li .when { font-family: var(--font-mono); color: var(--muted); font-size: 12px; }
.mine li .what { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.mine li .sc { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.mine li.ok .what { color: var(--ink); }
.mine li.bad .sc { color: var(--bad); font-family: var(--font-body); font-size: 12px; }

.hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.hist li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); cursor: pointer; font-size: 13.5px; }
.hist li:hover .ht { text-decoration: underline; text-decoration-color: var(--line); }
.hist li .hn { font-family: var(--font-mono); color: var(--muted); font-size: 12.5px; }
.hist li .ht { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist li .ht b { font-weight: 600; }
.hist li .hp { font-family: var(--font-mono); font-size: 12.5px; color: var(--l-screen); text-align: right; white-space: nowrap; }
.hist .empty { display: block; color: var(--muted); font-size: 13.5px; padding: 8px 0; cursor: default; border: 0; }

/* ---------- chat (the site chat of every game-project, Acre's, in this site's language) ---------- */
.chat-col { min-height: 0; }
.c-pin { display: flex; gap: 8px; align-items: baseline; padding: 7px 10px; border-radius: 8px; background: var(--s-cpu); font-size: 13px; margin-bottom: 8px; }
.c-pin b { flex: none; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--l-cpu); }
.c-pin span { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.c-list { list-style: none; margin: 0; padding: 0 4px 0 0; height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; }
.c-list li { line-height: 1.4; overflow-wrap: anywhere; }
.c-list .c-time { font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-right: 6px; }
.c-list .c-name { font-weight: 600; margin-right: 6px; }
@media (prefers-color-scheme: light) { .c-list .c-name { filter: brightness(.62) saturate(1.3); } }
:root[data-theme="light"] .c-list .c-name { filter: brightness(.62) saturate(1.3); }
.c-list li.is-dev { background: var(--s-compiler); border-radius: 6px; padding: 3px 6px; }
.c-list .c-none { color: var(--muted); }
.c-tag { display: inline-block; font: 700 10px/1 var(--font-display); letter-spacing: .08em; padding: 3px 5px; border-radius: 4px; background: var(--l-compiler); color: #fff; margin-right: 6px; vertical-align: 1px; }
.c-mod { margin-left: 8px; display: inline-flex; gap: 6px; }
.c-mod button { border: 0; background: none; padding: 0; font-size: 11.5px; color: var(--muted); cursor: pointer; text-decoration: underline; }
.c-form { display: flex; gap: 8px; margin-top: 10px; }
.c-form .btn { flex: none; }
.c-hint { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.c-hint.is-bad { color: var(--bad); }

/* ---------- the round sheet (a finished round: places, payouts, the winners' code) ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px; background: color-mix(in srgb, var(--bg) 55%, rgba(0, 0, 0, .45)); backdrop-filter: blur(3px); }
.sheet-card { width: min(760px, 100%); max-height: min(86vh, 900px); overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px 18px; box-shadow: 0 24px 70px rgba(0, 0, 0, .28); }
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 12px; }
.sheet-head h2 { font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.sh-meta { margin: 0 0 12px; font-size: 13.5px; color: var(--muted); }
.sh-meta b { color: var(--ink); }
.sh-places { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.sh-places li { display: grid; grid-template-columns: 34px minmax(0, 1fr) 110px 96px auto; gap: 10px; align-items: center; padding: 7px 2px; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); font-size: 14px; }
.sh-places .rk { font-family: var(--font-mono); color: var(--muted); }
.sh-places .nm { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-places .sc, .sh-places .pz { font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; font-size: 13px; }
.sh-places .pz { color: var(--l-screen); }
.sh-places .pz a { color: inherit; }
.sh-places .ld { font-size: 12.5px; }
.sh-failed { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }

/* ---------- the dev's notice, the toast ---------- */
.devnote { position: fixed; z-index: 60; left: 50%; top: 14px; transform: translateX(-50%); display: flex; gap: 10px; align-items: center; max-width: min(640px, calc(100% - 24px)); padding: 10px 12px 10px 14px; border-radius: 10px; background: var(--ink); color: var(--bg); box-shadow: 0 14px 40px rgba(0, 0, 0, .3); font-size: 14px; }
.devnote .linkbtn { color: var(--bg); text-decoration: none; font-size: 18px; line-height: 1; }
.toast { position: fixed; z-index: 70; left: 50%; bottom: 22px; transform: translateX(-50%); padding: 9px 14px; border-radius: 8px; background: var(--ink); color: var(--bg); font-size: 13.5px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); display: flex; gap: 12px; align-items: center; }
.toast .linkbtn { color: var(--bg); }

/* ---------- the about cards, the footer ---------- */
.about { padding-top: 18px; border-top: 1px solid var(--line); margin-top: 6px; }
.about p b { color: var(--ink); font-weight: 600; }
.about a { color: var(--ink); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.foot p { margin: 0; }
.foot b { color: var(--ink); }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); }

@media (max-width: 1180px) {
  .roundbar { grid-template-columns: auto minmax(0, 1fr) repeat(2, minmax(0, 1fr)); }
  .arena { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .chat-col { grid-column: 1 / -1; }
}
@media (max-width: 940px) {
  .coin { align-items: stretch; margin-left: 0; width: 100%; }
  .coin-nums { justify-content: space-between; }
  .coin-nums span { align-items: flex-start; }
  .roundbar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .rb-task { grid-column: 1 / -1; order: -1; }
  .rb-round { display: none; }
  .arena { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .board li { grid-template-columns: 26px minmax(0, 1fr) 96px 70px; }
  .board li .bar { display: none; }
  .sh-places li { grid-template-columns: 28px minmax(0, 1fr) 96px 80px; }
  .sh-places .ld { grid-column: 2 / -1; }
  .c-list { height: 260px; }
}

/* ---------- the verdict, on the machine's own screen ---------- */
.verdict { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 18px 13px; min-width: 260px; max-width: calc(100% - 40px); border-radius: 10px; background: rgba(5, 7, 11, .86); color: #e4e9f2; text-align: center; pointer-events: none; animation: vin .35s cubic-bezier(.2, .7, .2, 1); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.verdict .v-tag { font: 700 11px/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px; border-radius: 5px; background: rgba(69, 209, 186, .16); color: #45d1ba; }
.verdict.bad .v-tag { background: rgba(255, 141, 131, .16); color: #ff8d83; }
.verdict.cpu .v-tag { background: rgba(99, 173, 255, .16); color: #63adff; }
.verdict .v-big { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin-top: 6px; color: #fff; }
.verdict .v-sub { font-size: 13px; color: #aab3c4; max-width: 46ch; overflow-wrap: anywhere; }
@keyframes vin { from { opacity: 0; transform: translate(-50%, 8px); } }
