/* 0.6.0: natural artwork dimensions, shared interactive tables and native tools. */
html,body{background:#02070d;color:#fff}
#aranity-app .page-hero{overflow:hidden;border:1px solid var(--border);border-radius:24px;background:linear-gradient(130deg,#072739,#03131e);margin-bottom:28px}
#aranity-app .page-hero-copy{padding:26px 30px}
#aranity-app .page-hero-copy h1{margin-top:12px}
#aranity-app .page-hero .section-banner{margin:0;border:0;border-radius:0}
#aranity-app .section-banner,#aranity-app .section-banner.lettered-banner{height:auto;aspect-ratio:auto}
#aranity-app .section-banner img,#aranity-app .game-art img,#aranity-app .event-art>img,#aranity-app .article-image{display:block;width:100%;height:auto;max-height:none;object-fit:contain}
#aranity-app .game-art{height:auto;aspect-ratio:auto;overflow:hidden;position:relative}
#aranity-app .event-list .event-card{grid-template-columns:minmax(240px,38%) minmax(0,1fr);align-items:start}
#aranity-app .event-list .event-card .event-art,#aranity-app .event-card .event-art{height:auto;min-height:0;max-height:none;aspect-ratio:auto}
#aranity-app .event-card .series-mark{position:static;display:flex;align-items:center;justify-content:center;gap:16px;padding:12px;background:rgba(2,14,23,.82)}
#aranity-app .event-card .series-mark img{max-width:44%;height:80px;object-fit:contain}
#aranity-app .game-detail-hero>div>img,#aranity-app .ar-dialog .dialog-art{height:auto;object-fit:contain;max-height:none}
#aranity-app .article figure{margin:24px 0}
#aranity-app .article figcaption{padding:10px 0;color:var(--muted);font-size:12px}
#aranity-app .ai-label{position:absolute;left:12px;bottom:12px;border:1px solid #406675;border-radius:20px;background:#03121eed;color:#d7f8f2;padding:5px 10px;font-size:11px}
#aranity-app .game-status{background:#041722ec;border:1px solid #1a607b}
#aranity-app .prize-note{font-size:12px;margin-top:-8px;margin-bottom:28px}
#aranity-app .column-sort{border:0;background:transparent;color:inherit;padding:8px 0;font:inherit;font-weight:700;white-space:nowrap;box-shadow:none;text-align:left}
#aranity-app .column-sort:hover{color:#5af8cb;transform:none}
#aranity-app [aria-sort=ascending],#aranity-app [aria-sort=descending]{color:#5af8cb}
#aranity-app button:focus-visible,#aranity-app a:focus-visible,#aranity-app input:focus-visible,#aranity-app select:focus-visible,#aranity-app .content-editor:focus-visible{outline:2px solid #5af8cb;outline-offset:4px}
#aranity-app .stream-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,340px);gap:12px}
#aranity-app .stream-layout iframe{border:0;width:100%;min-height:500px;border-radius:16px;background:#05080d}
#aranity-app .stream-layout iframe:first-child{aspect-ratio:16/9}
#aranity-app .stream-layout>button{grid-column:1/-1;justify-self:start}
#aranity-app .ea-search{display:grid;grid-template-columns:1fr 1.5fr 1fr 1.5fr auto;align-items:end;gap:14px}
#aranity-app .ea-search label{min-width:0}
#aranity-app .ea-results{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0}
#aranity-app .ea-result{display:flex;align-items:center;gap:12px;text-align:left}
#aranity-app .ea-result strong,#aranity-app .ea-result small{display:block}
#aranity-app .ea-club-heading{display:flex;align-items:center;gap:20px;margin-bottom:22px}
#aranity-app .ea-club-heading h2{margin:8px 0}
#aranity-app .calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin:20px 0}
#aranity-app .calendar-weekday{text-align:center;font-size:12px;color:var(--muted)}
#aranity-app .calendar-day{min-width:0;min-height:54px;display:flex;align-items:center;justify-content:space-between;gap:4px;padding:10px;border:1px solid #173745;background:#071820;box-shadow:none;color:#c5dae7}
#aranity-app .calendar-day.has-events{background:#093d45;color:#fff;border-color:#259b92}
#aranity-app .calendar-day.today{outline:2px solid #5af8cb;outline-offset:0}
#aranity-app .calendar-day small{background:#125667;border-radius:50%;padding:2px 5px}
#aranity-app .calendar-entry{display:grid;grid-template-columns:85px minmax(0,1fr) auto;align-items:center;gap:16px;padding:16px 0;border-top:1px solid var(--border)}
#aranity-app .calendar-entry h3{font-size:15px;margin:0 0 5px}
#aranity-app .calendar-entry time strong{display:block}
#aranity-app .calendar-private{margin-top:20px}
#aranity-app details summary{cursor:pointer;padding:12px 0}
#aranity-app .manager-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:24px}
#aranity-app #editor-items{max-height:650px;overflow:auto;display:grid;gap:8px;margin-top:14px}
#aranity-app .editor-item{display:block;text-align:left;max-width:100%;overflow-wrap:anywhere}
#aranity-app .editor-item small{display:block;margin-top:5px;color:var(--muted)}
#aranity-app .content-editor{min-height:280px;padding:18px;border:1px solid #285064;border-radius:12px;background:#061823;color:#fff;overflow-wrap:anywhere}
#aranity-app .editor-tools{display:flex;flex-wrap:wrap;gap:6px}
#aranity-app .editor-tools button{padding:8px 15px}
#aranity-app .editor-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}
#aranity-app .editor-image>img{width:100%;max-width:420px;max-height:280px;object-fit:contain;margin:10px 0}
#aranity-app .check{display:flex;gap:10px;align-items:start}
#aranity-app .check input{width:auto;flex:0 0 auto;margin-top:4px}
#aranity-app .scope-list{max-height:300px;overflow:auto}
#aranity-app .scope-list label{margin:10px 0}
#aranity-app .help-widget{position:fixed;right:22px;bottom:22px;z-index:90;max-width:calc(100vw - 32px)}
#aranity-app #help-open{box-shadow:0 6px 30px #0008;border-radius:30px}
#aranity-app #help-panel{width:360px;max-width:calc(100vw - 32px);margin-bottom:12px;padding:18px;background:#071c29;border:1px solid #1d718a;border-radius:20px;box-shadow:0 15px 60px #000b;max-height:80vh;overflow:auto}
#aranity-app #help-panel[hidden]{display:none}
#aranity-app .help-head{display:flex;justify-content:space-between;align-items:center}
#aranity-app .help-head button{padding:4px 10px;font-size:24px;background:transparent}
#aranity-app .help-messages{max-height:240px;overflow:auto;font-size:14px;line-height:1.6;margin:12px 0}
#aranity-app .help-messages p{padding:10px;border-radius:12px;background:#102d3c}
#aranity-app .help-messages .help-user{background:#164743;margin-left:25px}
#aranity-app .help-topics{display:flex;flex-wrap:wrap;gap:6px}
#aranity-app .help-topics button{font-size:12px;padding:7px 10px}
#aranity-app #help-question{display:flex;gap:6px;margin:12px 0}
#aranity-app #help-question input{min-width:0;flex:1}
#aranity-app #help-panel>small{display:block;font-size:11px;line-height:1.5;color:var(--muted)}
@media(max-width:900px){#aranity-app .ea-search{grid-template-columns:1fr 1fr}#aranity-app .manager-layout{grid-template-columns:1fr}#aranity-app #editor-items{max-height:220px}#aranity-app .stream-layout{grid-template-columns:1fr}#aranity-app .stream-layout iframe:first-child{min-height:0}#aranity-app .stream-layout iframe:nth-child(2){height:420px;min-height:0}}
@media(max-width:640px){#aranity-app .event-list .event-card{grid-template-columns:1fr}#aranity-app .page-hero-copy{padding:20px}#aranity-app .ea-search,#aranity-app .editor-fields{grid-template-columns:1fr}#aranity-app .calendar-day{padding:6px;min-height:44px;font-size:12px}#aranity-app .calendar-entry{grid-template-columns:64px minmax(0,1fr);gap:10px}#aranity-app .calendar-entry>div:last-child{grid-column:2}#aranity-app .help-widget{right:16px;bottom:16px}}
@media(prefers-reduced-motion:reduce){#aranity-app *,#aranity-app *::before,#aranity-app *::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* Cup administration and public fixtures, 0.7.0. */
.cup-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:20px;margin:20px 0}.cup-score{font-size:2rem;font-weight:800;margin:.6rem 0}.cup-fixture h4{line-height:1.5}.cup-fixture small{display:block}.cup-fixture details{margin-top:16px}.cup-fixture pre,#admin-content pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:420px;overflow:auto;font-size:.8rem}.cup-fixture .form label{min-width:0}#cup-message:empty{display:none}#cup-message{padding:12px;border-left:3px solid var(--accent,#baff2b)}#cup-surface .panel,#admin-content .panel{min-width:0}
