/* One primary navigation; local and account history share the same destination. */
.bar{gap:20px}.brandAndSettings{margin-inline-end:auto}.bar>.appearanceTrigger{margin:0;order:3}.bar>nav{order:2;gap:8px}.bar>nav a:last-child{border:0;border-radius:12px}.bar>nav a[aria-current=page]{background:var(--soft);border-radius:12px}.settingsRow{display:flex;flex-direction:column;align-items:flex-start;gap:5px;width:100%;min-height:52px;padding:15px 0;background:transparent;color:var(--ink);text-align:start;border:0;border-bottom:1px solid var(--line);border-radius:0;text-decoration:none;font-size:16px}.settingsRow strong{font-weight:600}.settingsRow small{font-size:14px;color:var(--muted)}.settingsHelpLinks .settingsRow{padding:14px 0}.gameMenuGroup{border:0;border-top:1px solid var(--line);padding:18px 0 4px;margin:18px 0 0;background:transparent}.gameMenuGroup>h3{font:600 14px/1.4 -apple-system,BlinkMacSystemFont,sans-serif;color:var(--muted);margin:0 0 12px}.gameMenuGroup details{margin:0;border-bottom:1px solid var(--line);padding:14px 0}.gameMenuGroup .textbutton{display:block;min-height:44px;text-align:start}.gameMenuGroup .gameSoundSettings{border:0;padding:16px 0;margin:0}.gameMenuGroup #soundSettingsTitle{display:none}.soundSummary{margin-inline-start:16px;font-size:14px;font-weight:400;color:var(--muted)}#hostctrl{border-top:1px solid var(--line);padding-top:20px;margin-top:20px}.resumeGame{display:block;padding:16px 0;min-height:48px;text-align:start;border-bottom:1px solid var(--line);font-weight:600;overflow-wrap:anywhere;background:transparent;color:var(--ink)}#deviceGames{border:0;border-bottom:1px solid var(--line);padding:0 0 24px;margin:0 0 28px}#deviceGames h2{font-size:22px}#deviceGames .muted{font-size:14px;line-height:1.5}.localGameRow{padding:16px 0;border-bottom:1px solid var(--line)}.localGameRow strong{font-size:19px}.localGameRow p{margin:4px 0;overflow-wrap:anywhere}.journalnav[hidden]{display:none}#home[data-start]>.startHelp,#home[data-start]>#reopen,#home[data-start]>#resumeLocal{display:none}body:has(#room:not([hidden]))>footer{display:none}#localChoice{margin-top:18px}#localHint{font-size:14px;color:var(--muted)}#localHint .textbutton{font-size:14px;padding:8px 0;min-height:44px}.bar nav a{white-space:nowrap}#supportDialog,#storageDialog{width:min(480px,calc(100% - 32px));padding:24px}footer{justify-content:flex-start;gap:28px}footer .textbutton{font-size:14px;padding:8px 0}#historyAccountPrompt{margin:24px 0}
@media(max-width:700px){.bar{display:flex;flex-wrap:wrap;gap:8px 12px}.brandAndSettings{width:auto;flex:1}.bar>.appearanceTrigger{order:1}.bar>nav{order:4;width:100%;display:flex;justify-content:space-between;gap:4px}.bar>nav a{flex:1;text-align:center;min-height:44px;padding:12px 5px;font-size:14px}.journalnav{gap:6px;flex-wrap:wrap}.journalnav a{padding:10px 8px}.homeIntro h1{font-size:34px}.gameMenuGroup{padding-top:16px}footer{flex-wrap:wrap}#supportDialog,#storageDialog{padding:20px}}

@media(max-width:700px){body{padding-bottom:calc(76px + env(safe-area-inset-bottom))}.bar>nav{position:fixed;bottom:0;inset-inline:0;z-index:30;background:var(--cream);border-top:1px solid var(--line);padding:8px 10px calc(8px + env(safe-area-inset-bottom));box-sizing:border-box}.bar>nav a{border-radius:12px;min-height:48px}.bar{padding-bottom:8px}body:has(dialog[open]) .bar>nav{z-index:0}}

.bar>nav svg{display:none}#deviceGames{background:transparent;border-radius:0}#deviceGames>h2{font-family:-apple-system,BlinkMacSystemFont,sans-serif;letter-spacing:normal;font-weight:600}#gameToolsDialog .gameMenuGroup details{padding:0;margin:0}#gameToolsDialog .gameMenuGroup summary{padding:14px 0;min-height:48px}#gameToolsDialog .gameMenuGroup>h3{font-size:14px}#gameToolsDialog #gameToolsTitle{font:600 24px/1.2 -apple-system,BlinkMacSystemFont,sans-serif;letter-spacing:-.03em}#gameToolsDialog #hostctrl{border:0;margin:0;padding:4px 0 16px}#gameToolsDialog #screenOptions>*:not(summary){margin-block:12px}.table-header .bar{flex-direction:row;align-items:center}.bar>.brandAndSettings{width:auto;flex:1;min-width:0}.bar>.appearanceTrigger{margin-inline-start:auto}.bar>.brandAndSettings .brand{font-size:21px}.bar>.brandAndSettings .brand img{width:30px}@media(max-width:700px){.bar>nav a,.table-header .bar nav a:first-child{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:12px;line-height:1.2}.bar>nav svg{display:block;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.bar>nav{flex-wrap:nowrap}.homeIntro h1{font-size:32px}}
#supportDialog .dialogHeading,#storageDialog .dialogHeading{display:flex;align-items:flex-start;gap:16px}#supportDialog .dialogHeading h2,#storageDialog .dialogHeading h2{flex:1;min-width:0;font:600 24px/1.2 -apple-system,BlinkMacSystemFont,sans-serif;letter-spacing:-.03em;margin:0}#supportDialog .dialogHeading button,#storageDialog .dialogHeading button{flex-shrink:0;min-width:44px;white-space:nowrap;padding:4px 0}
/* Equal weight for granting and declining optional measurement. */
.usageChoices{display:grid;grid-template-columns:1fr 1fr;gap:12px}.usageChoices button{min-height:48px}#usageDialog{max-width:540px}#usageDialog p{line-height:1.5}

/* Active play uses the screen; the compact game follows app navigation. */
body.gameFocused .bar,body.gameFocused>footer{display:none}
body.gameFocused{padding-bottom:env(safe-area-inset-bottom)}
body.gameFocused main{padding-top:12px}
.gameBack{display:inline-flex;align-items:center;min-height:44px;text-decoration:none;font-weight:600;margin-right:auto}
.activeGameMini{position:fixed;z-index:30;left:50%;transform:translateX(-50%);bottom:20px;width:min(580px,calc(100% - 32px));display:flex;align-items:center;gap:14px;padding:12px 16px;border-radius:18px;background:var(--white,#fffaf0);color:var(--ink,#391d38);box-shadow:0 4px 22px #0002;text-decoration:none;border:1px solid var(--line,#391d3820)}
.activeGameMini[hidden]{display:none}.miniNames{display:flex;flex-direction:column;min-width:0;flex:1}.miniNames strong,.miniNames small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.miniTime{font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:650}.hasMiniGame{padding-bottom:160px}
@media(max-width:700px){.activeGameMini{bottom:calc(102px + env(safe-area-inset-bottom))}}
.avatarButton{position:relative}.photoBadge{position:absolute;right:-3px;bottom:0;background:var(--ink,#391d38);color:var(--paper,#fffaf0);border-radius:50%;width:19px;height:19px;line-height:19px;font-size:17px;text-align:center}
.quickTimes{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 16px}.quickTimes button{min-height:44px;padding:8px 12px}.quickTimes[hidden]{display:none}
#latePlayerForm{border-top:1px solid var(--line,#391d3820);padding-top:12px;margin-top:12px}

body.browsingGame #resumeLocal,body.browsingGame #reopen{display:none!important}
#resumeActiveGame{margin:24px 0 8px;width:100%}
.roomHeading{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.roomHeading .gameBack{order:0}.roomHeading #openGameTools{order:1}.roomHeading #roomcode{order:2;width:100%;text-align:center;margin:4px 0}
/* First-visit privacy choices: equal actions, no blocking wall or preselected consent. */
#usageBanner{position:fixed;z-index:90;inset:auto 24px 24px auto;width:min(560px,calc(100vw - 32px));box-sizing:border-box;background:var(--paper,var(--cream,#f8f3e7));color:var(--ink,#391d38);border:1px solid var(--line,#d6cebf);border-radius:22px;padding:22px;box-shadow:0 8px 36px #0002;max-height:calc(100dvh - 32px);overflow:auto;margin:0;text-align:start}
#usageBanner[hidden]{display:none}#usageBanner h2{font:700 20px/1.25 -apple-system,BlinkMacSystemFont,sans-serif;margin:0 0 10px}#usageBanner p,#usageDialog p{font-size:14px;line-height:1.5;margin:10px 0}#usageBanner a,#usageDialog>a{font-size:14px;color:inherit;text-underline-offset:3px;display:inline-block;padding:8px 0;min-height:24px}#usageBannerStatus:empty,#usageStatus:empty{display:none}.usageActions{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 8px}.usageActions button{flex:1 1 130px;min-height:48px;margin:0;padding:12px 14px;background:var(--soft,#ece4dd);color:var(--ink,#391d38);border:1px solid var(--line,#d6cebf);border-radius:12px;font-size:15px;font-weight:650;white-space:normal}.usageActions button:focus-visible,#usageDialog input:focus-visible{outline:3px solid var(--ink);outline-offset:3px}#usageDialog{width:min(520px,calc(100% - 32px));box-sizing:border-box;max-height:calc(100dvh - 32px);overflow:auto;padding:24px;background:var(--paper,var(--cream,#f8f3e7));color:var(--ink);border:1px solid var(--line);border-radius:22px;text-align:start}#usageDialog .dialogHeading h2{font-size:22px}.usageCategory{border:0;border-bottom:1px solid var(--line);border-radius:0;padding:16px 0;background:none;margin:0}.usageCategoryHeading,.usageToggle{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0}.usageCategoryHeading small{color:var(--muted);font-size:12px}.usageToggle input,.usageAgeCheck input{width:22px;height:22px;flex-shrink:0;margin:0;accent-color:var(--ink)}.usageToggle{min-height:44px}.usageAgeCheck{display:flex;align-items:center;gap:12px;min-height:44px;margin:12px 0 0}#usageDialog details{margin:14px 0;border:0;padding:0}#usageDialog summary{padding:10px 0;min-height:24px}#usageDialog #usageStatus{color:var(--ink);font-weight:600}
@media(max-width:700px){#usageBanner{inset:auto 16px calc(82px + env(safe-area-inset-bottom)) 16px;width:auto;padding:18px;max-height:calc(100dvh - 114px)}#usageBanner .usageActions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}#usageBanner .usageActions button{min-width:0;min-height:60px;padding:10px 5px;font-size:14px}}
@media(max-height:500px){#usageBanner{inset:auto 16px 16px auto;max-height:calc(100dvh - 32px);width:min(560px,calc(100vw - 32px))}#usageBanner .usageActions button{flex-basis:130px}}

@media(max-width:360px){#usageBanner .usageActions{grid-template-columns:1fr}#usageBanner .usageActions button{font-size:14px;min-height:48px}}

/* Compact room header and bottom controls; small screens retain normal scrolling. */
.roomHeading{display:grid;grid-template-columns:auto minmax(0,1fr) 44px;gap:8px;align-items:center}
.roomHeading .roomNavigation{grid-column:1;grid-row:1;display:flex;align-items:center;gap:12px}
.roomHeading .gameBack{margin:0;white-space:nowrap}
.roomHeading #endGameQuick{font-size:14px;font-weight:600;min-height:44px;padding:4px 0;white-space:nowrap}
.roomHeading #roomcode{grid-column:2;grid-row:1;width:auto;min-width:0;margin:0;font-weight:650;overflow-wrap:anywhere;line-height:1.3}
.roomHeading #openGameTools{grid-column:3;grid-row:1;width:44px;height:44px;padding:10px;background:transparent;display:grid;place-items:center}
body.gameFocused main{padding-top:4px}
body.gameFocused #room{padding:0;min-height:calc(100dvh - 12px - env(safe-area-inset-bottom));display:flex;flex-direction:column}
body.gameFocused #play{display:flex;flex-direction:column;flex:1}
body.gameFocused #setupSummary{display:none}
body.gameFocused #play .live{margin-top:8px}
#playControls{margin-top:auto;padding-top:12px;padding-bottom:max(8px,env(safe-area-inset-bottom))}
#playControls #quickPause{margin:12px 0 0}
#quickFinishDialog{width:min(520px,calc(100vw - 32px));max-height:85dvh;overflow:auto;padding:24px;border:0;border-radius:18px;background:var(--cream);color:var(--ink)}
#quickFinishDialog::backdrop{background:#1d111bb3}
@media(max-width:360px){.roomHeading{grid-template-columns:1fr 44px}.roomHeading #roomcode{grid-column:1/-1;grid-row:2;margin:0 0 4px}.roomHeading #openGameTools{grid-column:2}}

/* Two people share this screen: seats are at opposite edges, controls beside the shared clock. */
#timerOpposite{display:none}
.seatContent{display:contents}
.tableForTwo .seatContent{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-width:0}
body.gameFocused #play.tableForTwo{display:grid;grid-template-columns:116px minmax(0,1fr);grid-template-rows:minmax(120px,1fr) auto minmax(120px,1fr);gap:12px;min-height:calc(100svh - 120px)}
.tableForTwo #seats{display:contents}
.tableForTwo #seats .seat{margin:0;min-height:120px;border-radius:22px;grid-column:1/-1;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:16px}
.tableForTwo #seats .seat:first-child{grid-row:1;flex-direction:row}
.tableForTwo #seats .seat:last-child{grid-row:3}
.tableForTwo #seats .seat:first-child .seatContent{transform:rotate(180deg)}
.tableForTwo #seats .seat:first-child strong,.tableForTwo #seats .seat:first-child small{transform:none}
.tableForTwo #seats .seat strong{font:700 clamp(24px,6vw,36px)/1.15 system-ui;overflow-wrap:anywhere}
.tableForTwo .live{grid-column:2;grid-row:2;margin:0;padding:12px;min-height:220px;display:flex;flex-direction:column;justify-content:space-around;align-items:center;min-width:0}
.tableForTwo .live #current,.tableForTwo .live #nextname,.tableForTwo .live #phase{display:none}
.tableForTwo .live output,.tableForTwo #timerOpposite{font:600 clamp(48px,12vw,80px)/1.15 system-ui;font-variant-numeric:tabular-nums;letter-spacing:-.03em}
.tableForTwo #timerOpposite{display:block;transform:rotate(180deg)}
.tableForTwo #playControls{grid-column:1;grid-row:2;margin:0;padding:0;align-self:center;min-width:0}
.tableForTwo #special{display:flex;flex-direction:column;gap:10px}
.tableForTwo #playControls button{min-height:48px;padding:12px 8px;width:100%;font-size:15px;overflow-wrap:anywhere}
.tableForTwo #quickPause{margin-top:10px}
@media (orientation:landscape) and (min-width:600px){
 body.gameFocused #play.tableForTwo{grid-template-columns:minmax(120px,1fr) minmax(220px,1.25fr) minmax(120px,1fr);grid-template-rows:minmax(130px,1fr) auto;min-height:calc(100svh - 100px)}
 .tableForTwo #seats .seat:first-child{grid-column:1;grid-row:1/3}
 .tableForTwo #seats .seat:last-child{grid-column:3;grid-row:1/3}
 .tableForTwo #seats .seat .seatContent{width:180px;flex-shrink:0}
 .tableForTwo #seats .seat:first-child .seatContent{transform:rotate(90deg)}
 .tableForTwo #seats .seat:last-child .seatContent{transform:rotate(-90deg)}
 .tableForTwo .live{grid-column:2;grid-row:1;min-height:145px;flex-direction:row}
 .tableForTwo .live output{transform:rotate(-90deg);font-size:48px}
 .tableForTwo #timerOpposite{transform:rotate(90deg);font-size:48px}
 .tableForTwo #playControls{grid-column:2;grid-row:2}
 .tableForTwo #special{flex-direction:row}
}
@media (orientation:landscape) and (min-width:600px){
 .tableForTwo #playControls #special{flex-wrap:nowrap;margin-bottom:0}
 .tableForTwo #playControls #special button{flex:1;min-width:0;width:auto}
 .tableForTwo #seats .seat .seatContent{width:clamp(150px,calc(100svh - 160px),280px)}
 .tableForTwo #seats .seat strong{font-size:26px}
}

.roomNavigation{gap:24px}.roomIconAction{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none!important}.roomIconAction svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}#endGameQuick svg{border:1.8px solid currentColor;border-radius:50%;padding:4px}
#gameToolsDialog details{border:0;border-bottom:1px solid var(--line);padding:14px 0}#gameToolsDialog summary{min-height:44px;display:flex;align-items:center;font-weight:600}#gameToolsDialog .gameMenuGroup{margin:12px 0}#gameToolsDialog .gameMenuGroup>h3{font-size:14px;color:var(--muted)}footer{display:flex;flex-wrap:wrap;gap:14px 20px}#feedbackFilterOptions{margin:12px 0}#feedbackFilterOptions>summary{min-height:44px;cursor:pointer;display:flex;align-items:center}#feedbackFilterOptions .searchLabel{display:block}

#gameToolsDialog summary::after,#feedbackFilterOptions>summary::after{content:"⌄";margin-left:auto;padding-left:12px}#gameToolsDialog details[open]>summary::after,#feedbackFilterOptions[open]>summary::after{transform:rotate(180deg)}
