.arena-bar { height:108px;padding:10px 28px 14px;align-items:center; }
.live-bounty { min-width:0; }
.bounty-eyebrow { display:flex;align-items:center;gap:7px;font-size:12px;letter-spacing:1.2px;text-transform:uppercase;color:var(--muted); }
.bounty-indicator { width:5px;height:5px;border-radius:50%;background:var(--muted); }
.live-bounty[data-state='current'] .bounty-indicator { background:var(--success); }
.live-bounty[data-state='stale'] .bounty-indicator { background:var(--warning); }
.bounty-figure { display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 9px;margin-top:2px;min-width:0; }
#live-bounty-value { display:block;max-width:100%;font-size:38px;font-weight:500;letter-spacing:-1.8px;line-height:1.14;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
#live-bounty-value .bounty-fraction { font-size:.68em;letter-spacing:-.6px;color:var(--muted); }
#live-bounty-value[data-long='true'] { font-size:26px; }
#live-bounty-unit { font:12px var(--mono);color:var(--muted); }
#live-bounty-note { margin:4px 0 0;font-size:12px;line-height:1.3;color:var(--muted);max-width:460px; }







.guardian-aside { position:absolute;bottom:-13px;left:0;width:100%;margin:0;text-align:center;font-size:12px;line-height:1.4;color:var(--muted);pointer-events:none; }
.guardian-aside:empty { display:none; }
.prompt-public-note { margin:7px 0 0;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px;font-size:12px;line-height:1.4;color:var(--muted); }
.prompt-public-note .text-button { font-size:12px;min-height:26px;padding:0;text-decoration:underline;text-underline-offset:3px; }




.activity-rail { display:none; }
.activity-panel { display:flex;flex-direction:column;height:100%;min-height:0;color:var(--text); }
.activity-heading { display:flex;align-items:flex-start;justify-content:space-between;padding:24px 22px 14px;gap:14px; }

.activity-heading h2 { margin:0;font-size:28px;font-weight:500;line-height:1.08;letter-spacing:-1px; }
.activity-toolbar { display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 22px 8px;font-size:12px;color:var(--muted); }
.activity-toolbar p { margin:0; }
.activity-toolbar .text-button { min-height:36px;font-size:12px; }
.activity-tabs { display:flex;border-bottom:1px solid var(--border);padding:0 22px;gap:24px; }
.activity-tabs button { position:relative;min-height:44px;font-size:12px;color:var(--muted);padding:0 2px; }
.activity-tabs button[aria-selected='true'] { color:var(--text); }
.activity-tabs button[aria-selected='true']:after { content:'';position:absolute;bottom:-1px;left:0;right:0;height:2px;background:var(--text); }
.activity-tabs span { font:12px var(--mono);margin-left:5px; }
.activity-pane { flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:0 22px;overflow-anchor:none; }
.activity-empty { padding:24px 0;margin:0;font-size:14px;line-height:1.7;color:var(--muted); }
.activity-explainer { font-size:12px;line-height:1.65;color:var(--muted);margin:18px 0 0; }
.activity-new { position:sticky;z-index:2;top:8px;width:100%;min-height:40px;border:1px solid var(--border);border-radius:8px;background:var(--text);color:var(--bg);font-size:12px;margin:8px 0;box-shadow:var(--shadow-1); }
.attempt-card { border-bottom:1px solid var(--border);padding:20px 0; }
.attempt-meta { display:flex;justify-content:space-between;gap:8px;font-size:12px;line-height:1.5;color:var(--muted); }
.attempt-player { font-family:var(--mono);overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.attempt-time { white-space:nowrap; }
.attempt-prompt { margin:10px 0 12px;font-size:14px;line-height:1.5;letter-spacing:-.1px;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-wrap; }
.attempt-result { display:flex;align-items:center;gap:8px;min-width:0; }
.attempt-decision { font-size:12px;text-transform:uppercase;letter-spacing:.7px;color:var(--muted);border:1px solid var(--border);border-radius:4px;padding:3px 5px;white-space:nowrap; }
.attempt-decision[data-decision='released'] { color:var(--success);background:var(--success-bg);border-color:color-mix(in srgb,var(--success) 45%,transparent); }
.attempt-model { font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.attempt-scope { display:block;font-size:12px;color:var(--muted);margin-top:8px; }
.attempt-details { margin-top:5px; }
.attempt-details summary { cursor:pointer;min-height:38px;display:flex;align-items:center;gap:7px;list-style:none;font-size:12px;color:var(--muted); }
.attempt-details summary::-webkit-details-marker { display:none; }
.attempt-details summary:before { content:'+';font-size:16px; }
.attempt-details[open]>summary:before { content:'−'; }
.attempt-message { padding:12px;border-left:2px solid var(--border);margin:0 0 8px;background:var(--soft);border-radius:0 4px 4px 0; }
.attempt-message strong { font:12px var(--mono);text-transform:uppercase;letter-spacing:.7px;color:var(--muted); }
.attempt-message p { font-size:12px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0 0; }
.attempt-context { margin-top:10px; }
.attempt-context pre { white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.6 var(--mono);color:var(--muted); }
.activity-older { width:100%;min-height:48px;margin:10px 0 18px;border:1px solid var(--border);border-radius:8px;font-size:12px; }
.chain-event { padding:20px 0;border-bottom:1px solid var(--border); }
.chain-event h3 { display:flex;justify-content:space-between;gap:12px;font-size:14px;font-weight:500;margin:0 0 7px; }
.chain-amount { font-variant-numeric:tabular-nums;overflow-wrap:anywhere; }
.chain-party,.chain-round { margin:5px 0;font:12px/1.5 var(--mono);color:var(--muted);overflow-wrap:anywhere; }
.chain-event a { display:inline-flex;align-items:center;min-height:44px;font-size:12px;text-decoration:underline;text-underline-offset:3px; }
.chain-event code { display:block;font:12px/1.5 var(--mono);overflow-wrap:anywhere;color:var(--muted);margin-top:10px; }
.activity-bottom { display:flex;justify-content:space-between;gap:8px;padding:16px 22px;border-top:1px solid var(--border);font-size:12px;color:var(--muted); }
.activity-bottom a { text-decoration:underline;text-underline-offset:3px; }
.activity-dialog { padding:0;margin:auto;width:min(520px,calc(100% - 16px));max-width:none;height:min(850px,calc(var(--app-height,100dvh) - 16px));max-height:none;border:1px solid var(--border);border-radius:20px;background:var(--bg);overflow:hidden; }
.activity-dialog::backdrop { background:color-mix(in srgb,var(--ink) 53%,transparent);backdrop-filter:blur(4px); }
.activity-dialog .icon-button { width:44px;height:44px;font-size:26px; }
.activity-panel :focus-visible { outline-offset:2px; }
@media(min-width:1180px) {
 .activity-rail { display:block;width:330px;flex:0 0 330px;height:100%;min-height:0;border-left:1px solid var(--border);background:color-mix(in srgb,var(--surface) 40%,var(--bg)); }
 .activity-rail #activity-close { display:none; }
 .arena-bar { padding-inline:36px; }
 .guardian-scene { gap:30px; }
 .conversation-area,.chat-main[data-empty='true'] .conversation-area { padding-inline:30px; }
 .guardian-poke { width:min(290px,92cqw,90cqh);height:min(290px,92cqw,90cqh); }
 .guardian-bubble { padding:20px; }
 #guardian-line { font-size:18px; }
}
@media(max-width:760px) {
 .arena-bar { height:98px;padding:4px 20px 10px; }
 #live-bounty-value { font-size:31px;letter-spacing:-1.2px; }
 #live-bounty-value[data-long='true'] { font-size:20px; }
 .bounty-eyebrow { font-size:12px;letter-spacing:.8px; }
 #live-bounty-unit { font-size:12px; }
 #live-bounty-note { font-size:12px;max-width:210px; }



 .guardian-poke { width:min(220px,90cqw,88cqh);height:min(220px,90cqw,88cqh); }
 .guardian-stage { gap:8px; }


 .guardian-scene { gap:16px; }
 .chat-main[data-empty='false'] #guardian-line { height:clamp(110px,21dvh,185px);font-size:16px; }
 .guardian-controls { min-height:28px; }
 .guardian-controls .text-button { min-height:28px; }
 .guardian-bubble-actions button { min-height:40px;min-width:40px; }
 .prompt-public-note { font-size:12px;gap:0 4px;margin-top:3px; }
 .prompt-public-note .text-button { font-size:12px;min-height:26px; }
 .activity-dialog { margin:auto 8px 8px;border-radius:20px; }
 .activity-heading { padding-top:20px; }
 .activity-bottom { padding-block:12px; }

}
@media(max-width:370px) {
 .arena-bar { padding-inline:15px; }


 #live-bounty-note { max-width:180px; }
 #live-bounty-unit { flex-basis:100%;font-size:12px; }
 #live-bounty-value { font-size:28px; }
}
@media(max-height:700px) and (max-width:760px) {

 .chat-main[data-empty='true'] .guardian-stage { grid-template-rows:minmax(0,1fr); }
 .chat-main[data-empty='false'] #guardian-line { height:90px;font-size:14px;line-height:20px; }
 .guardian-aside { bottom:-6px;font-size:12px; }
 .chat-main[data-empty='false'] .guardian-scene { grid-template-columns:72px minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:12px; }
 .chat-main[data-empty='false'] .guardian-bubble { padding:10px 12px; }
 .chat-main[data-empty='false'] .guardian-bubble:before { top:25px;left:-8px;transform:rotate(-45deg); }
 .chat-main[data-empty='false'] .guardian-bubble-actions { display:none; }
 .chat-main[data-empty='false'] .guardian-byline { margin-bottom:5px; }
}
:root[data-compact='true'] .arena-bar { height:74px;padding-top:2px;padding-bottom:5px; }
:root[data-compact='true'] #live-bounty-value { font-size:25px; }
:root[data-compact='true'] .bounty-eyebrow { font-size:12px; }
:root[data-compact='true'] #live-bounty-note { font-size:12px;margin-top:1px; }
:root[data-compact='true'] .guardian-aside { display:none; }
:root[data-compact='true'] .chat-main[data-empty='false'] #guardian-line { height:60px;font-size:14px;line-height:20px; }
:root[data-compact='true'] .prompt-public-note { font-size:12px;margin:2px 0 0; }
:root[data-compact='true'] .prompt-public-note .text-button { display:none; }
:root[data-compact='true'] .guardian-bubble { padding:8px 10px; }
:root[data-compact='true'] .guardian-byline { margin-bottom:3px; }
:root[data-compact='true'] .guardian-controls { min-height:26px; }
:root[data-compact='true'] .guardian-controls .text-button { min-height:26px;padding-block:2px; }
:root[data-compact='true'] .guardian-stage { height:auto; }
:root[data-compact='true'] .conversation-area { padding-bottom:0;gap:2px; }
:root[data-compact='true'] .guardian-bubble-actions { display:none; }
:root[data-compact='true'] .composer { padding:6px 10px 4px; }
:root[data-compact='true'] .composer textarea { height:24px;min-height:24px;max-height:24px;line-height:24px; }
:root[data-compact='true'] .composer-actions { height:44px;margin-top:0; }

@media(max-height:420px) { :root[data-compact='true'] .chat-main[data-empty='false'] #guardian-line { height:40px; } }
@media(prefers-reduced-motion:reduce) { .activity-panel *, .live-bounty * { scroll-behavior:auto;transition:none!important;animation:none!important; } }

/* One focal point: prize, guardian, message. Details open on demand. */
.activity-rail { display:none; }
.arena-bar { justify-content:center;height:150px;flex-shrink:0;padding:14px 20px 8px; }
.live-bounty { text-align:center; }
.bounty-eyebrow,.bounty-figure { justify-content:center; }
.bounty-eyebrow { font-size:12px;letter-spacing:1.8px; }
#live-bounty-value { font-size:68px;letter-spacing:-3px;line-height:1.05; }
#live-bounty-value[data-long='true'] { font-size:42px; }
#live-bounty-unit { font-size:12px; }
#live-bounty-note { margin-top:8px;font-size:12px;max-width:none; }
.door-bounty { display:none; }


.chat-main[data-empty='true'] .guardian-stage { grid-template-rows:minmax(0,1fr); }
.chat-main[data-empty='true'] .guardian-byline { display:none; }
.chat-main[data-empty='true'] .guardian-bubble { border:0;background:none;box-shadow:none;padding:16px 0; }
.chat-main[data-empty='true'] .guardian-bubble:before { display:none; }
.chat-main[data-empty='true'] #guardian-line { height:auto;font-size:26px;line-height:1.4;max-height:110px; }
.composer-context { display:none; }






@media(min-width:761px) {
 .guardian-scene { width:min(720px,100%);gap:42px; }
 .guardian-poke { width:min(330px,94cqw,92cqh);height:min(330px,94cqw,92cqh); }
 .conversation-area,.chat-main[data-empty='true'] .conversation-area { padding-bottom:10px; }

 .activity-dialog { margin:auto 16px auto auto;width:440px;height:calc(var(--app-height,100dvh) - 32px); }
}
@media(max-width:760px) {
 .arena-bar { height:120px;padding:8px 16px; }
 #live-bounty-value { font-size:52px;letter-spacing:-2px; }
 #live-bounty-value[data-long='true'] { font-size:32px; }
 :root[data-conversation-mode='contract-v2'] .live-bounty { flex:1 1 100%;width:100%; }
 :root[data-conversation-mode='contract-v2'] #live-bounty-value { font-size:clamp(26px,8vw,34px);letter-spacing:-1.2px;white-space:normal;overflow-wrap:anywhere;text-overflow:clip; }
 .header-actions { gap:0; }


 .chat-main[data-empty='true'] #guardian-line { font-size:18px;text-align:center;max-height:54px; }
 .chat-main[data-empty='true'] .guardian-bubble { padding:3px 0; }
 .guardian-scene { gap:8px; }



 #live-bounty-note { font-size:12px; }
}
:root[data-compact='true'] .arena-bar { height:84px;padding:2px 12px; }
:root[data-compact='true'] #live-bounty-value { font-size:36px; }
:root[data-compact='true'] #live-bounty-value[data-long='true'] { font-size:26px; }
:root[data-compact='true'] #live-bounty-note { margin-top:2px; }
:root[data-compact='true'] .chat-main[data-empty='true'] #guardian-line { font-size:16px;text-align:left; }

/* Attempts history under the composer (P-31): the latest public attempts roll by, one row at a time. */
.attempt-feed { --feed-rows:2;display:block;width:100%;margin:4px 0 0;padding:6px 14px;border:1px solid var(--border);border-radius:12px;background:var(--surface);color:var(--text); }
.attempt-feed:has(.attempt-feed-rows:hover) { background:var(--soft); }
.attempt-feed-rows { display:block;width:100%;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer; }
.attempt-feed-rows:focus-visible { outline:2px solid var(--accent);outline-offset:2px;border-radius:4px; }
.attempt-feed-head { display:flex;align-items:center;gap:8px;margin-bottom:2px;font-size:12px;line-height:16px;color:var(--muted); }
.attempt-feed-head { margin-top:0; }
.attempt-feed-head .text-button { margin-left:auto;min-height:16px;padding:0;font-size:12px;color:var(--muted);text-decoration:underline;text-underline-offset:3px; }
.attempt-feed-live { width:6px;height:6px;border-radius:50%;background:var(--success);flex:none; }
.attempt-feed[data-state='stale'] .attempt-feed-live { background:var(--warning); }
.attempt-feed[data-state='stale'] #latest-activity-label { color:var(--error); }
.attempt-feed-window { display:block;height:calc(var(--feed-rows) * 20px + (var(--feed-rows) - 1) * 6px);overflow:hidden;-webkit-mask-image:linear-gradient(#000 70%,transparent);mask-image:linear-gradient(#000 70%,transparent); }
.attempt-feed-list { display:flex;flex-direction:column;gap:6px; }
.feed-row { display:flex;align-items:baseline;gap:8px;height:20px;min-width:0;font-size:14px;line-height:20px;white-space:nowrap; }
.feed-row>span { flex:none; }
.feed-row .feed-prompt { flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis; }
.feed-who { font:12px var(--mono);color:var(--muted); }
.feed-verdict,.feed-ago { font-size:12px;color:var(--muted); }
.feed-row[data-decision='released'] .feed-verdict { color:var(--success);font-weight:600; }
.feed-row[data-fresh='true'] .feed-who { color:var(--accent); }
.feed-empty { color:var(--muted); }
.bounty-bump { align-self:center;font:600 14px var(--mono);color:var(--success); }
@media(max-width:760px) {
 .attempt-feed { padding:6px 12px; }
 .feed-ago { display:none; }
}
:root[data-compact='true'] .attempt-feed { --feed-rows:1;margin-top:4px;padding:6px 10px; }
:root[data-compact='true'] .attempt-feed-head { margin-bottom:2px; }
/* Short screens (compact) keep the public-prompts notice but not the rolling rows, so the composer stays above the footer. */
:root[data-compact='true'] .attempt-feed-rows { display:none; }
:root[data-compact='true'] .attempt-feed-head { margin-bottom:0; }
:root[data-conversation-mode='contract-v2'] .attempt-feed { display:none; }
/* With the history under the composer, the bounty has the header to itself and the public note lives in the history head. */
.arena-bar .live-bounty { flex:1 1 100%;width:100%; }
.live-bounty .bounty-eyebrow { display:flex; }
.vault-demo[data-phase='ready'] { display:none; }
#live-bounty-note { max-width:none; }
@media(max-width:760px) { #live-bounty-unit { flex-basis:auto; } .live-bounty .bounty-eyebrow { line-height:12px; } .arena-bar .bounty-figure { margin-top:0; } .arena-bar #live-bounty-note { margin-top:2px; } }
/* P-08b: tier picker above the composer (only rounds with tiers). */
.tier-picker { margin:0 0 6px;padding:0;border:0;min-width:0; }
.tier-options { display:grid;grid-template-columns:repeat(auto-fit,minmax(72px,1fr));gap:6px; }
.tier-option { display:grid;gap:1px;padding:6px 8px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text);font:inherit;text-align:left;cursor:pointer;min-width:0; }
.tier-option strong { font-size:14px;font-weight:600;line-height:18px;white-space:nowrap; }
.tier-option span { font:12px var(--mono);color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.tier-option:hover:not(:disabled) { background:var(--soft); }
.tier-option[aria-checked='true'] { border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent); }
.tier-option[aria-checked='true'] strong { color:var(--accent); }
.tier-option:disabled { cursor:not-allowed;opacity:.45; }
.tier-option:focus-visible { outline:2px solid var(--accent);outline-offset:2px; }
.tier-note { margin:4px 0 0;font-size:12px;line-height:16px;color:var(--muted); }
/* P-35: onramp right before the first payment (contract rounds only). */
.onramp { margin:6px 0 0;padding:10px 14px;border:1px solid var(--border);border-radius:12px;background:var(--surface);color:var(--text);text-align:left; }
.onramp-head { display:flex;align-items:center;justify-content:space-between;gap:8px; }
.onramp h2 { margin:0;font-size:14px;font-weight:600;line-height:20px; }
.onramp-ready { font-size:12px;font-weight:600;color:var(--success); }
.onramp-balances { margin:2px 0 8px;font:12px/16px var(--mono);color:var(--muted);overflow-wrap:anywhere; }
.onramp-actions { display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px; }
.onramp-buy { min-height:36px;padding:0 14px;border:0;border-radius:8px;background:var(--accent);color:var(--on-accent,#151517);font:inherit;font-size:14px;font-weight:600;cursor:pointer; }
.onramp-buy:disabled { opacity:.5;cursor:progress; }
.onramp-buy:focus-visible { outline:2px solid var(--text);outline-offset:2px; }
.onramp .text-button { font-size:12px;text-decoration:underline;text-underline-offset:3px; }
.onramp-gas { margin:8px 0 0;font-size:12px;line-height:16px;color:var(--warning); }
