.learn-card { color: #16354a; background: #fffaf0; border: 1px solid #d9cdb5; border-radius: 24px; padding: clamp(20px,4vw,36px); box-shadow: 0 10px 32px #16354a0c; margin-top: 24px; min-width: 0; }
.learn-card[hidden] { display: none; }
.learn-card h2 { font-size: clamp(24px,5vw,34px); line-height: 1.15; margin: 16px 0; }
.learn-card p { line-height: 1.65; max-width: 70ch; }
#first-time-panel button { display: block; width: 100%; margin-top: 14px; white-space: normal; }
.setup-tutorial { max-width: 860px; margin: 20px auto; width: calc(100% - 32px); scroll-margin-top: 16px; }
.learn-heading,.learn-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.learn-heading { justify-content: space-between; }
.learn-heading p { margin: 0; }
.learn-card button { min-height: 48px; white-space: normal; }
.learn-actions { margin-top: 20px; }
.learn-card progress { width: 100%; height: 7px; accent-color: #7da69c; }
.learn-highlight { outline: 3px solid #b17f2f !important; outline-offset: 5px; scroll-margin: 24px; }
.learn-card :focus-visible { outline: 3px solid #16354a; outline-offset: 4px; }
.learn-row { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0; }
.learn-row span { border-radius: 8px; background: #dce9df; padding: 12px; font-weight: 700; }
.learn-row span:last-child { background: #f5ead5; }
.learn-code { font-size: 28px; letter-spacing: .12em; overflow-wrap: anywhere; }
.tb-ticket-cell.awarded-row { box-shadow: inset 0 0 0 3px #b17f2f; }
@media(max-width: 480px) { .learn-actions > .primary { flex: 1 1 100%; } .setup-tutorial { padding-bottom: max(24px,env(safe-area-inset-bottom)); } }
@media(prefers-reduced-motion: reduce) { .learn-card *, .learn-highlight { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media(max-width: 900px) {
  .game-intro:has(#first-time-panel:not([hidden])) { display: block; }
  .game-intro:has(#first-time-panel:not([hidden])) > :not(.apparel-ad):not(#first-time-panel) { display: none; }
}
body.has-tutorial.is-table { height: auto; min-height: 100dvh; display: block; }
body.has-tutorial .setup-tutorial { flex-shrink: 0; }
body.has-tutorial.is-table #app { min-height: 740px; }
body.has-tutorial.is-table .game-shell { height: auto; min-height: 740px; }
body.has-tutorial .masthead { display: flex; }
.learn-card .primary { background: #16354a; color: #fffaf0; }
.learn-card .secondary { background: #f5ead5; color: #16354a; border: 1px solid #bfb49e; }
.learn-card [data-path][aria-pressed="true"] { background: #dce9df; border: 2px solid #16354a; }
.learn-card progress { border: 0; border-radius: 8px; overflow: hidden; }
.learn-card progress::-webkit-progress-bar { background: #e8dfce; }
.learn-card progress::-webkit-progress-value { background: #7da69c; }
.learn-card { animation: learn-in 180ms ease-out; }
@keyframes learn-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media(prefers-reduced-motion: reduce) { .learn-card { animation: none; } }
/* Host setup is the first lobby content after the compact room-code bar. */
.host-lobby > .host-setup { margin: 16px 0 24px; scroll-margin-top: 12px; }
.host-lobby .host-setup > .party-settings { margin-top: 0; }
.host-lobby .host-setup > .party-settings > :first-child { margin-top: 0; }
.host-lobby .host-setup .team-setup { box-shadow: none; margin-bottom: 20px; }
.host-lobby > .tb-lobby-layout { grid-template-columns: minmax(0,1fr); }
.host-first-time { max-width: 560px; width: calc(100% - 32px); max-height: calc(100dvh - 32px); overflow: auto; margin: auto; }
.host-first-time::backdrop { background: #16354a80; }
.host-first-time .learn-actions > button { width: 100%; }
.host-first-time h2 { clear: both; padding-top: 8px; }
