:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, sans-serif; background: #0b2426; color: #fff7dc; }
* { box-sizing: border-box; } body { margin: 0; height: 100vh; height: 100dvh; overflow: hidden; background: radial-gradient(circle at 50% 0%, #2d6c64, #0b2426 62%); }
button, a { font: inherit; } button { color: inherit; }
/* The whole window is the cabinet: a slim title bar, then the arena to every edge. */
.cabinet { width: 100%; height: 100%; margin: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding: 0; gap: 0; }
.topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 6px clamp(10px, 2vw, 22px); }.topbar > div { text-align: center; }.topbar h1 { margin: 0; font: 800 clamp(1.25rem, 2.4vw, 1.9rem)/1 Georgia, serif; }.topbar .eyebrow { margin: 0 0 2px; font-size: .6rem; }.eyebrow, .kicker { margin: 0 0 5px; color: #f0c760; font-size: .7rem; font-weight: 900; letter-spacing: .16em; }.back-link { color: #d7ece4; text-decoration: none; font-weight: 800; }.topbar > button { justify-self: end; background: #ffffff12; border: 1px solid #ffffff28; border-radius: 999px; padding: 9px 14px; }
.game-stage { width: 100%; height: 100%; min-height: 0; position: relative; overflow: hidden; background: #27798d; border-top: 1px solid #ffffff22; }
canvas { width: 100%; height: 100%; display: block; outline: none; }
.panel { position: absolute; z-index: 4; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: min(600px, calc(100% - 32px)); padding: clamp(20px, 4vw, 38px); border-radius: 24px; background: linear-gradient(150deg, #173f3cf4, #0d2528f4); box-shadow: 0 18px 60px #0009; border: 1px solid #ffffff26; backdrop-filter: blur(12px); text-align: center; }
.panel h2 { margin: 4px 0 10px; font: 800 clamp(2rem, 6vw, 4.2rem)/.95 Georgia, serif; }.lede { margin: 0 auto 20px; color: #cde0d7; line-height: 1.5; max-width: 52ch; }
.pet-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; max-height: 190px; overflow: auto; margin-bottom: 16px; }.pet-card { padding: 12px; text-align: left; border-radius: 13px; border: 1px solid #ffffff22; background: #ffffff0c; }.pet-card[aria-checked="true"] { border-color: #f2ce69; background: #f2ce6918; box-shadow: inset 0 0 0 1px #f2ce69; }.pet-card strong, .pet-card small { display: block; }.pet-card small { color: #a9cbbd; margin-top: 4px; }.pet-dot { display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; box-shadow: 0 0 12px currentColor; }
.briefing { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0; font-size: .8rem; color: #cde0d7; }kbd { padding: 2px 6px; border: 1px solid #ffffff35; border-radius: 5px; background: #0003; }.primary, .secondary { border: 0; border-radius: 999px; padding: 13px 24px; font-weight: 900; cursor: pointer; }.primary { background: #f0c760; color: #17312e; }.primary:disabled { opacity: .55; }.secondary { background: #ffffff12; margin-left: 8px; }.load-note { min-height: 1.2em; margin: 10px 0 0; color: #9fc5b7; font-size: .8rem; }
.scoreboard { position: absolute; z-index: 3; top: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; max-width: calc(100% - 28px); }.score-chip { min-width: 95px; padding: 8px 10px; border-radius: 12px; background: #102b2bd9; border: 1px solid #ffffff22; text-align: center; }.score-chip.player { border-color: #f0c760; }.score-chip small, .score-chip strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.score-chip small { color: #a9cbbd; font-size: .65rem; }.score-chip strong { letter-spacing: 3px; color: #f0c760; }
.round-banner { position: absolute; z-index: 3; inset: 17% 0 auto; text-align: center; font: 900 clamp(2rem, 8vw, 6rem)/1 Georgia, serif; color: #fff6ce; text-shadow: 0 5px 20px #000; pointer-events: none; }.result-panel[hidden], .setup-panel[hidden], .scoreboard[hidden] { display: none; }
.touch-controls { position: absolute; z-index: 3; inset: auto 18px 18px; display: flex; justify-content: space-between; pointer-events: none; }.touch-controls button { pointer-events: auto; touch-action: none; border: 1px solid #ffffff38; background: #102b2bd4; border-radius: 13px; min-width: 54px; min-height: 50px; font-weight: 900; }.dpad { width: 164px; display: grid; grid-template-columns: repeat(3, 1fr); }.dpad button:first-child { grid-column: 2; }.dpad button:nth-child(2) { grid-column: 1; }.bump { align-self: end; width: 82px; height: 82px; border-radius: 50% !important; background: #bd593fe6 !important; }
footer { display: flex; justify-content: space-between; padding: 4px clamp(10px, 2vw, 22px); color: #91b7ac; font-size: .72rem; }
@media (hover:hover) and (pointer:fine) { .touch-controls { display: none; } }
@media (max-width: 650px) { .topbar { grid-template-columns: 1fr auto; }.topbar > div { text-align: right; }.topbar > button { display: none; }.score-chip { min-width: 62px; padding: 6px; }.score-chip small { max-width: 58px; }.panel { padding: 18px; }.briefing { display: none; }footer { display: none; } }

/* Farm Field Day menu language */
.setup-panel { width: min(700px, calc(100% - 32px)); max-height: calc(100% - 28px); overflow: auto; padding: clamp(25px, 4vw, 42px); border: 3px solid #173b3e; border-radius: 12px; background: #fff8dc; color: #173b3e; box-shadow: 9px 10px 0 #173b3eaa, 0 28px 80px #0009; backdrop-filter: none; }
.setup-panel::before { content: ""; position: absolute; inset: 0 0 auto; height: 11px; background: repeating-linear-gradient(90deg, #27869b 0 18px, #fff8dc 18px 36px); border-bottom: 2px solid #173b3e; }
.panel__header { position: relative; max-width: 590px; margin: 0 auto; }
.event-chip { display: inline-block; margin: 0 0 14px; padding: 6px 11px; background: #27869b; color: white; box-shadow: 3px 3px 0 #145366; font-size: .62rem; font-weight: 1000; letter-spacing: .16em; transform: rotate(1deg); }
.setup-panel .kicker { margin-bottom: 5px; color: #587276; }
.setup-panel h2 { color: #173b3e; font-family: Rockwell, "Roboto Slab", Georgia, serif; font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: .78; letter-spacing: -.05em; text-transform: uppercase; }
.setup-panel h2 em { color: #27869b; font-size: .86em; font-style: normal; }
.setup-panel .lede { max-width: 55ch; margin: 16px auto 18px; color: #526e70; font-weight: 650; }
.setup-panel .pet-choices { margin: 14px 0 15px; padding: 4px; }
.setup-panel .pet-card { border: 2px solid #173b3e33; border-radius: 7px; background: #f1e5bc; color: #173b3e; box-shadow: 2px 2px 0 #173b3e25; }
.setup-panel .pet-card[aria-checked="true"] { border-color: #173b3e; background: #78c8d4; box-shadow: 4px 4px 0 #173b3e; transform: translate(-2px, -2px); }
.setup-panel .pet-card small { color: #587276; }
.menu-rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0 19px; }
.menu-rules > span { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1px 8px; padding: 9px; border-top: 1px dashed #173b3e66; border-bottom: 1px dashed #173b3e66; text-align: left; }
.menu-rules kbd { grid-row: 1 / 3; min-width: 39px; margin: 0; border: 0; border-radius: 4px; background: #173b3e; color: white; box-shadow: 0 3px 0 #061b1d; font-size: .66rem; text-align: center; }
.menu-rules b { font-size: .7rem; text-transform: uppercase; }.menu-rules small { color: #657d7e; font-size: .6rem; }
.setup-panel .primary { min-width: min(320px, 100%); border: 2px solid #173b3e; border-radius: 5px; background: #ffd45f; color: #173b3e; box-shadow: 5px 5px 0 #173b3e; text-transform: uppercase; }
.setup-panel .primary:not(:disabled):hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 #173b3e; }
.setup-panel .load-note { color: #587276; }

@media (max-width: 650px) { .setup-panel { max-height: calc(100% - 18px); padding: 27px 15px 18px; }.setup-panel h2 { font-size: 2.6rem; }.setup-panel .lede { font-size: .78rem; }.menu-rules { grid-template-columns: 1fr; }.menu-rules > span { padding: 6px 8px; } }

/* In-world event setup — keep the arena visible instead of presenting a paper form. */
.setup-panel { left: clamp(18px, 4vw, 54px); width: min(570px, calc(100% - 36px)); transform: translateY(-50%); padding: clamp(22px, 3vw, 34px); border: 1px solid #ffffff38; border-left: 5px solid #57dbe4; border-radius: 5px; background: linear-gradient(105deg, rgba(5, 24, 25, .96), rgba(7, 32, 34, .78)); color: #fff7dc; box-shadow: 0 28px 90px #000c, inset 0 1px #fff2; text-align: left; backdrop-filter: blur(16px) saturate(1.2); }
.setup-panel::before { height: 4px; background: linear-gradient(90deg, #57dbe4, transparent 72%); border: 0; }
.panel__header { max-width: none; margin: 0; }
.event-chip { margin-bottom: 10px; padding: 0; background: none; color: #57dbe4; box-shadow: none; letter-spacing: .2em; transform: none; }
.setup-panel .kicker { color: #b9ceca; }
.setup-panel h2 { color: #fff9e6; font-size: clamp(2.8rem, 6vw, 5rem); text-shadow: 0 5px 24px #000; }
.setup-panel h2 em { color: #57dbe4; }
.setup-panel .lede { max-width: 52ch; margin: 14px 0 17px; color: #c9d9d5; font-weight: 600; }
.setup-panel .pet-choices { max-height: 120px; margin: 10px 0; display: flex; }
.setup-panel .pet-card { flex: 1 0 145px; min-height: 70px; padding: 10px 12px; border: 1px solid #ffffff25; border-radius: 4px; background: #ffffff0c; color: #fff7dc; box-shadow: none; }
.setup-panel .pet-card[aria-checked="true"] { border-color: #57dbe4; background: #57dbe41c; box-shadow: inset 4px 0 #57dbe4; transform: none; }
.setup-panel .pet-card small { color: #a9c2bd; }
.menu-rules { margin: 10px 0 17px; gap: 4px; }
.menu-rules > span { border-color: #ffffff27; }
.menu-rules kbd { background: #ffffff16; color: #fff; box-shadow: none; }
.menu-rules b { color: #fff; }.menu-rules small { color: #9db7b2; }
.setup-panel .primary { border: 1px solid #a3f1f5; border-radius: 4px; background: #57dbe4; color: #102a2b; box-shadow: 0 8px 24px #0006; }
.setup-panel .primary:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 12px 28px #0007; }
.setup-panel .load-note { color: #a9c2bd; }

@media (max-width: 650px) { .setup-panel { left: 50%; width: calc(100% - 24px); transform: translate(-50%, -50%); padding: 22px 16px 16px; }.setup-panel h2 { font-size: 2.8rem; }.setup-panel .lede { margin: 8px 0; }.setup-panel .pet-choices { margin: 6px 0; }.menu-rules { grid-template-columns: repeat(3, 1fr); margin: 6px 0 11px; }.menu-rules > span { display: block; text-align: center; }.menu-rules kbd { display: block; margin: 0 auto 5px; }.menu-rules b { display: block; }.menu-rules small { display: none; } }

/* Menus, online and results (2026-09-28): the touch pad only shows in a match; a seat that left is dimmed. */
.touch-controls:not(.is-playing) { display: none; }
.score-chip.is-gone { opacity: .45; }
.result-panel .result-standings { max-height: 150px; margin: 10px auto 12px; }
.result-panel .result-standings li.is-player { color: #f0c760; font-weight: 900; }

/* Short landscape screens: every pixel of height goes to the game. */
@media (max-height: 520px) { footer, .topbar .eyebrow { display: none; } .topbar { padding-block: 4px; } }
