@import url("/css/header-theme-tokens.css?v=20261030-menutheme2");
/* The same game catalog visual language as the main lobby, without touching
   each game's original header and gameplay controls. */
.standalone-hub-rail { box-sizing:border-box; width:100%; max-width:1180px; margin:0 auto; padding:8px 17px 0; display:flex;justify-content:flex-end; min-height:55px; position:relative; z-index:7; }
.standalone-hub-button { display:inline-flex;align-items:center;justify-content:center;gap:10px; min-width:126px; min-height:43px;padding:0 16px; border-radius:11px; border:1px solid #60786b; background:#233b3e;color:#e8f4d2; cursor:pointer; font:750 12px/1.2 system-ui,"Apple SD Gothic Neo",sans-serif; box-shadow:0 3px 9px #061d2640; white-space:nowrap; }
.standalone-hub-button:hover,.standalone-hub-button[aria-expanded=true] { background:#304a42;border-color:#d6ec9e; }
.standalone-hub-button:focus-visible,.standalone-hub-overlay :focus-visible { outline:3px solid #d6ec9e;outline-offset:2px; }
.standalone-hub-bars { width:17px;flex:0 0 17px;display:grid;gap:4px; }
.standalone-hub-bars i {height:2px;width:100%;background:#d6ed9d;border-radius:2px; }
body.standalone-hub-open {overflow:hidden!important;}
.standalone-hub-overlay { box-sizing:border-box; position:fixed;inset:0;z-index:2147480000; background:#061720d9;display:flex;align-items:center;justify-content:center;padding:15px; font-family:Pretendard,"Apple SD Gothic Neo",system-ui,sans-serif;text-align:left;color:#eff4e6; backdrop-filter:blur(5px); }
.standalone-hub-overlay[hidden] {display:none!important;}
#main-menu.standalone-hub-overlay .game-hub-shell {display:flex;flex-direction:column;width:min(970px,100%);height:min(800px,calc(100dvh - 30px));min-height:0;overflow:hidden;box-sizing:border-box;}
#main-menu.standalone-hub-overlay .game-hub-heading {box-sizing:border-box;}
#main-menu.standalone-hub-overlay .game-hub-heading h2 {margin:0 0 5px;color:#f3f3e8;font-size:clamp(21px,3vw,27px);line-height:1.3;letter-spacing:-.04em;}
#main-menu.standalone-hub-overlay .standalone-hub-close { flex:0 0 44px; width:44px;min-height:44px;border-radius:11px;border:1px solid #4a6765;background:#203b40;color:#d4e4d9;cursor:pointer;font:700 19px/1 system-ui,sans-serif; }
#main-menu.standalone-hub-overlay .standalone-hub-close:hover {background:#d6eb9d;color:#19382e;}
#main-menu.standalone-hub-overlay .game-hub-content {flex:1 1 auto;min-height:0;overflow:hidden;}
#main-menu.standalone-hub-overlay .game-hub-categories {box-sizing:border-box;}
#main-menu.standalone-hub-overlay .game-hub-results {box-sizing:border-box;min-height:0;overflow-y:auto;overscroll-behavior:contain;}
#main-menu.standalone-hub-overlay .game-hub-search input {min-width:0;border:0;outline:0;box-shadow:none;background:transparent;color:#f4f6e8;line-height:1.4;}
#main-menu.standalone-hub-overlay .game-hub-category {font:700 13px/1.35 system-ui,"Apple SD Gothic Neo",sans-serif;cursor:pointer;}
#main-menu.standalone-hub-overlay .game-hub-game {cursor:pointer;}
#main-menu.standalone-hub-overlay .standalone-hub-current-game {border-color:#81ae82;background:#2946424d;}
#main-menu.standalone-hub-overlay .standalone-hub-current-game .game-hub-game-arrow {color:#d6ed9e;}
#main-menu.standalone-hub-overlay .game-hub-brand {font-size:11px;color:#a8c3ad;}
#main-menu.standalone-hub-overlay .game-hub-intro {font-size:12px;}
.standalone-hub-footer { box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;min-height:58px;padding:12px 30px;background:#172d32;gap:15px; }
.standalone-hub-home {display:inline-flex;align-items:center;min-height:37px;padding:8px 14px;border:1px solid #46645e;border-radius:10px;background:#223b3d;color:#e8f3d7;text-decoration:none;font-size:12px;font-weight:800; }
.standalone-hub-home:hover {background:#304f45;color:#f5f8e8;border-color:#c8e09d;}
@media(max-width:700px) {
  #main-menu.standalone-hub-overlay .game-hub-content {display:flex;flex-direction:column;}
  #main-menu.standalone-hub-overlay .game-hub-categories {flex:0 0 auto;}
  #main-menu.standalone-hub-overlay .game-hub-results {flex:1 1 auto;}
  .standalone-hub-footer{padding:11px 17px;}
}
@media(max-width:520px){
 .standalone-hub-rail {min-height:49px;padding:6px 12px 0;}
 .standalone-hub-button {min-width:103px;min-height:39px;padding:0 11px;font-size:12px;}
 .standalone-hub-overlay {padding:9px;}
 #main-menu.standalone-hub-overlay .game-hub-shell {height:calc(100dvh - 18px);}
}
@media(prefers-reduced-motion:reduce){.standalone-hub-button{transition:none;}}


/* Place the directory on the SAME header row on every standalone game. */
.standalone-hub-in-header .standalone-hub-rail {
  width:auto;max-width:none;min-width:0;min-height:0;padding:0;margin:0;
  flex:0 0 auto;justify-self:end;align-self:center;
  display:inline-flex;align-items:center;justify-content:flex-end;z-index:10;
}
.standalone-hub-in-header .standalone-hub-button {min-height:42px;box-sizing:border-box;}
.standalone-hub-header-actions {display:inline-flex;align-items:center;justify-content:flex-end;gap:8px;justify-self:end;min-width:0;}
/* The two symmetric, three-column headers keep their real title centered. */
.standalone-hub-page-pirate .site-header {grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);}
.standalone-hub-page-pirate .standalone-hub-header-actions {grid-column:3;grid-row:1;}
.standalone-hub-page-pirate .site-header>.header-title {grid-column:2;grid-row:1;}
.standalone-hub-page-pirate .site-header>.back-link {grid-column:1;grid-row:1;}
.standalone-hub-page-dice .local-header>.standalone-hub-rail,
.standalone-hub-page-hwatu .local-header>.standalone-hub-rail {grid-column:3;grid-row:1;}
.standalone-hub-page-chess .masthead-inner>.standalone-hub-header-actions {grid-column:3;grid-row:1;}
.standalone-hub-page-holdem .site-header nav>.standalone-hub-rail,
.standalone-hub-page-seven-poker .site-header nav>.standalone-hub-rail,
.standalone-hub-page-omaha .site-header nav>.standalone-hub-rail,
.standalone-hub-page-draw-poker .site-header nav>.standalone-hub-rail {margin-left:6px;}
/* Tight mastheads: navigation is more useful than decorative subtitles. */
@media(max-width:1100px){
  .standalone-hub-page-timer .site-top>.top-count {display:none;}
  .standalone-hub-page-janggi .top-wordmark {font-size:17px;}
}
@media(max-width:760px){
  .standalone-hub-page-roulette .qb-site-header>.qb-brand,
  .standalone-hub-page-ladder .qb-site-header>.qb-brand,
  .standalone-hub-page-balloon .qb-site-header>.qb-brand,
  .standalone-hub-page-cards .qb-site-header>.qb-brand {display:none;}
  .standalone-hub-page-reaction .topbar>.top-label {display:none;}
  .standalone-hub-page-bomb .topbar .brand>span:last-child {display:none;}
  .standalone-hub-page-bomb .topbar .header-actions>.home-link {display:none;}
  .standalone-hub-page-bomb .topbar .header-actions {gap:7px;}
  .standalone-hub-page-marble .topbar>.brand {display:none;}
  .standalone-hub-page-marble .topbar .header-actions {gap:5px;}
  .standalone-hub-page-yut .site-top>.top-count {display:none;}
  .standalone-hub-page-omok .site-top>span:nth-child(2) {display:none;}
  .standalone-hub-page-holdem .site-header nav>a:first-child,
  .standalone-hub-page-seven-poker .site-header nav>a:first-child,
  .standalone-hub-page-omaha .site-header nav>a:first-child,
  .standalone-hub-page-draw-poker .site-header nav>a:first-child {display:none;}
}
@media(max-width:530px){
  .standalone-hub-in-header .standalone-hub-button {min-width:102px;min-height:39px;padding:0 10px;}
  .standalone-hub-page-pirate .site-header {grid-template-columns:minmax(0,1fr) auto;}
  .standalone-hub-page-pirate .site-header>.header-title {display:none;}
  .standalone-hub-page-pirate .standalone-hub-header-actions {grid-column:2;grid-row:1;}
  .standalone-hub-page-pirate .site-header>.back-link {grid-column:1;}
  .standalone-hub-page-dice .local-header,
  .standalone-hub-page-hwatu .local-header {grid-template-columns:minmax(0,1fr) auto;gap:8px;}
  .standalone-hub-page-dice .local-header>strong,
  .standalone-hub-page-hwatu .local-header>strong {display:none;}
  .standalone-hub-page-dice .local-header>.standalone-hub-rail,
  .standalone-hub-page-hwatu .local-header>.standalone-hub-rail {grid-column:2;}
  .standalone-hub-page-chess .masthead-inner {grid-template-columns:minmax(0,1fr) auto;}
  .standalone-hub-page-chess .masthead-inner>.wordmark {display:none;}
  .standalone-hub-page-chess .masthead-inner>.standalone-hub-header-actions {grid-column:2;}
  .standalone-hub-page-janggi .top-wordmark {display:none;}
  .standalone-hub-page-yut .site-top>.top-mark {display:none;}
  .standalone-hub-page-timer .site-top>.top-mark {display:none;}
  .standalone-hub-page-bomb .topbar .sound-toggle {font-size:0;min-width:43px;min-height:43px;}
  .standalone-hub-page-bomb .topbar .sound-toggle::before {content:'♫';font-size:19px;}
  .standalone-hub-page-marble .topbar .header-actions>#share-btn {display:none;}
  .standalone-hub-page-holdem .site-header .header-back>span:last-child,
  .standalone-hub-page-seven-poker .site-header .header-back>span:last-child,
  .standalone-hub-page-omaha .site-header .header-back>span:last-child,
  .standalone-hub-page-draw-poker .site-header .header-back>span:last-child {display:none;}
}
@media(max-width:370px){
  .standalone-hub-page-timer .timer-audio-controls {width:100%;}
  .standalone-hub-page-marble .topbar .back {font-size:10px;}
  .standalone-hub-page-pirate .sound-button {min-width:44px;}
}

@media(max-width:800px){
  .standalone-hub-page-chess .masthead-inner .masthead-right,
  .standalone-hub-page-janggi .top>.standalone-hub-header-actions .top-note {display:none;}
}
@media(max-width:530px){
  .standalone-hub-page-omok .site-top>.standalone-hub-header-actions .top-tag {display:none;}
}

/* Chess switches to two grid columns at tablet widths. Keep the menu on row 1. */
@media(max-width:770px) {
  .standalone-hub-page-chess .masthead-inner>.wordmark {display:none;}
  .standalone-hub-page-chess .masthead-inner>.standalone-hub-header-actions {grid-column:2;grid-row:1;}
}
/* Keep header controls in one flex line even when shared styles change. */
.standalone-hub-in-header .standalone-hub-header-actions {flex-wrap:nowrap;}


/* Same four-button utility shelf and secondary dialogs as the home game hub. */
#main-menu.standalone-hub-overlay .game-hub-shell {padding:0; border:1px solid #516b66;border-radius:19px;background:#172d32;box-shadow:0 28px 95px #020b10c9;}
#main-menu.standalone-hub-overlay .game-hub-heading {display:flex;align-items:center;justify-content:space-between;gap:18px;min-width:0;flex:0 0 auto;margin:0;padding:25px 30px 17px;background:#172d32;}
#main-menu.standalone-hub-overlay .game-hub-heading-copy {min-width:0}
#main-menu.standalone-hub-overlay .game-hub-heading #game-hub-title {font-size:clamp(21px,3vw,27px);letter-spacing:-.04em;font-weight:850;}
#main-menu.standalone-hub-overlay #game-hub-intro {font-size:12px;line-height:1.6;color:#b0c6c1;margin:0;}
#main-menu.standalone-hub-overlay .game-hub-search-wrap {flex:0 0 auto;}
#main-menu.standalone-hub-overlay .game-hub-utilities {flex:0 0 auto;padding:22px 30px 25px;border-top:0;background:#172d32;}
#main-menu.standalone-hub-overlay .game-hub-utilities h3 {font-size:12px;line-height:1.4;color:#b7d2c3;margin:0 0 12px;font-weight:700;}
#main-menu.standalone-hub-overlay .game-hub-utilities .menu-buttons {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0;}
#main-menu.standalone-hub-overlay .game-hub-utilities .menu-button {min-width:0;min-height:55px;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:9px;padding:10px 12px;margin:0;border:1px solid #46645e;border-radius:10px;background:#223b3d;color:#dbeade;font:750 12px/1.4 system-ui,'Apple SD Gothic Neo',sans-serif;cursor:pointer;}
#main-menu.standalone-hub-overlay .game-hub-utilities .menu-button:hover {background:#304f45;border-color:#c8e09d;color:#f5f8e8;}
#main-menu.standalone-hub-overlay .game-hub-utilities .menu-button-icon {font-size:20px;margin:0;flex:0 0 auto;}
#main-menu.standalone-hub-overlay .game-hub-utilities .menu-button-text {min-width:0;font-weight:750;}
#main-menu.standalone-hub-overlay .game-hub-shell.is-subview > :not(.standalone-hub-subview) {display:none!important;}
#main-menu.standalone-hub-overlay .standalone-hub-subview {flex:1 1 auto;min-height:0;display:flex;flex-direction:column;background:#172d32;}
#main-menu.standalone-hub-overlay .standalone-hub-subview[hidden] {display:none!important;}
.standalone-hub-subview-heading {display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:12px;align-items:center;padding:22px 30px;border-bottom:1px solid #385450;}
.standalone-hub-subview-heading h2 {margin:0;text-align:center;color:#f4f6e8;font-size:21px;letter-spacing:-.03em;font-weight:800;}
.standalone-hub-back,.standalone-hub-close-subview {display:grid;place-items:center;width:44px;height:44px;border:1px solid #4a6765;border-radius:10px;background:#203b40;color:#dbeade;cursor:pointer;font-size:22px;}
.standalone-hub-back:hover,.standalone-hub-close-subview:hover {background:#d6eb9d;color:#19382e;}
.standalone-hub-subview-content {flex:1 1 auto;overflow-y:auto;padding:27px 30px;overscroll-behavior:contain;}
.standalone-hub-subview-content .language-options-large {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:20px;}
.standalone-hub-subview-content .language-option-large {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:128px;border:1px solid #4b6c64;border-radius:12px;background:#223b3d;color:#edf4e9;cursor:pointer;font-size:14px;font-weight:800;}
.standalone-hub-subview-content .language-option-large[aria-pressed=true] {background:#37584b;border-color:#d6ed9e;box-shadow:inset 0 0 0 2px #d6ed9e;}
.standalone-hub-subview-content .language-option-large:hover {border-color:#d6ed9e;}
.standalone-hub-subview-content .language-flag {font-size:33px;}
.standalone-hub-detail-text {margin:0 0 14px;color:#bdcec5;font-size:13px;line-height:1.85;}
.standalone-hub-help-card {display:flex;align-items:center;gap:16px;padding:15px 0;margin-bottom:18px;border-bottom:1px solid #385450;}
.standalone-hub-help-card .game-hub-game-icon {flex:0 0 48px;width:48px;height:48px;font-size:24px;}
.standalone-hub-help-title {font-size:19px;color:#f3f5eb;}
.standalone-hub-profile {display:inline-flex;min-height:47px;align-items:center;justify-content:center;text-decoration:none;margin:8px 0 22px;padding:10px 19px;border-radius:10px;background:#d6ed9e;border:1px solid #d6ed9e;color:#19382e;font-size:13px;font-weight:800;}
.standalone-hub-profile:hover {background:#e8f4c1;}
.standalone-hub-contributors {font-size:15px;color:#f5f3e9;margin:10px 0;}
@media(max-width:700px) {
  #main-menu.standalone-hub-overlay .game-hub-heading {padding:14px 16px 10px;gap:12px;}
  #main-menu.standalone-hub-overlay .game-hub-heading #game-hub-title {font-size:18px;margin:0 0 2px;}
  #main-menu.standalone-hub-overlay #game-hub-intro {font-size:11.5px;line-height:1.4;}
  #main-menu.standalone-hub-overlay .game-hub-utilities {padding:12px 14px 14px;}
  #main-menu.standalone-hub-overlay .game-hub-utilities h3 {font-size:11px;margin:0 0 8px;}
  .standalone-hub-subview-heading {padding:14px 16px;}
  .standalone-hub-subview-content {padding:16px;}
}
@media(max-width:520px) {
  #main-menu.standalone-hub-overlay .game-hub-utilities .menu-buttons {grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;}
  #main-menu.standalone-hub-overlay .game-hub-utilities .menu-button {min-height:42px;padding:7px 10px;font-size:11.5px;gap:7px;}
  #main-menu.standalone-hub-overlay .game-hub-utilities .menu-button-icon {font-size:16px;}
  .standalone-hub-subview-content .language-options-large {gap:7px;}
  .standalone-hub-subview-content .language-option-large {min-height:96px;padding:8px 4px;font-size:12px;}
  .standalone-hub-subview-content .language-flag {font-size:25px;}
  .standalone-hub-subview-heading h2 {font-size:17px;}
}

/* Timer: show the game directory at the far right; stack audio underneath on narrow screens. */
@media(max-width:780px){
  .standalone-hub-page-timer .site-top>.standalone-hub-rail {order:1;margin-left:auto;}
  .standalone-hub-page-timer .site-top>.timer-audio-controls {order:2;width:100%;}
}

/* Board games: inline music/effects controls before the game-directory button. */
.standalone-hub-board-page .standalone-hub-header-actions {margin-left:auto;}
.standalone-hub-board-page .standalone-hub-board-audio {display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;}
.standalone-hub-board-page .standalone-hub-sound-button {
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  min-height:40px;padding:0 10px;border:1px solid #60786b;border-radius:10px;
  background:#274940;color:#e6f1da;cursor:pointer;white-space:nowrap;
  font:700 11px/1.2 system-ui,"Apple SD Gothic Neo",sans-serif;
}
.standalone-hub-board-page .standalone-hub-sound-button[aria-pressed="false"] {background:#172c2c;border-color:#455e55;color:#9caea3;}
.standalone-hub-board-page .standalone-hub-sound-button:hover:not(:disabled) {border-color:#d6ec9e;}
.standalone-hub-board-page .standalone-hub-sound-button:disabled {opacity:.5;cursor:wait;}
.standalone-hub-board-page .standalone-hub-sound-button:focus-visible {outline:3px solid #d6ec9e;outline-offset:2px;}
.standalone-hub-board-page .standalone-hub-sound-icon {font-size:17px;line-height:1;}
.standalone-hub-page-chess .masthead-inner>.standalone-hub-header-actions>.masthead-right,
.standalone-hub-page-janggi .top>.standalone-hub-header-actions>.top-note,
.standalone-hub-page-omok .site-top>.standalone-hub-header-actions>.top-tag {display:none;}
.standalone-hub-page-yut .site-top>.top-count {display:none;}
@media(max-width:940px){
  .standalone-hub-board-page .standalone-hub-sound-button {width:39px;min-width:39px;padding:0;}
  .standalone-hub-board-page .standalone-hub-sound-label {display:none;}
  .standalone-hub-page-janggi .top-wordmark {display:none;}
  .standalone-hub-page-yut .site-top>.top-mark {display:none;}
}
@media(max-width:530px){
  .standalone-hub-board-page .standalone-hub-header-actions {gap:5px;}
  .standalone-hub-board-page .standalone-hub-board-audio {gap:4px;}
  .standalone-hub-board-page .standalone-hub-sound-button {width:33px;min-width:33px;min-height:36px;}
  .standalone-hub-board-page .standalone-hub-button {min-width:92px;min-height:38px;padding:0 8px;gap:6px;font-size:11px;}
  .standalone-hub-board-page .standalone-hub-bars {width:13px;flex-basis:13px;}
  .standalone-hub-page-omok .site-top,
  .standalone-hub-page-yut .site-top {gap:8px;padding-left:11px;padding-right:11px;}
  .standalone-hub-page-janggi .top {gap:8px;padding-left:11px;padding-right:11px;}
  .standalone-hub-page-chess .masthead-inner {gap:7px;padding-left:11px;padding-right:11px;}
}


/* Unified game masthead. The lobby and both poker reference headers are untouched. */
body.ug-unified-page > header.ug-legacy-header { display:none !important; }
body.ug-unified-page > header.ug-header {
  box-sizing:border-box; width:100%; height:88px; min-height:88px;
  padding:0 max(28px,calc((100vw - 1160px)/2));
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  position:relative; z-index:90; isolation:isolate; overflow:visible;
  background:linear-gradient(110deg,#1c3229 0%,#152a23 58%,#1b3028 100%);
  border-bottom:1px solid #756d4d73; box-shadow:0 3px 18px #06160e28;
  color:#f1f2e6; font:600 13px/1.45 system-ui,Pretendard,"Apple SD Gothic Neo",sans-serif;
}
body.ug-unified-page .ug-header *,body.ug-unified-page .ug-header *::before,body.ug-unified-page .ug-header *::after {box-sizing:border-box}
body.ug-unified-page .ug-header a {text-decoration:none}
body.ug-unified-page .ug-back {
  flex:0 0 auto; display:inline-flex; align-items:center; gap:11px;
  color:#e4e9d8; padding:7px 8px 7px 0; min-height:44px;
  font-size:12px;font-weight:750;white-space:nowrap;letter-spacing:-.02em;
}
body.ug-unified-page .ug-back-arrow {
  display:grid;place-items:center;flex:0 0 33px;width:33px;height:33px;
  background:#304338;border:1px solid #7a815f;border-radius:50%;
  color:#ead2a0;font-size:20px;line-height:1;
}
body.ug-unified-page .ug-back:hover,body.ug-unified-page .ug-back:focus-visible {color:#f6dca4}
body.ug-unified-page .ug-back:hover .ug-back-arrow {background:#405846;border-color:#e0c890}
body.ug-unified-page .ug-identity {
  position:absolute;left:50%;transform:translateX(-50%);
  display:flex;align-items:center;justify-content:center;gap:10px;
  max-width:37%;min-width:0;pointer-events:auto;cursor:pointer;color:inherit;
}
body.ug-unified-page .ug-identity:hover .ug-name,
body.ug-unified-page .ug-identity:focus-visible .ug-name {color:var(--header-accent,#f6dca4)}
body.ug-unified-page .ug-mark {
  flex:0 0 40px;width:40px;height:44px;display:grid;place-items:center;
  border:1px solid #aa9567;border-radius:15px 15px 6px 6px;
  background:linear-gradient(160deg,#293e30,#14291f);
  font-size:24px;line-height:1;
}
body.ug-unified-page .ug-identity-copy {display:flex;flex-direction:column;gap:1px;min-width:0;max-width:100%}
body.ug-unified-page .ug-name {
  color:#fbf2db;font-size:16px;line-height:1.28;font-weight:850;
  letter-spacing:-.035em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
body.ug-unified-page .ug-subtitle {
  color:#b9c4af;font-size:10px;line-height:1.3;letter-spacing:.02em;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
body.ug-unified-page .ug-actions {
  margin-left:auto; flex:0 0 auto; display:flex;align-items:center;justify-content:flex-end;
  gap:10px; min-width:0;
}
body.ug-unified-page .ug-actions > .standalone-hub-rail {
  display:inline-flex;width:auto;max-width:none;min-width:0;min-height:0;
  margin:0;padding:0;flex:0 0 auto;position:static;
}
body.ug-unified-page .ug-actions .standalone-hub-button {
  display:inline-flex;align-items:center;justify-content:center;min-height:44px;
  padding:0 16px;gap:9px;min-width:122px;border-radius:10px;
  border:1px solid #7b835e;background:#283f31;
  color:#f1edd9;font-size:12px;font-weight:800;box-shadow:none;
}
body.ug-unified-page .ug-actions .standalone-hub-button:hover,
body.ug-unified-page .ug-actions .standalone-hub-button[aria-expanded="true"] {background:#3d573e;border-color:#e5cc86}
body.ug-unified-page .ug-actions .standalone-hub-bars i {background:#e7d69b}
body.ug-unified-page .ug-audio {position:relative;flex:0 0 auto}
body.ug-unified-page .ug-audio-trigger {
  display:grid;place-items:center;position:relative;
  width:44px;height:44px;border:1px solid #88774e;border-radius:50%;
  color:#e4cc96;background:#283e30;cursor:pointer;list-style:none;
}
body.ug-unified-page .ug-audio-trigger::-webkit-details-marker {display:none}
body.ug-unified-page .ug-audio-trigger::marker {content:''}
body.ug-unified-page .ug-audio-trigger:hover,
body.ug-unified-page .ug-audio[open]>.ug-audio-trigger {background:#405743;border-color:#edd28e}
body.ug-unified-page .ug-audio-indicator {
  position:absolute;width:7px;height:7px;border-radius:50%;background:#afd596;
  bottom:7px;right:8px;box-shadow:0 0 0 2px #203b2c;
}
body.ug-unified-page .ug-audio[data-state="off"] .ug-audio-trigger {color:#9fa899}
body.ug-unified-page .ug-audio[data-state="off"] .ug-audio-indicator {background:#727e73}
body.ug-unified-page .ug-audio-panel {
  position:absolute;z-index:200;right:0;top:calc(100% + 10px);
  display:flex;flex-direction:column;gap:9px;min-width:245px;width:265px;max-width:calc(100vw - 24px);
  padding:17px;border:1px solid #817b59;border-radius:14px;
  background:#1b3227;box-shadow:0 16px 44px #03120bbf;color:#ecf1df;
  font:600 12px/1.4 system-ui,Pretendard,sans-serif;
}
body.ug-unified-page .ug-audio:not([open]) .ug-audio-panel {display:none}
body.ug-unified-page .ug-audio-heading {font-size:14px;color:#f5ead2;margin-bottom:4px}
body.ug-unified-page .ug-audio-option {
  width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;
  min-height:44px;padding:10px 12px;border:1px solid #5e785d;border-radius:9px;
  background:#2b4839;color:#f1f2de;font:700 12px/1.3 system-ui,Pretendard,sans-serif;cursor:pointer;
}
body.ug-unified-page .ug-audio-option[aria-pressed="false"] {background:#20362c;color:#a8b7a7;border-color:#48614e}
body.ug-unified-page .ug-audio-option:hover {border-color:#e6d194}
body.ug-unified-page .ug-audio-option:disabled {opacity:.55;cursor:not-allowed}
body.ug-unified-page .ug-audio-option-state {font-size:11px;color:#d2daa7}
body.ug-unified-page .ug-audio-option[aria-pressed="false"] .ug-audio-option-state {color:#a4ada5}
body.ug-unified-page .ug-audio-volume {display:flex;flex-direction:column;gap:7px;font-size:11px;margin:3px 0 0}
body.ug-unified-page .ug-audio-volume input {width:100%;height:24px;min-height:24px;padding:0;margin:0;accent-color:#e4d095;cursor:pointer}
body.ug-unified-page .ug-header :is(a,button,summary,input):focus-visible {
  outline:3px solid #f0d78f;outline-offset:3px;
}
@media(max-width:800px){
  body.ug-unified-page > header.ug-header {height:76px;min-height:76px;padding:0 17px}
  body.ug-unified-page .ug-name {font-size:14px}
  body.ug-unified-page .ug-mark {flex-basis:34px;width:34px;height:38px;font-size:21px}
  body.ug-unified-page .ug-back {gap:6px;font-size:11px}
  body.ug-unified-page .ug-back-arrow {width:29px;height:29px;flex-basis:29px}
  body.ug-unified-page .ug-actions {gap:7px}
}
@media(max-width:600px){
  body.ug-unified-page > header.ug-header {
    height:70px;min-height:70px;gap:8px;
    padding:0 max(12px,env(safe-area-inset-left,0px)) 0 max(12px,env(safe-area-inset-right,0px));
    display:grid;grid-template-columns:40px minmax(0,1fr) auto;
  }
  body.ug-unified-page .ug-back {padding:0;justify-self:start}
  body.ug-unified-page .ug-back-text {display:none}
  body.ug-unified-page .ug-identity {position:static;left:auto;transform:none;justify-self:center;max-width:100%;gap:7px}
  body.ug-unified-page .ug-mark {flex:0 0 30px;width:30px;height:34px;font-size:19px;border-radius:11px 11px 4px 4px}
  body.ug-unified-page .ug-name {font-size:13px}
  body.ug-unified-page .ug-subtitle {font-size:9px}
  body.ug-unified-page .ug-actions {justify-self:end;gap:5px}
  body.ug-unified-page .ug-actions .standalone-hub-button {min-width:100px;min-height:40px;padding:0 10px;font-size:11px;gap:6px}
  body.ug-unified-page .ug-audio-trigger {width:40px;height:40px}
  body.ug-unified-page .ug-audio-panel {right:-86px}
}
@media(max-width:390px){
  body.ug-unified-page > header.ug-header {gap:5px;padding-left:9px;padding-right:9px;grid-template-columns:36px minmax(0,1fr) auto}
  body.ug-unified-page .ug-identity {gap:5px}
  body.ug-unified-page .ug-mark {display:none}
  body.ug-unified-page .ug-name {font-size:12px}
  body.ug-unified-page .ug-actions .standalone-hub-button {min-width:94px;padding:0 8px}
  body.ug-unified-page .ug-audio-trigger {width:38px;height:38px}
  body.ug-unified-page .ug-audio-panel {right:-89px}
}
@media(prefers-reduced-motion:reduce){
  body.ug-unified-page .ug-header *,body.ug-unified-page .ug-header *::before,body.ug-unified-page .ug-header *::after {transition:none!important}
}

/* Share is an independent header action; it never changes audio settings. */
body.ug-unified-page .ug-share-button, .ug-share-poker {
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  min-height:41px;border:1px solid #716f4b;border-radius:11px;
  padding:0 12px;background:#294637;color:#f3e8c9;
  white-space:nowrap;font:750 12px/1.2 system-ui,Pretendard,sans-serif;
  cursor:pointer;transition:background-color .15s,border-color .15s;
}
body.ug-unified-page .ug-share-button:hover, .ug-share-poker:hover {background:#385840;border-color:#e6d194;}
body.ug-unified-page .ug-share-button:focus-visible, .ug-share-poker:focus-visible {outline:3px solid #e6d194;outline-offset:2px;}
body.ug-unified-page .ug-share-icon {font-size:19px;line-height:1;}
body.ug-unified-page .ug-share-live {position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;}
body.ug-unified-page .ug-audio-volume-label {font-size:12px;font-weight:700;color:#f1eddc;}
@media(max-width:650px){
  body.ug-unified-page .ug-share-button {min-width:40px;padding:0 10px;}
  body.ug-unified-page .ug-share-text {display:none;}
  .ug-share-poker {min-width:36px;padding:0 9px;}
  .ug-share-poker .ug-share-text {display:none;}
}

/* Detailed game instructions inside All Games > Help.
   Four numbered sections follow the same hierarchy on every standalone page. */
#main-menu.standalone-hub-overlay .standalone-hub-help-card{
  margin:0 0 17px;padding:0 0 17px;gap:13px;align-items:center;
}
#main-menu.standalone-hub-overlay .standalone-hub-help-copy{
  display:flex;flex-direction:column;gap:5px;min-width:0;
}
#main-menu.standalone-hub-overlay .standalone-hub-help-meta{
  color:#a8c9b6;font-size:11px;font-weight:650;line-height:1.5;
}
#main-menu.standalone-hub-overlay .standalone-hub-guide-lead{
  padding:17px 19px;margin:0 0 21px;
  border:1px solid #596e60;border-left:3px solid #d7e6a4;
  border-radius:11px;color:#ebf0dd;background:#243e33;
  font-size:13px;line-height:1.9;word-break:keep-all;
}
#main-menu.standalone-hub-overlay .standalone-hub-guide-steps{
  margin:0;padding:0;display:grid;gap:11px;list-style:none;
}
#main-menu.standalone-hub-overlay .standalone-hub-guide-step{
  display:grid;grid-template-columns:34px minmax(0,1fr);gap:14px;
  min-width:0;padding:17px 17px 16px;border:1px solid #405d53;
  border-radius:12px;background:#1d3633;
}
#main-menu.standalone-hub-overlay .standalone-hub-guide-index{
  display:grid;place-items:center;width:32px;height:32px;flex-shrink:0;
  border:1px solid #708765;border-radius:10px;background:#2a493e;
  color:#e2eaa9;font-size:11px;font-weight:850;font-variant-numeric:tabular-nums;
}
#main-menu.standalone-hub-overlay .standalone-hub-guide-section{
  min-width:0;
}
#main-menu.standalone-hub-overlay .standalone-hub-guide-heading{
  margin:4px 0 10px;color:#f1f4e6;font-size:15px;
  line-height:1.45;letter-spacing:-.025em;font-weight:800;word-break:keep-all;
}
#main-menu.standalone-hub-overlay .standalone-hub-guide-paragraph{
  margin:0 0 8px;color:#bfd0c7;font-size:12px;line-height:1.88;
  overflow-wrap:anywhere;word-break:keep-all;
}
#main-menu.standalone-hub-overlay .standalone-hub-guide-paragraph:last-child{margin-bottom:0}
#main-menu.standalone-hub-overlay .standalone-hub-guide-more{
  display:flex;justify-content:center;align-items:center;min-height:47px;
  margin-top:17px;padding:12px 16px;border:1px solid #afca80;
  border-radius:10px;background:#cce3a6;color:#18352b;
  font-size:12px;font-weight:800;text-decoration:none;line-height:1.5;text-align:center;
}
#main-menu.standalone-hub-overlay .standalone-hub-guide-more:hover{
  background:#e0efba;color:#19382b;
}
#main-menu.standalone-hub-overlay .standalone-hub-guide-more:focus-visible{
  outline:3px solid #f3df95;outline-offset:3px;
}
@media(max-width:520px){
  #main-menu.standalone-hub-overlay .standalone-hub-guide-lead{
    padding:14px 15px;margin-bottom:15px;font-size:12px;
  }
  #main-menu.standalone-hub-overlay .standalone-hub-guide-step{
    padding:13px 11px;gap:9px;grid-template-columns:28px minmax(0,1fr);
  }
  #main-menu.standalone-hub-overlay .standalone-hub-guide-index{
    width:27px;height:28px;font-size:10px;border-radius:8px;
  }
  #main-menu.standalone-hub-overlay .standalone-hub-guide-heading{font-size:14px;margin:3px 0 8px}
  #main-menu.standalone-hub-overlay .standalone-hub-guide-paragraph{font-size:12px;line-height:1.8}
}

/* Sound self-test sits inside the existing header menu, never over the board. */
body.ug-unified-page .ug-audio-preview {
  width:100%;min-height:38px;padding:8px 11px;border-radius:8px;
  border:1px solid #a99a71;background:#405b45;color:#f8edc9;
  font:700 12px/1.35 system-ui,Pretendard,sans-serif;cursor:pointer;
}
body.ug-unified-page .ug-audio-preview:hover {background:#527253;border-color:#e4d197;}
body.ug-unified-page .ug-audio-preview-feedback:empty {display:none;}
body.ug-unified-page .ug-audio-preview-feedback {color:#e5d9b9;font-size:11px;line-height:1.5;}

/* Directory colors follow the same semantic menu tokens as the home hub.
   The earlier forest fallback remains for pages without a theme controller. */
#main-menu.standalone-hub-overlay {color:var(--menu-text);color-scheme:inherit;}
#main-menu.standalone-hub-overlay .game-hub-shell {border-color:var(--menu-line);background:var(--menu-bg);box-shadow:0 28px 95px #17274455;}
#main-menu.standalone-hub-overlay :is(.game-hub-heading,.game-hub-utilities,.standalone-hub-subview) {background:var(--menu-bg);}
#main-menu.standalone-hub-overlay :is(#game-hub-title,.standalone-hub-subview-heading h2,.standalone-hub-help-title,.standalone-hub-contributors,.standalone-hub-guide-heading) {color:var(--menu-text);}
#main-menu.standalone-hub-overlay :is(.game-hub-brand,#game-hub-intro,.game-hub-utilities h3,.standalone-hub-detail-text,.standalone-hub-guide-paragraph,.standalone-hub-help-meta) {color:var(--menu-muted);}
#main-menu.standalone-hub-overlay .game-hub-search input {color:var(--menu-text);}
#main-menu.standalone-hub-overlay :is(.standalone-hub-close,.standalone-hub-back,.standalone-hub-close-subview,.game-hub-theme-toggle) {background:var(--menu-surface);border-color:var(--menu-line);color:var(--menu-text);}
#main-menu.standalone-hub-overlay :is(.standalone-hub-close,.standalone-hub-back,.standalone-hub-close-subview,.game-hub-theme-toggle):hover {background:var(--menu-surface-hover);color:var(--menu-text);}
#main-menu.standalone-hub-overlay .game-hub-utilities .menu-button {background:var(--menu-surface);border-color:var(--menu-line);color:var(--menu-text);}
#main-menu.standalone-hub-overlay .game-hub-utilities .menu-button:hover {background:var(--menu-surface-hover);border-color:var(--menu-accent);color:var(--menu-text);}
#main-menu.standalone-hub-overlay .standalone-hub-current-game {background:var(--menu-selected);border-color:var(--menu-accent);border-radius:8px;}
#main-menu.standalone-hub-overlay .standalone-hub-current-game .game-hub-game-arrow {color:var(--menu-accent);}
#main-menu.standalone-hub-overlay :is(.standalone-hub-subview-heading,.standalone-hub-help-card) {border-color:var(--menu-line);}
#main-menu.standalone-hub-overlay .language-option-large {background:var(--menu-surface);border-color:var(--menu-line);color:var(--menu-text);}
#main-menu.standalone-hub-overlay .language-option-large[aria-pressed=true] {background:var(--menu-selected);border-color:var(--menu-accent);box-shadow:inset 0 0 0 1px var(--menu-accent);}
#main-menu.standalone-hub-overlay .language-option-large:hover {border-color:var(--menu-accent);}
#main-menu.standalone-hub-overlay :is(.standalone-hub-profile,.standalone-hub-guide-more) {background:var(--menu-accent);border-color:var(--menu-accent);color:var(--menu-bg);}
#main-menu.standalone-hub-overlay :is(.standalone-hub-profile,.standalone-hub-guide-more):hover {background:var(--menu-surface-hover);color:var(--menu-text);}
#main-menu.standalone-hub-overlay .standalone-hub-guide-lead {background:var(--menu-surface);border-color:var(--menu-line);color:var(--menu-text);}
#main-menu.standalone-hub-overlay .standalone-hub-guide-step {background:var(--menu-panel);border-color:var(--menu-line);}
#main-menu.standalone-hub-overlay .standalone-hub-guide-index {background:var(--menu-selected);border-color:var(--menu-line);color:var(--menu-text);}
#main-menu.standalone-hub-overlay .standalone-hub-footer {background:var(--menu-panel);}
#main-menu.standalone-hub-overlay .standalone-hub-home {background:var(--menu-surface);border-color:var(--menu-line);color:var(--menu-text);}
#main-menu.standalone-hub-overlay :focus-visible {outline:3px solid var(--menu-focus);outline-offset:3px;}
#main-menu.standalone-hub-overlay .game-hub-search input:focus-visible {outline:none;}
/* This in-dialog control shares SiteTheme's state and event, never saves a
   competing per-page preference. */
#main-menu.standalone-hub-overlay .game-hub-heading-actions {display:flex;align-items:center;gap:9px;flex:0 0 auto;}
#main-menu.standalone-hub-overlay .game-hub-theme-toggle {display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;padding:0;border:1px solid var(--menu-line);border-radius:11px;font:700 24px/1 system-ui;cursor:pointer;}
#main-menu.standalone-hub-overlay .standalone-hub-subview-heading {grid-template-columns:44px minmax(0,1fr) 44px 44px;}
#main-menu.standalone-hub-overlay .standalone-hub-subview-heading .game-hub-theme-toggle {grid-column:3;}
#main-menu.standalone-hub-overlay .standalone-hub-subview-heading .standalone-hub-close-subview {grid-column:4;}

@media(max-width:700px) {
  #main-menu.standalone-hub-overlay .game-hub-search input { font-size:16px; }
}


/* 2026-10 common UI contract: one minimum touch target and keyboard treatment.
   Preserve individual game art, mechanics and original result containers. */
body.ug-unified-page .ug-header :is(.ug-share-button,.ug-audio-trigger,.standalone-hub-button),
.ug-share-poker,
.standalone-hub-header .standalone-hub-button {
  min-width:44px;min-height:44px;
}
body.ug-unified-page .ug-header .ug-share-button {min-height:44px;}
@media(max-width:600px){
  body.ug-unified-page .ug-actions .standalone-hub-button {min-height:44px;}
  body.ug-unified-page .ug-audio-trigger {width:44px;height:44px;}
}
@media(max-width:390px){
  body.ug-unified-page .ug-audio-trigger {width:44px;height:44px;}
}
/* Tiny remove/zoom buttons keep their visual design while their hit area grows. */
body.ug-unified-page :is(.qb-player-remove,.rt-remove,.marble-lobby-remove,.pc-player-remove,
  .remove-person,.player-remove,.janggi-view-control,#janggi-zoom-out,#janggi-zoom-in,
  #janggi-reset-view) {position:relative;z-index:1;}
body.ug-unified-page :is(.qb-player-remove,.rt-remove,.marble-lobby-remove,.pc-player-remove,
  .remove-person,.player-remove,#janggi-zoom-out,#janggi-zoom-in,
  #janggi-reset-view)::after {content:'';position:absolute;inset:-7px;}
body.ug-unified-page :is(.qb-player-remove,.rt-remove,.marble-lobby-remove,.pc-player-remove,
  .remove-person,.player-remove,#janggi-zoom-out,#janggi-zoom-in,#janggi-reset-view):focus-visible {
  outline:3px solid #e3d28d;outline-offset:3px;
}
body.ug-unified-page :is(#pc-reset-names,#marble-lobby-add,#marble-lobby-defaults,
  #quickbet-start,#quickbet-again,#quickbet-edit,#rt-prepare,#rt-replay,
  #rt-change,#pc-start,#pc-again,#pc-edit,#pc-copy) {min-height:44px;}
body.ug-unified-page .ug-common-result-action {min-height:44px;border-radius:10px;}
body.ug-unified-page .ug-common-result-action:focus-visible {outline:3px solid #e4ce93;outline-offset:3px;}
body.ug-unified-page .ug-result-surface {overflow-wrap:anywhere;}
body.ug-unified-page .ug-result-surface :is(strong,h2,h3) {overflow-wrap:anywhere;}
/* Shared panel width remains inside 320px devices and preserves focus. */
@media(max-width:390px){
  body.ug-unified-page .ug-audio-panel {
    width:min(265px,calc(100vw - 24px));max-width:calc(100vw - 24px);right:-88px;
  }
}
#main-menu.standalone-hub-overlay :is(.game-hub-category,.standalone-hub-close,.menu-button) {min-height:44px;}
#main-menu.standalone-hub-overlay :is(button,a,input):focus-visible {outline:3px solid #e8ddad;outline-offset:2px;}
@media(prefers-reduced-motion:reduce){
  body.ug-unified-page :is(.ug-result-surface,.ug-share-button,.ug-common-result-action),
  #main-menu.standalone-hub-overlay :is(.game-hub-game,.game-hub-category) {
    transition:none!important;scroll-behavior:auto!important;
  }
}


/* A result-copy action next to replay/edit, never part of the game engine. */
body.ug-unified-page .ug-copy-result-button {
  display:inline-flex;align-items:center;justify-content:center;min-height:44px;
  padding:9px 14px;border:1px solid #8f997b;border-radius:10px;
  color:inherit;background:transparent;font:750 12px/1.4 system-ui,Pretendard,sans-serif;cursor:pointer;
}
body.ug-unified-page .ug-copy-result-button:hover {filter:brightness(1.12);}
body.ug-unified-page .ug-copy-result-button[hidden] {display:none!important;}
body.ug-unified-page .ug-copy-result-status {display:block;min-width:0;font-size:12px;line-height:1.5;}
body.ug-unified-page .ug-copy-result-status:empty {display:none;}

/* The unified header is the one visible audio entry point. Original audio
   controls remain in the DOM for event handlers and saved game preferences. */
body.ug-unified-page :is(.qb-soundbar,#dice-audio-controls,.pc-audio-actions),
body.standalone-hub-page-yut.ug-unified-page .audio-controls,
body.standalone-hub-page-janggi.ug-unified-page .sound-controls,
body.standalone-hub-page-janggi.ug-unified-page :is(.volume-title,#audio-volume,#audio-effects-volume),
body.standalone-hub-page-chess.ug-unified-page :is(.audio-switches,.audio-volume-row) {
  display:none!important;
}
/* Chess keeps its special music selector; credits and instructions remain. */

/* Reaction sound mirrors remain functional but are controlled from the header. */
body.standalone-hub-page-reaction.ug-unified-page .arena-other-actions :is(#music-toggle,#sound-toggle){display:none!important;}
/* Site-wide header contract: game art stays distinct, all actions share tokens. */
body.ug-unified-page > header.ug-header {
  height:calc(84px + env(safe-area-inset-top,0px));min-height:calc(84px + env(safe-area-inset-top,0px));
  padding:env(safe-area-inset-top,0px) max(24px,calc((100vw - 1160px)/2)) 0;
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,max-content) minmax(0,1fr);
  align-items:center;gap:16px;
  background:var(--header-bg);border:0;border-bottom:1px solid var(--header-line);
  box-shadow:var(--header-shadow);color:var(--header-text);
  font-family:system-ui,-apple-system,"Apple SD Gothic Neo","Noto Sans KR",sans-serif;
}
body.ug-unified-page .ug-back {grid-column:1;grid-row:1;justify-self:start;gap:9px;min-height:44px;padding:0;margin:0;color:var(--header-text);font-size:12px;font-weight:750}
body.ug-unified-page .ug-back-arrow {flex:0 0 34px;width:34px;height:34px;border:1px solid var(--header-line);border-radius:11px;background:var(--header-control);color:var(--header-accent);font:700 19px/1 system-ui,sans-serif}
body.ug-unified-page .ug-back:hover {color:var(--header-accent)}
body.ug-unified-page .ug-back:hover .ug-back-arrow {background:var(--header-control-hover);border-color:var(--header-accent)}
body.ug-unified-page .ug-identity {position:static;left:auto;transform:none;grid-column:2;grid-row:1;justify-self:center;gap:10px;max-width:100%;min-width:0}
body.ug-unified-page .ug-mark {flex:0 0 40px;width:40px;height:44px;border:1px solid var(--header-mark-line);border-radius:12px;background:var(--header-mark);color:var(--header-accent);font-size:23px}
body.ug-unified-page .ug-identity-copy {gap:3px}
body.ug-unified-page .ug-name {color:var(--header-text);font:800 16px/1.24 system-ui,"Apple SD Gothic Neo",sans-serif;letter-spacing:-.03em}
body.ug-unified-page .ug-subtitle {color:var(--header-muted);font:700 10px/1.25 system-ui,"Apple SD Gothic Neo",sans-serif;letter-spacing:0}
body.ug-unified-page .ug-actions {grid-column:3;grid-row:1;justify-self:stretch;justify-content:flex-end;gap:8px;margin:0;padding:0;min-width:0}
body.ug-unified-page .ug-actions :is(.ug-audio-trigger,.ug-share-button,.standalone-hub-button) {
  box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;
  height:44px;min-height:44px;min-width:44px;padding:0 13px;margin:0;
  border:1px solid var(--header-line);border-radius:11px;
  background:var(--header-control);color:var(--header-text);box-shadow:none;
  font:750 12px/1.2 system-ui,"Apple SD Gothic Neo",sans-serif;
}
body.ug-unified-page .ug-actions .ug-audio-trigger {width:44px;min-width:44px;flex:0 0 44px;padding:0}
body.ug-unified-page .ug-actions .ug-share-button {width:96px;min-width:96px;flex:0 0 96px}
body.ug-unified-page .ug-actions .standalone-hub-button {width:112px;min-width:112px;flex:0 0 112px}
body.ug-unified-page .ug-actions :is(.ug-audio-trigger,.ug-share-button,.standalone-hub-button):hover,
body.ug-unified-page .ug-actions .standalone-hub-button[aria-expanded=true],
body.ug-unified-page .ug-audio[open]>.ug-audio-trigger {background:var(--header-control-hover);color:var(--header-accent);border-color:var(--header-accent)}
body.ug-unified-page .ug-actions .standalone-hub-bars i {background:var(--header-accent)}
body.ug-unified-page .ug-audio-indicator {box-shadow:0 0 0 2px var(--header-control)}
body.ug-unified-page .ug-audio-panel {background:var(--header-panel);color:var(--header-text);border-color:var(--header-line)}
body.ug-unified-page .ug-audio-heading {color:var(--header-text)}
body.ug-unified-page .ug-audio-option {background:var(--header-control);color:var(--header-text);border-color:var(--header-line)}
body.ug-unified-page .ug-audio-option[aria-pressed=false] {background:var(--header-bg);color:var(--header-muted);border-color:var(--header-line)}
body.ug-unified-page .ug-audio-option-state,
body.ug-unified-page .ug-audio-option[aria-pressed=false] .ug-audio-option-state {color:var(--header-muted)}
body.ug-unified-page .ug-audio-option:hover {border-color:var(--header-accent)}
body.ug-unified-page .ug-audio-volume input {accent-color:var(--header-accent)}
body.ug-unified-page .ug-header :is(a,button,summary,input):focus-visible {outline:3px solid var(--header-focus);outline-offset:3px}
body.ug-unified-page .ug-share-live:not(:empty) {color:var(--header-text);background:var(--header-control)}
@media(max-width:900px){
  body.ug-unified-page > header.ug-header {gap:9px;padding-left:max(17px,env(safe-area-inset-left,0px));padding-right:max(17px,env(safe-area-inset-right,0px))}
  body.ug-unified-page .ug-back-text,body.ug-unified-page .ug-share-text {display:none}
  body.ug-unified-page .ug-actions .ug-share-button {width:44px;min-width:44px;flex:0 0 44px;padding:0}
}
@media(max-width:650px){
  body.ug-unified-page > header.ug-header {
    height:calc(72px + env(safe-area-inset-top,0px));min-height:calc(72px + env(safe-area-inset-top,0px));
    gap:7px;padding-left:max(12px,env(safe-area-inset-left,0px));padding-right:max(12px,env(safe-area-inset-right,0px));
    grid-template-columns:44px minmax(0,1fr) auto;
  }
  body.ug-unified-page .ug-identity {gap:6px}
  body.ug-unified-page .ug-mark {flex:0 0 30px;width:30px;height:34px;font-size:19px;border-radius:9px}
  body.ug-unified-page .ug-name {font-size:12px;max-width:135px}
  body.ug-unified-page .ug-subtitle {font-size:9px}
  body.ug-unified-page .ug-actions {gap:5px}
  body.ug-unified-page .ug-actions :is(.ug-audio-trigger,.ug-share-button,.standalone-hub-button) {width:40px;min-width:40px;flex:0 0 40px;height:40px;min-height:40px;padding:0;border-radius:10px}
  body.ug-unified-page .ug-actions .standalone-hub-button-label {display:none}
  body.ug-unified-page .ug-actions .standalone-hub-bars {width:17px;flex-basis:17px}
}
@media(max-width:375px){
  body.ug-unified-page > header.ug-header {gap:4px;padding-left:max(8px,env(safe-area-inset-left,0px));padding-right:max(8px,env(safe-area-inset-right,0px));grid-template-columns:34px minmax(0,1fr) auto}
  body.ug-unified-page .ug-back {min-width:34px}
  body.ug-unified-page .ug-back-arrow {width:30px;height:30px;flex:0 0 30px}
  body.ug-unified-page .ug-mark {display:none}
  body.ug-unified-page .ug-name {max-width:92px;font-size:11px}
  body.ug-unified-page .ug-actions {gap:4px}
  body.ug-unified-page .ug-actions :is(.ug-audio-trigger,.ug-share-button,.standalone-hub-button) {width:36px;min-width:36px;flex:0 0 36px;height:40px;min-height:40px}
}
/* Same mobile viewport-centering contract as home/race/poker. */
@media(max-width:650px){
  body.ug-unified-page .ug-identity {
    position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
    grid-column:auto;grid-row:auto;width:max-content;min-width:0;
    max-width:calc(100vw - 296px);pointer-events:none;
  }
  body.ug-unified-page .ug-identity-copy {max-width:100%;min-width:0}
  body.ug-unified-page .ug-name {max-width:100%}
}
@media(max-width:500px){body.ug-unified-page .ug-mark {display:none}}
@media(max-width:375px){body.ug-unified-page .ug-identity {max-width:calc(100vw - 248px)}}

/* Match the entire All Games directory (including every Help & Settings
 * subview) to its host page. Light pages retain the original lobby UI.
 * These rules override the older unconditional light directory stylesheet. */
body[data-header-theme="dark"] #main-menu.standalone-hub-overlay {
  color:var(--menu-text);
  color-scheme:dark;
}
body[data-header-theme="dark"] #main-menu.standalone-hub-overlay .game-hub-shell {
  background:var(--menu-bg);color:var(--menu-text);
  border-color:var(--menu-line);box-shadow:0 28px 95px #020b10c9;
}
body[data-header-theme="dark"] #main-menu.standalone-hub-overlay :is(
  .game-hub-heading,.game-hub-search-wrap,.game-hub-results,.game-hub-utilities,
  .standalone-hub-subview,.standalone-hub-footer) {
  background:var(--menu-bg);color:var(--menu-text);
}
body[data-header-theme="dark"] #main-menu.standalone-hub-overlay .game-hub-categories {
  background:var(--menu-sidebar);border-color:var(--menu-line);
}
body[data-header-theme="dark"] #main-menu.standalone-hub-overlay .game-hub-content {
  border-color:var(--menu-line);
}
body[data-header-theme="dark"] #main-menu.standalone-hub-overlay :is(
  #game-hub-title,.game-hub-results-heading h3,.standalone-hub-subview-heading h2,
  .standalone-hub-help-title,.standalone-hub-guide-heading,.standalone-hub-contributors) {
  color:var(--menu-text);
}
body[data-header-theme="dark"] #main-menu.standalone-hub-overlay :is(
  .game-hub-brand,#game-hub-intro,#game-hub-count,.game-hub-utilities h3,
  .game-hub-detail-text,.standalone-hub-detail-text,.standalone-hub-help-meta,
  .standalone-hub-guide-paragraph,.game-hub-game-desc,.game-hub-empty,
  .game-hub-game-tail) {
  color:var(--menu-muted);
}
body[data-header-theme="dark"] #main-menu.standalone-hub-overlay .game-hub-search {
  background:var(--menu-panel);color:var(--menu-muted);
  border-color:var(--menu-line);
}
body[data-header-theme="dark"] #main-menu.standalone-hub-overlay .game-hub-search:focus-within {
  border-color:var(--menu-accent);box-shadow:0 0 0 3px #e7d19626;
}
body[data-header-theme="dark"] #main-menu.standalone-hub-overlay .game-hub-search input {
  color:var(--menu-text);background:transparent;
}
body[data-header-theme="dark"] #main-menu.standalone-hub-overlay .game-hub-search input::placeholder {
  color:var(--menu-muted);
}
body[data-header-theme="dark"] #main-menu.standalone-hub-overlay .game-hub-search kbd {
  background:var(--menu-surface);border-color:var(--menu-line);color:var(--menu-text);
}
body[data-header-theme="dark"] #main-menu.standalone-hub-overlay .game-hub-category {
  background:transparent;color:var(--menu-muted);border-color:transparent;
}
body[data-header-theme="dark"] #main-menu.standalone-hub-overlay .game-hub-category:hover {
  color:var(--menu-text);background:var(--menu-surface-hover);
}
body[data-header-theme="dark"] #main-menu.standalone-hub-overlay .game-hub-category[aria-pressed="true"] {
  color:var(--menu-text);background:var(--menu-selected);border-color:var(--menu-accent);
}
body[data-header-theme="dark"] #main-menu.standalone-hub-overlay .game-hub-game {
  background:transparent;color:var(--menu-text);border-bottom-color:var(--menu-line);
}
body[data-header-theme="dark"] #main-menu.standalone-hub-overlay :is(
  .game-hub-game:hover,.game-hub-game:focus-visible,.standalone-hub-current-game) {
  background:var(--menu-surface);border-color:var(--menu-accent);
}
body[data-header-theme="dark"] #main-menu.standalone-hub-overlay .game-hub-game-title {
  color:var(--menu-text);
}
body[data-header-theme="dark"] #main-menu.standalone-hub-overlay .game-hub-game-icon {
  background:var(--menu-surface);color:var(--menu-accent);border-color:var(--menu-line);
}
body[data-header-theme="dark"] #main-menu.standalone-hub-overlay :is(
  .game-hub-game-arrow,.standalone-hub-current-game .game-hub-game-arrow) {
  color:var(--menu-accent);
}
body[data-header-theme="dark"] #main-menu.standalone-hub-overlay :is(
  .standalone-hub-close,.standalone-hub-back,.standalone-hub-close-subview,
  .standalone-hub-home,.game-hub-utilities .menu-button) {
  background:var(--menu-surface);color:var(--menu-text);border-color:var(--menu-line);
}
body[data-header-theme="dark"] #main-menu.standalone-hub-overlay :is(
  .standalone-hub-close:hover,.standalone-hub-back:hover,.standalone-hub-close-subview:hover,
  .standalone-hub-home:hover,.game-hub-utilities .menu-button:hover) {
  background:var(--menu-surface-hover);color:var(--menu-text);border-color:var(--menu-accent);
}
body[data-header-theme="dark"] #main-menu.standalone-hub-overlay :is(
  .standalone-hub-subview-heading,.standalone-hub-help-card) {
  border-color:var(--menu-line);
}
body[data-header-theme="dark"] #main-menu.standalone-hub-overlay .language-option-large {
  background:var(--menu-surface);color:var(--menu-text);border-color:var(--menu-line);
}
body[data-header-theme="dark"] #main-menu.standalone-hub-overlay .language-option-large[aria-pressed="true"] {
  background:var(--menu-selected);color:var(--menu-text);
  border-color:var(--menu-accent);box-shadow:inset 0 0 0 1px var(--menu-accent);
}
body[data-header-theme="dark"] #main-menu.standalone-hub-overlay .language-option-large:hover {
  border-color:var(--menu-accent);
}
body[data-header-theme="dark"] #main-menu.standalone-hub-overlay :is(
  .standalone-hub-profile,.standalone-hub-guide-more) {
  background:var(--menu-accent);color:#18312e;border-color:var(--menu-accent);
}
body[data-header-theme="dark"] #main-menu.standalone-hub-overlay :is(
  .standalone-hub-profile:hover,.standalone-hub-guide-more:hover) {
  background:#f5e6b9;color:#18312e;
}
body[data-header-theme="dark"] #main-menu.standalone-hub-overlay .standalone-hub-guide-lead {
  background:var(--menu-surface);color:var(--menu-text);
  border-color:var(--menu-line);border-left-color:var(--menu-accent);
}
body[data-header-theme="dark"] #main-menu.standalone-hub-overlay .standalone-hub-guide-step {
  background:var(--menu-panel);border-color:var(--menu-line);color:var(--menu-text);
}
body[data-header-theme="dark"] #main-menu.standalone-hub-overlay .standalone-hub-guide-index {
  background:var(--menu-surface);color:var(--menu-accent);border-color:var(--menu-line);
}
body[data-header-theme="dark"] #main-menu.standalone-hub-overlay :is(
  button,a,input,.game-hub-category):focus-visible {
  outline:3px solid var(--menu-focus);outline-offset:3px;
}
body[data-header-theme="dark"] #main-menu.standalone-hub-overlay .game-hub-results,
body[data-header-theme="dark"] #main-menu.standalone-hub-overlay .standalone-hub-subview-content {
  scrollbar-color:var(--menu-line) var(--menu-bg);
}
@media(max-width:700px){
  body[data-header-theme="dark"] #main-menu.standalone-hub-overlay .game-hub-category {
    background:var(--menu-surface);border-color:var(--menu-line);
  }
  body[data-header-theme="dark"] #main-menu.standalone-hub-overlay .game-hub-category[aria-pressed="true"] {
    background:var(--menu-selected);border-color:var(--menu-accent);
  }
}

/* Shared standalone masthead: single-row compact layout preserves all game names without wrapping to 2 rows.
 * Replaces viewport-centered overlay; uses the same control order as home/poker. */
@media(max-width:820px) {
  body.ug-unified-page > header.ug-header {
    display:grid;
    height:calc(72px + env(safe-area-inset-top,0px));
    min-height:calc(72px + env(safe-area-inset-top,0px));
    padding:env(safe-area-inset-top,0px) max(12px,env(safe-area-inset-right,0px)) 0 max(12px,env(safe-area-inset-left,0px));
    grid-template-columns:auto minmax(0,1fr) auto;
    grid-template-rows:1fr;
    gap:0 8px;align-items:center;
  }
  body.ug-unified-page .ug-back {grid-column:1;grid-row:1;justify-self:start;min-width:36px;}
  body.ug-unified-page .ug-identity {
    position:static;left:auto;top:auto;transform:none;pointer-events:auto;
    grid-column:2;grid-row:1;justify-self:start;justify-content:flex-start;
    width:auto;min-width:0;max-width:100%;gap:6px;
  }
  body.ug-unified-page .ug-identity-copy {max-width:100%;min-width:0;overflow:hidden;}
  body.ug-unified-page .ug-name {font-size:13px;max-width:100%;}
  body.ug-unified-page .ug-actions {
    grid-column:3;grid-row:1;justify-self:end;
    display:flex;justify-content:flex-end;gap:5px;width:auto;min-width:0;
  }
  body.ug-unified-page .ug-actions .standalone-hub-button-label {display:none;}
  body.ug-unified-page .ug-actions :is(
    .ug-audio-trigger,.ug-share-button,.standalone-hub-button,.site-theme-toggle
  ) {box-sizing:border-box;flex:0 0 38px;width:38px;min-width:38px;height:38px;min-height:38px;padding:0;border-radius:10px;}
  body.ug-unified-page .ug-back-arrow {width:34px;height:34px;flex-basis:34px;}
}
@media(max-width:480px) {
  body.ug-unified-page > header.ug-header {
    height:calc(60px + env(safe-area-inset-top,0px));
    min-height:calc(60px + env(safe-area-inset-top,0px));
    padding-left:max(10px,env(safe-area-inset-left,0px));
    padding-right:max(10px,env(safe-area-inset-right,0px));
    gap:0 6px;
  }
  body.ug-unified-page .ug-back {min-width:32px;}
  body.ug-unified-page .ug-back-arrow {width:32px;height:32px;flex-basis:32px;font-size:16px;border-radius:9px;}
  body.ug-unified-page .ug-mark {display:grid;flex:0 0 26px;width:26px;height:30px;font-size:16px;border-radius:8px;}
  body.ug-unified-page .ug-name {font-size:12px;}
  body.ug-unified-page .ug-subtitle {display:block;font-size:9px;margin-top:1px;}
  body.ug-unified-page .ug-actions {gap:4px;}
  body.ug-unified-page .ug-actions :is(
    .ug-audio-trigger,.ug-share-button,.standalone-hub-button,.site-theme-toggle
  ) {flex:0 0 34px;width:34px;min-width:34px;height:34px;min-height:34px;border-radius:9px;}
  body.ug-unified-page .ug-actions .site-theme-toggle {font-size:19px;}
}
@media(max-width:360px) {
  body.ug-unified-page > header.ug-header {
    padding-left:max(8px,env(safe-area-inset-left,0px));
    padding-right:max(8px,env(safe-area-inset-right,0px));
    gap:0 4px;
  }
  body.ug-unified-page .ug-mark {display:none;}
  body.ug-unified-page .ug-actions {gap:3px;}
  body.ug-unified-page .ug-actions :is(
    .ug-audio-trigger,.ug-share-button,.standalone-hub-button,.site-theme-toggle
  ) {flex:0 0 32px;width:32px;min-width:32px;height:32px;min-height:32px;}
}
