* { box-sizing: border-box; }
:root { font: 17px system-ui, sans-serif; color: #fff2da; background: #101a17; }
body { margin: 0; }
main { display: grid; grid-template-columns: minmax(0, 680px) minmax(260px, 360px); gap: 24px; max-width: 1120px; margin: 32px auto; padding: 0 18px; }
.table, .controls { border: 1px solid #586c55; border-radius: 22px; padding: 22px; }
.table { background: radial-gradient(ellipse at 50% 35%, #315b43, #182f28 72%); }
header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
h1 { font-size: clamp(24px, 5vw, 38px); margin: 0 0 16px; }
h2 { font-size: 18px; }
#round, #kitty, #status { color: #d9c9a2; }
#seats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seat { background: #10241f; border: 1px solid #516b59; border-radius: 12px; padding: 12px 8px; text-align: center; }
.active { border-color: #ffd78e; color: #ffd78e; }
#history { display: grid; gap: 6px; min-height: 236px; align-content: start; }
.turn { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; min-height: 34px; }
.turn > strong { min-width: 116px; }
.card { color: #252420; background: #fff3d9; padding: 3px 7px; border-radius: 5px; font-weight: 700; }
#pet { display: block; width: 100%; max-height: 32vh; object-fit: contain; }
#caption { font-size: 1.2em; text-align: center; min-height: 3em; }
button, input { font: inherit; border-radius: 8px; padding: 8px 10px; }
button { border: 0; background: #f1d49e; color: #14251f; cursor: pointer; }
input { min-width: 0; width: 100%; border: 1px solid #586c55; background: #172824; color: inherit; }
.buttons, form { display: flex; flex-wrap: wrap; gap: 8px; }
a { color: #ffd78e; }
.obs main { display: block; margin: 0; padding: 0; max-width: none; }
.obs .controls { display: none; }
.obs .table { min-height: 100vh; border: 0; border-radius: 0; padding: 4vw; font-size: clamp(18px, 3vw, 34px); }
.obs #pet { max-height: 36vh; }
.obs #history { min-height: 30vh; }
:root:has(.pet-only), .pet-only .table { background: transparent; }
.pet-only main { display: block; margin: 0; padding: 0; }
.pet-only .table { border: 0; padding: 0; }
.pet-only .controls, .pet-only .table > :not(#pet):not(#caption) { display: none; }
.pet-only #pet { max-height: none; }
.pet-only #caption { margin: 0; min-height: 0; color: white; text-shadow: 0 1px 4px black, 0 2px 8px black; }
@media (max-width: 740px) { main { grid-template-columns: 1fr; margin: 14px auto; } }
