/* A scorebook: ink rules, tabular figures and paper margins. */
body{background:var(--cream);color:var(--ink)}h1,h2{font-family:Georgia,"Times New Roman",serif;font-weight:500}.brand{letter-spacing:-.05em}.bar nav a{font-size:.96rem}.hero h1{font-weight:500;letter-spacing:-.065em}.hero .art{border-radius:2px}.hero .clockcard{border-radius:8px}.grid section,#veiledning,#room section{border:0;border-top:2px solid var(--line);border-radius:0;background:transparent;padding-inline:0}button,.button,input:not([type=checkbox]),textarea{border-radius:5px}#hostctrl label{margin:.8rem 0}select{font:inherit;margin:0 .6rem;padding:.45rem;max-width:95%}
.journal main{max-width:940px;min-height:70vh;padding-bottom:45px}.mast{border-bottom:4px double var(--line);padding:clamp(32px,6vw,78px) 0 21px;display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:10px}.mast h1{font-size:clamp(48px,8vw,102px);margin:0;letter-spacing:-.075em}.mast h1 span{color:var(--accent)}#signature{font:italic 22px Georgia,serif}.journal h2{font:500 clamp(27px,4vw,43px)/1.16 Georgia,serif;letter-spacing:-.045em}.journal article{padding:30px 0 10px;scroll-margin-top:24px}.journal article+article{border-top:1px solid var(--line);margin-top:22px}#auth{display:grid;grid-template-columns:1fr 1fr;gap:7%;padding:38px 0}.intro p{max-width:32ch}.journal fieldset{border:0;padding:0}.journal legend{position:absolute;clip-path:inset(50%)}.tabs,.journalnav{display:flex;align-items:center;gap:18px;border-bottom:1px solid var(--border);padding-bottom:10px;margin:0 0 22px}.tabs button,.textbutton{color:var(--ink);background:none;padding:4px 0;font-weight:500;border-radius:0}.tabs button[aria-pressed=true]{border-bottom:2px solid var(--ink);font-weight:750}.journalnav{padding:14px 0;flex-wrap:wrap}.journalnav a{font-weight:650;text-decoration:none}.journalnav button{margin-left:auto}.textbutton{text-decoration:underline;cursor:pointer}#passhelp{margin:0 0 12px}#notice:not(:empty){border-left:3px solid #ab4935;padding:6px 12px}.score{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}.score th,.score td{text-align:right;padding:10px 2px;border-bottom:1px solid var(--line)}.score th:first-child,.score td:first-child{text-align:left}.score td:first-child{font:23px Georgia,serif}.score th{font-size:14px}.entry{display:grid;grid-template-columns:7em 1fr 1fr;gap:14px;padding:14px 0;border-bottom:1px solid var(--line)}.entry strong{font:600 20px Georgia,serif}.entry small{color:var(--muted)}.entry time{font-size:14px}.entry small,.entry time,.score{font-variant-numeric:tabular-nums}.empty{font-style:italic;max-width:52ch}.friendrow{display:flex;align-items:center;gap:12px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding:11px 0}.friendrow b{margin-right:auto}#friendform{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-bottom:20px}#friendform input{margin-bottom:0}#reload{margin-top:14px}.journal a:focus-visible{outline:3px solid #367195}
@media(max-width:700px){#auth{grid-template-columns:1fr;gap:28px}.bar nav a:first-child{display:block}.bar nav{gap:.7rem}.bar nav a{font-size:14px}.brand{font-size:19px;gap:.3rem}.brand img{width:28px}.journalnav{gap:12px}.entry{grid-template-columns:1fr 1fr}.entry time{grid-column:1/-1}.score td:first-child{font-size:18px}.mast{padding-top:32px}.bar{gap:5px}}

.tabletitle{display:flex;align-items:baseline;justify-content:space-between;gap:20px;flex-wrap:wrap;border-bottom:4px double var(--line);padding:40px 0 10px}
.tabletitle h1{font:500 clamp(57px,8.5vw,122px)/1 Georgia,serif;letter-spacing:-.075em;margin:0}
.tabletitle a{font:italic 20px Georgia,serif}
.opening{display:flex;align-items:center;gap:14px;margin:18px 0 35px}.opening img{width:32px;transform:rotate(-8deg)}.opening p{margin:0;font-size:18px}.opening button{margin-left:auto}
#home>.grid{gap:clamp(24px,7vw,90px)}#opprett form{display:grid;grid-template-columns:2fr 1fr;column-gap:15px}#opprett button{grid-column:1/-1;justify-self:start}
#home #veiledning{border-top:4px double var(--line)}#home input:not([type=checkbox]),.journal input:not([type=checkbox]){background:transparent;border:0;border-bottom:1px solid var(--border);border-radius:0;padding-left:0}
.gamefilter{font:inherit;color:inherit;background:none;padding:3px 0;text-align:left;text-decoration:underline;text-decoration-color:#baaca8;text-underline-offset:4px}
@media(max-width:700px){.opening{flex-wrap:wrap}.opening p{flex:1}.opening button{margin-left:0}.tabletitle{padding-top:24px}.tabletitle a{font-size:16px}#opprett form{grid-template-columns:1.4fr 1fr}#home>.grid{gap:0}}
.entry small{display:block;margin-top:2px}.journal #passhelp{display:block}.score th:first-child{width:55%}

#setup:has(#mode) {grid-template-columns:repeat(2,minmax(0,1fr));row-gap:.65rem}
#setup select,#withFriend {display:block;width:100%;font:inherit;color:var(--ink);background:var(--white);border:0;border-bottom:1px solid var(--border);padding:.55rem 0}
#setup #modehelp {grid-column:1/-1;margin:0 0 .5rem;font-family:Georgia,serif}
#special {display:flex;flex-wrap:wrap;gap:.6rem;margin-bottom:1rem}
#withFriend {max-width:24rem;margin-bottom:1rem}
#summary {font-family:Georgia,serif;font-size:1.15rem}
@media(max-width:480px){#setup:has(#mode){grid-template-columns:1fr}}

/* Spillerplassene er faste mens turen går rundt bordet. */
.seat strong,.seat small{display:block;overflow-wrap:anywhere}
.seat small{font-weight:500;font-size:1rem}
.splitview #seats{display:grid;gap:5px}
.splitview .seat{min-height:clamp(110px,18svh,190px);margin:0;text-align:center;border:2px solid transparent}
.splitview .seat.active{border-color:var(--ink)}
.splitview .seat strong{font:600 clamp(28px,6vw,50px)/1.12 Georgia,serif}
.splitview .opposite .seat:first-child strong,.splitview .opposite .seat:first-child small{transform:rotate(180deg)}
.splitview .opposite .seat:first-child{display:flex;flex-direction:column-reverse;align-items:center;justify-content:center}
#facingLabel{margin:12px 0 20px}
.splitview .live{padding:14px 20px;margin:10px 0}
.splitview .live output{font-size:clamp(48px,8vh,88px)}
.splitview .live h1{font-size:clamp(26px,5vh,54px)}
.splitview .live p{margin:0}
@media(min-width:720px){.boardview .live{min-height:58vh;display:grid;align-content:center;text-align:center}.boardview .live h1{font-size:clamp(58px,8vw,140px)}.boardview .live output{font-size:clamp(100px,min(19vw,32vh),280px)}}
#partier #entries{border-top:3px double var(--ink);padding-inline:clamp(8px,2vw,22px);background:linear-gradient(to right,transparent 0 8px,#ad756947 8px 9px,transparent 9px),var(--white)}
#partier .entry{padding-left:12px;align-items:baseline;border-bottom:1px solid var(--line)}
#partier .entry>*{min-width:0;overflow-wrap:anywhere}
#summary{white-space:pre-line;font-variant-numeric:tabular-nums}
#rematch:not(:empty){padding:0 0 18px}
#syncStatus:not([hidden]){padding:.75rem 1rem;background:var(--ink);color:var(--cream);border-radius:8px}
#play[inert] .live output{visibility:hidden}
#extraAccount[open]{padding-bottom:1rem}
#lobbyDevices{padding-left:1.25em}
#lobbyDevices:not(:empty)+button{margin-bottom:1rem}
#entries details{font-size:.94rem;margin-top:.4rem}
.scoreScroll{max-width:100%;overflow-x:auto}#boardPhoto{display:block;max-width:100%;max-height:65vh}#tableTools details,#sameTable>*{margin-bottom:1rem}#scoreForm{display:flex;flex-wrap:wrap;gap:.75rem;align-items:end}#scoreForm input{max-width:6em}#tableTools select{display:block;font:inherit}
@media(prefers-reduced-motion:no-preference){.tableSignal .seat.active,.live output.tableSignal{animation:turnSignal .65s ease-out}@keyframes turnSignal{from{outline:5px solid #f8c75c;outline-offset:-6px}to{outline:1px solid transparent;outline-offset:-4px}}}

/* Spilloppsett og en merket annonseflate på forsiden. */
#setup .gamepick,#setup .clockpick,#setup #customrow{grid-column:1/-1}
.gamebox{position:relative;display:flex;align-items:center;min-height:58px;margin-top:5px;border:1px solid #847282;border-radius:10px;background:var(--white)}
.gamepiece{position:absolute;left:16px;font-size:26px;pointer-events:none}
#setup .gamebox select{appearance:none;border:0;border-radius:10px;background:transparent;padding:15px 44px 15px 52px;font:600 21px Georgia,serif;color:var(--ink);cursor:pointer}
.down{position:absolute;right:17px;pointer-events:none;font-size:21px}
.gamebox:focus-within,#clockoptions label:focus-within{outline:3px solid #367195;outline-offset:2px}
#setup .clockpick{min-width:0;padding:0;border:0;margin:5px 0}
.clockpick legend{padding:0;margin-bottom:5px}
#clockoptions{display:grid;gap:6px}
#clockoptions label{display:flex;gap:12px;padding:10px 14px;align-items:center;border:1px solid #c6b9ad;border-radius:9px;background:var(--white);cursor:pointer}
#clockoptions label:has(:checked){background:var(--soft);border-color:#634557;box-shadow:inset 3px 0 #634557}
#home #clockoptions input{appearance:auto;width:18px;height:18px;margin:0;padding:0;flex:none;accent-color:#532e48}
#clockoptions small,#clockoptions b{display:block}#clockoptions small{color:var(--muted);font-size:14px;line-height:1.3}
#clockoptions label:hover,.gamebox:hover{border-color:var(--ink)}
#home>.grid{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:clamp(18px,3vw,40px)}
.rightColumn{min-width:0}.adexample{margin:24px 0 30px}.adexample>small{display:block;color:var(--muted);font-size:12px;letter-spacing:.06em;margin-bottom:6px}
.printad{background:#264b41;color:#fff6d9;display:flex;align-items:center;justify-content:space-between;padding:clamp(18px,2.4vw,32px);overflow:hidden;gap:.5rem}
.deck{font-size:11px;letter-spacing:.21em;font-weight:700}.printad strong{display:block;font:italic 500 clamp(32px,3.7vw,54px)/.99 Georgia,serif;margin-top:12px}
.cardpile{position:relative;width:110px;height:110px;flex:none}.cardpile i{position:absolute;display:grid;place-items:center;top:8px;left:4px;width:62px;height:88px;background:#f8efda;color:#24443e;border:3px double #325649;border-radius:6px;font:42px Georgia,serif;transform:rotate(-16deg)}.cardpile i+i{left:35px;top:17px;transform:rotate(14deg);color:#ad4838}
@media(max-width:700px){#home>.grid{grid-template-columns:1fr}.printad{padding:15px 22px}.printad strong{font-size:30px}.cardpile{height:84px;transform:scale(.8);transform-origin:right center}.adexample{margin:0 0 20px}}
@media (max-width: 440px) {
  .table-header .bar { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 0; }
  .table-header nav { width: 100%; justify-content: space-between; flex-wrap: wrap; }
  .table-header .brand, .table-header nav a { white-space: nowrap; }
}

/* Use spacing for groups and reserve outlines for interactive controls. */
.tabletitle,.mast,#home #veiledning,.journal article+article{border:0}
.tabletitle{padding-bottom:0}
#home .grid section,#room #joinbox,#room #lobbyRoster,#room #play>section{border:0}
#clockoptions{gap:2px}
#clockoptions label{border:0;background:transparent;padding:9px 10px}
#clockoptions label:has(:checked){background:var(--soft);box-shadow:none}
#partier #entries{border:0;background:none;padding-inline:0}
#partier .entry{padding-left:0}
.journal #partier h2{margin-bottom:.7em}
#konto form{max-width:26rem;margin-top:1rem}
footer a{font-weight:500;text-underline-offset:.2em}
.privacy{max-width:62ch;padding-top:clamp(26px,6vw,64px)}
.privacy h1{margin-top:0}
.privacy article{padding-top:1.5rem}
#joinbox:has(~ #lobbyRoster[hidden]){max-width:35rem}
#room .grid:has(#invitebox[hidden]){grid-template-columns:1fr}

/* Bare forsiden bruker ytterkantene til annonseeksempler. */
.rail{display:none}
.ad-bottom{width:min(100%,780px);margin:16px auto 32px}
.ad-bottom .printad{padding:14px clamp(20px,5vw,72px)}
.ad-bottom .printad strong{margin:4px 0;font-size:clamp(26px,3vw,44px)}
.ad-bottom .cardpile{height:85px;transform:scale(.8);transform-origin:center}
@media(min-width:1200px){
  main:has(#home:not([hidden])){width:min(96%,1570px)}
  #home{display:grid;grid-template-columns:clamp(135px,11vw,176px) minmax(0,1fr) clamp(135px,11vw,176px);column-gap:clamp(20px,2.2vw,40px);grid-auto-flow:row}
  #home>*{grid-column:2}
  #home>.rail{display:block;grid-row:1 / span 7;align-self:start;margin:clamp(56px,6vw,100px) 0 0}
  #home>.rail-left{grid-column:1}
  #home>.rail-right{grid-column:3}
  .poster{height:clamp(235px,22vw,338px);padding:clamp(12px,1.4vw,24px);display:flex;flex-direction:column;justify-content:space-between;overflow:hidden}
  .poster strong{font:italic 500 clamp(26px,2.15vw,36px)/1 Georgia,serif}
  .poster span{font:clamp(74px,7vw,110px)/1 Georgia,serif;align-self:center}
  .diceposter{background:#e9c18f;color:#4d342a}.chessposter{background:#e0dce7;color:#453849}
  .ad-bottom{justify-self:center}
}

/* Spillvalg, oversikt og venner bruker de samme papirfargene som bordet. */
#chooseGame{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;margin-top:6px;text-align:left;color:var(--ink);background:var(--white);border:1px solid #ac99a5;padding:14px 16px;min-height:76px}
#chooseGame b{font:500 26px Georgia,serif;display:block}
#chooseGame small{display:block;color:var(--muted);font-weight:400;font-size:14px;margin-top:3px}
.chooseHint{font-size:14px;text-decoration:underline;text-underline-offset:.22em;flex:none}
dialog{color:var(--ink);background:var(--white);border:0;border-radius:12px;box-shadow:0 18px 70px #28132a44;padding:24px;width:min(540px,calc(100% - 28px));max-height:85svh}
dialog::backdrop{background:#21142188}
.dialogHeading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}
.dialogHeading h2{font-size:32px;margin:0}
.dialogHeading .textbutton{min-height:44px}
.searchLabel{font-size:14px}
#gameSearch{margin-top:6px;border:1px solid #998893;background:var(--white);border-radius:6px;padding:12px}
#gameResults{max-height:50svh;overflow-y:auto;overscroll-behavior:contain}
.gameChoice{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:65px;text-align:left;background:transparent;color:var(--ink);border-radius:5px;padding:12px 14px;font-weight:400;margin-bottom:2px}
.gameChoice strong{display:block;font-size:18px;font-weight:600}
.gameChoice small{font-size:14px;color:var(--muted);display:block;margin-top:2px}
.gameChoice[aria-pressed=true]{background:var(--selected)}
.gameChoice:hover{background:var(--soft)}
.selectedWord{font-size:12px;font-weight:650}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #367195;outline-offset:3px}
.journalnav{gap:6px;border:0;padding:12px 0 24px;justify-content:flex-start}
.journalnav a{padding:9px 13px;border-radius:6px;font-size:15px;white-space:nowrap;min-height:44px;display:flex;align-items:center}
.journalnav a[aria-current=page]{background:var(--selected);color:var(--ink)}
.journalnav a:hover{background:var(--soft)}
.journal #inside article{padding-top:24px}
#journalFilters{padding-bottom:3px}
.periods{display:flex;gap:3px;flex-wrap:wrap;align-items:center}
.periods button{background:transparent;color:var(--muted);padding:9px 12px;font-size:14px;min-height:44px;border-radius:5px;font-weight:500}
.periods button[aria-pressed=true]{background:var(--ink);color:var(--white)}
.filterline{display:flex;flex-wrap:wrap;gap:18px;margin-top:16px}
.filterline label{font-size:13px;flex:1;min-width:120px}
.filterline select{font-size:15px;margin:5px 0 0;min-height:44px;max-width:100%;width:100%;background:transparent;border:0;border-bottom:1px solid var(--border);color:var(--ink);border-radius:0;padding:6px 0}
#withFriend{margin-bottom:0;max-width:100%}
#filterContext{font-size:13px;margin:12px 0 0;min-height:1.5em;color:var(--muted)}
.metrics{display:grid;grid-template-columns:1fr 1fr 1fr;gap:clamp(12px,3vw,40px);padding:18px 0 12px}
.metric{min-width:0}
.metric small{font-size:14px;display:block}
.metric strong{display:block;font:500 clamp(26px,4.8vw,52px)/1.2 Georgia,serif;font-variant-numeric:tabular-nums;padding:8px 0}
.metric span{display:block;font-size:13px;color:var(--muted);max-width:23ch}
#summary{font-size:14px;line-height:1.6;margin-top:10px}
#summary:empty{display:none}
#activity figure{margin:28px 0 32px}
#activity figcaption{font-size:14px;margin-bottom:14px}
.activityBars{display:flex;gap:clamp(12px,5vw,48px);align-items:flex-end;max-width:560px}
.activityMonth{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0}
.activityMonth b{font-size:12px;font-weight:500}
.activityBar{width:100%;max-width:42px;background:#947986;border-radius:3px 3px 0 0}
.activityMonth:last-child .activityBar{background:#512b47}
.activityMonth small{font-size:12px}
.playDays{display:grid;grid-template-columns:repeat(15,minmax(0,1fr));gap:5px;max-width:580px}
.playDays span{text-align:center;font-size:12px;line-height:28px;color:var(--muted)}
.playDays .played{background:var(--soft);color:var(--ink);border-radius:4px;font-weight:700}
.sectionHeading{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:10px 0 14px}
.sectionHeading h2,.sectionHeading h3{margin:0}
.sectionHeading h3{font:500 25px Georgia,serif}
.sectionHeading>a{font-size:14px}
.historyMonth{font:500 23px Georgia,serif;margin:28px 0 4px}
.friendrow{gap:14px;padding:18px 0;border-color:var(--line)}
.friendInitial{width:44px;height:44px;display:grid;place-items:center;background:var(--soft);color:var(--ink);border-radius:50%;font:500 25px Georgia,serif;flex:none}
.friendCopy{flex:1;min-width:110px}
.friendCopy small{display:block;font-size:13px;line-height:1.5;color:var(--muted);margin-top:2px}
.friendName{padding:0;background:transparent;color:inherit;font:600 19px Georgia,serif;text-align:left;border-radius:0;overflow-wrap:anywhere}
.friendName:hover{text-decoration:underline}
.friendrow>.sub{font-size:14px;min-height:44px}
#friendInvite{margin:20px 0}
#friendTabs{margin-bottom:12px}
#rematch button{margin:3px 8px 8px 0}
#rematch a{font-size:14px;white-space:nowrap}
#shelfForm{max-width:32rem}
#shelf #picks small{color:var(--muted)}
@media(max-width:520px){
  .journal .mast{padding-top:24px}
  .journal .mast h1{font-size:clamp(39px,10vw,55px)}
  .journalnav{gap:0;justify-content:space-between;padding-bottom:18px}
  .journalnav a{font-size:13px;padding-inline:7px}
  .metrics{gap:14px}
  .metric strong{font-size:clamp(25px,6.9vw,36px)}
  .metric span{font-size:12px}
  .playDays{grid-template-columns:repeat(10,minmax(0,1fr))}
  .friendrow{gap:10px}
  .friendrow>.sub{padding:10px 12px}
  .journal h2{font-size:29px}
}
@media(max-width:700px){.journalnav a:first-child{display:flex}}
.journalnav a:last-child{border:0;border-radius:6px;padding:9px 13px}
#withFriend{background:transparent}
@media(max-width:520px){.journalnav a:last-child{padding-inline:7px}}

.journal #inside>article{margin-top:0;padding-top:18px}

/* Keep the clock primary on shared phones and distant board displays. */
.splitview .live output{font-size:clamp(96px,13vh,132px)}.splitview .live h1{font-size:clamp(22px,3vh,30px)}
@media(min-width:720px){.boardview .live h1{font-size:clamp(32px,4vw,56px)}.boardview .live output{font-size:clamp(160px,min(22vw,36vh),320px)}}
.splitview .seat strong{font-size:clamp(34px,7vw,54px)}.splitview .live h1{font-size:clamp(28px,4vh,40px)}.seat strong{overflow-wrap:anywhere}.startKind{display:flex;gap:14px;flex-wrap:wrap;padding:12px;margin-bottom:18px}.startKind label{display:flex;gap:8px;align-items:center;min-height:44px;margin:0;cursor:pointer}.startKind input{accent-color:var(--ink)}
@media(min-width:720px){.boardview .live h1{font-size:clamp(40px,5vw,76px)}}

.splitview .seat{border-left:6px solid var(--player-color,var(--ink))}.splitview .seat.active:disabled{border-color:var(--player-color,var(--ink))}

.startKind input[type=radio]{width:18px;height:18px;padding:0;margin:0;flex:0 0 18px;display:inline-block;accent-color:var(--ink)}#countdownVolume{height:44px;padding:0;border:0;background:transparent;accent-color:var(--ink)}

/* One task per start action, shared with the native home. */
.startChoices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:24px 0 32px}
.startChoice{display:grid;grid-template-columns:1fr 24px;grid-template-rows:56px 1fr;gap:24px 14px;min-width:0;min-height:224px;padding:24px;text-align:left;border:0;border-radius:20px;background:var(--ink);color:var(--cream);transition:background-color .15s ease,opacity .15s ease}
.startChoice.sub{background:var(--white);color:var(--ink)}
.startChoiceIcon{display:grid;place-items:center;width:56px;height:56px;border-radius:16px;background:#ffffff14}
.startChoice.sub .startChoiceIcon{background:#391d380b}
.startChoiceIcon svg{width:38px;height:38px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.startChoiceCopy{grid-column:1/-1;display:flex;flex-direction:column;gap:8px;min-width:0}
.startChoiceCopy strong{font-size:1.25rem;line-height:1.25;letter-spacing:-.025em;font-weight:650;overflow-wrap:break-word}
.startChoiceCopy>span{font-size:.9rem;font-weight:400;line-height:1.45}
.startChoiceArrow{grid-column:2;grid-row:1;align-self:center;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.startChoice:focus-visible{outline:3px solid var(--ink);outline-offset:5px}
.startChoice:active{opacity:.78}
@media(hover:hover){.startChoice:hover{background:#502d4e}.startChoice.sub:hover{background:#eee6dc}}
@media(prefers-reduced-motion:reduce){.startChoice{transition:none}}
.startChoices[hidden]{display:none}#home>.grid{display:block;max-width:720px}#backToStart{min-height:44px;margin-bottom:16px}.table-header nav{flex-wrap:wrap}.table-header nav a{display:inline-flex;align-items:center;min-height:44px}#inviteMore{align-self:start}
@media(max-width:820px){.startChoices{grid-template-columns:1fr;gap:12px}.startChoice{grid-template-columns:48px minmax(0,1fr) 18px;grid-template-rows:auto;align-items:center;gap:16px;min-height:114px;padding:20px}.startChoiceIcon{width:48px;height:48px;border-radius:14px}.startChoiceIcon svg{width:34px;height:34px}.startChoiceCopy{grid-column:2;gap:6px}.startChoiceCopy strong{font-size:1.15rem}.startChoiceArrow{grid-column:3;grid-row:1;width:18px;height:18px}.tabletitle h1{font-size:36px}.table-header .bar{flex-wrap:wrap;gap:8px}.table-header nav{gap:18px}}
@media(max-width:360px){.startChoice{padding:18px 16px;gap:12px;grid-template-columns:40px minmax(0,1fr) 16px}.startChoiceIcon{width:40px;height:44px}.startChoiceIcon svg{width:30px;height:30px}.startChoiceArrow{width:16px}}

/* Keep the starting actions primary, with aligned navigation at narrow widths. */
#home .tabletitle h1{font-size:clamp(36px,4vw,56px)}
#home .tabletitle{padding-top:32px;padding-bottom:0}
.table-header nav a{margin:0;align-self:center}
.table-header .bar nav a:first-child{display:inline-flex}

/* Keep the current step in view; secondary choices remain available on demand. */
.visuallyHidden{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#home[data-start]>.homeIntro,#home[data-start]>#homeTools,#home[data-start]>#reopen,#home[data-start]>#resumeLocal,#home[data-start]>#savedGames{display:none}
#homeTools{margin:24px 0}#homeTools>summary{min-height:44px;display:flex;align-items:center;gap:8px;font-size:.9rem}
#homeTools>summary::before,#setupOptions>summary::before{content:'+';font-size:1.2em}#homeTools[open]>summary::before,#setupOptions[open]>summary::before{content:'−'}
#homeTools button{min-height:44px}#homeTools #localHistory{margin:12px 0}
#home[data-start] #backToStart{margin:16px 0 0}#home[data-start] #opprett,#home[data-start] #bli-med{padding-top:20px}
#setup .startKind{border:0;padding:0;gap:24px;margin:8px 0 4px;grid-column:1/-1}
#setup .startKind legend{position:absolute;clip-path:inset(50%)}
#setupOptions{grid-column:1/-1;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:8px 0 12px;padding:0}
#setupOptions>summary{display:flex;align-items:center;gap:10px;min-height:52px;font-weight:550}
#setupOptions[open]{padding-bottom:16px}#setupOptions .clockpick{margin:12px 0}#setupOptions label{margin:12px 0}#setupOptions select{margin-left:0}
#setup #localChoice{grid-column:1/-1;display:flex;align-items:center;gap:10px;min-height:44px;margin:0}#localChoice input{width:18px;height:18px;flex:none;accent-color:var(--ink)}
#setup #localHint{grid-column:1/-1;margin:-6px 0 0 28px;font-size:.85rem;line-height:1.4}
#setup #create{justify-self:stretch;min-height:52px}#setup #simpleClockHelp{grid-column:1/-1}
#playerFields:not(.editing) .dragHandle,#playerFields:not(.editing) .rowActions{display:none}
#playerFields:not(.editing) .playerDraft{grid-template-columns:minmax(0,1fr) 110px}
#playerFields:not(.editing) .playerDraft select{grid-column:2;margin:18px 0 0;max-width:100%;width:100%;font-size:.9rem}
#playerFields .playerDraft input{font-size:16px}
#editPlayers{display:block;min-height:44px;margin:12px 0}
#joinbox #join{min-height:52px}#lobby.quickStart>h1{display:none}#lobby.quickStart #join{width:100%}#lobby.quickStart #watch{display:none}
#joinbox #inviteMore{display:block;min-height:44px;margin:10px 0}
@media(max-width:700px){
 #home .tabletitle{padding-top:22px}#home .tabletitle h1{font-size:34px}.homeIntro p{font-size:1rem}
 #home .startChoices{gap:10px;margin:22px 0 12px}
 #home .startChoice{padding:16px;min-height:96px;gap:12px;grid-template-columns:40px minmax(0,1fr) 16px;border-radius:16px}
 #home .startChoiceIcon{width:40px;height:44px;background:none}#home .startChoiceIcon svg{width:30px;height:30px}
 #home .startChoiceCopy{gap:4px}#home .startChoiceCopy strong{font-size:1.05rem}#home .startChoiceCopy>span{font-size:.85rem}
 #home #setup{grid-template-columns:minmax(0,1fr)}#opprett h2{font-size:28px}#opprett .gamepick{margin-top:4px}
 #room:has(.quickStart){padding-top:18px}#lobby.quickStart #joinbox{padding-top:16px}#lobby.quickStart #joinbox h2{font-size:28px;max-width:17ch}
}
