.online-page { height: auto; min-height: 100vh; min-height: 100dvh; }
.online-page a:focus-visible, .online-page input:focus-visible { outline: 3px solid #bc7525; outline-offset: 3px; }
.online-main { padding-block: clamp(20px, 4vw, 50px); }
#round-setup { display: grid; gap: 7px; max-width: 30rem; }
#round-setup label { font-size: .9rem; font-weight: 650; }
#round-setup select, #round-setup input { width: 100%; min-height: 40px; border: 1px solid #aaaf9f; border-radius: 5px; background: #fffdf7; color: var(--ink); font: inherit; font-size: 16px; padding: 6px 10px; }
#round-setup select:focus-visible { outline: 3px solid #bc7525; outline-offset: 3px; }
#custom-time-field { display: grid; gap: 4px; }
#round-setup #timeout-help { margin: 0; color: var(--muted); font-size: .82rem; }
#round-setup .primary-btn { margin-top: 5px; }
#storage-status { color: var(--red); margin-bottom: 12px; }
.online-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(270px, 1fr); gap: clamp(12px, 2vw, 24px); max-width: 1040px; margin-inline: auto; }
.online-grid > .ad-slot { grid-column: 1 / -1; min-height: 100px; }
.online-page:has(#online-table[hidden]) #room-status { max-width: 1040px; margin-inline: auto; }
.room-felt { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: center; min-width: 0; min-height: 305px; padding: clamp(29px, 5vw, 60px); overflow: hidden; color: #faf2db; background: radial-gradient(ellipse at 30% 10%, #286354, #123e34 85%); border: 1px solid #153b30; border-radius: 13px; }
.room-felt::before { position: absolute; content: ""; inset: 9px; border: 1px solid #b3a06a9c; outline: 1px solid #b3a06a61; outline-offset: 3px; border-radius: 5px; pointer-events: none; }
.room-felt .landscape { width: 100%; bottom: 0; opacity: .43; }
.felt-copy h2 { font: 750 clamp(26px, 3.1vw, 38px)/1.2 var(--serif); letter-spacing: .065em; }
.felt-copy p { margin-top: 9px; color: #d9e2ce; font-size: .92rem; }
.entry-tiles { display: flex; align-items: flex-end; margin: 0 0 24px 6px; }
.entry-tiles img { width: clamp(36px, 4vw, 52px); transform: rotate(-7deg); filter: drop-shadow(0 3px 3px #08291e); }
.entry-tiles img + img { margin-left: -4px; }
.entry-tiles img:nth-child(2) { transform: rotate(-3deg) translateY(-3px); }
.entry-tiles img:nth-child(3) { transform: rotate(2deg) translateY(-4px); }
.entry-tiles img:nth-child(4) { transform: rotate(7deg) translateY(-1px); }
.room-paper { align-self: stretch; padding: clamp(20px, 3.7vw, 42px); background: #fcfaf4; border: 1px solid var(--line); border-radius: 11px; min-width: 0; }
.room-switch { display: flex; border-bottom: 1px solid var(--line); margin: -2px 0 23px; }
.room-switch button { flex: 1; border: 0; border-bottom: 2px solid transparent; padding: 9px 6px; background: transparent; color: var(--muted); font-weight: 650; font-size: 1rem; }
.room-switch button[aria-pressed="true"] { border-bottom-color: var(--red); color: var(--red); }
#room-form { display: grid; }
#room-form label { display: block; margin-bottom: 5px; color: #394739; font-size: .92rem; font-weight: 650; }
.room-paper input { width: 100%; min-width: 0; min-height: 45px; padding: 9px 12px; border: 1px solid #aaaf9f; border-radius: 5px; background: #fffdf7; color: var(--ink); font: inherit; font-size: 16px; }
#room-code, #invite-code { text-transform: uppercase; letter-spacing: .14em; }
#room-code::placeholder { letter-spacing: normal; }
#room-submit, #code-field { margin-top: 17px; }
.room-paper .primary-btn, .room-paper .outline-btn { min-height: 43px; width: 100%; }
.room-paper .primary-btn:disabled { opacity: .64; }
.room-resume { display: inline-block; margin-top: 16px; color: var(--green); text-underline-offset: 3px; font-size: .87rem; }
#lobby-seats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 18px; margin: 25px 0 0; padding: 0; list-style: none; }
#lobby-seats li { min-width: 0; display: flex; align-items: center; gap: 9px; }
#lobby-seats .wind { width: 34px; height: 34px; }
.lobby-seat-name { overflow-wrap: anywhere; font-weight: 650; }
.lobby-seat-note { display: block; color: #d1dbc4; font-size: .75rem; }
#lobby-seats .empty { color: #c3cebb; }
.lobby-paper h2 { font: bold 24px/1.3 var(--serif); }
.lobby-paper p { color: var(--muted); font-size: .88rem; margin: 6px 0 10px; }
.lobby-code { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px 12px; margin: 14px 0 12px; }
.lobby-code span { font-size: .85rem; color: var(--muted); }
#invite-code { font: 700 clamp(23px, 3vw, 32px)/1.2 ui-monospace, monospace; color: var(--green); }
#invite-url { margin-top: 8px; }
.lobby-start { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 10px; }
#room-status { padding: 9px 13px; border-left: 3px solid var(--red); margin-bottom: 12px; background: #f6e8de; color: #77352b; font-size: .9rem; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .online-main { padding-block: 16px; }
  .online-grid { grid-template-columns: minmax(0,1fr); }
  .room-felt { min-height: 0; padding: 25px; }
  .entry-felt { align-items: center; justify-content: space-between; flex-direction: row-reverse; gap: 12px; }
  .entry-tiles { margin: 0; flex-shrink: 0; }
  .entry-tiles img { width: clamp(21px,5vw,32px); }
  .felt-copy p { font-size: .84rem; }
  #lobby-seats { margin-top: 16px; gap: 10px; }
  .room-paper { padding: 20px; }
}
