/* Only the newly approved ancillary screens. Gameplay, setup, and compact score dialogs retain their layout. */
#app[data-compact] > .shell{max-width:720px;margin:auto;padding:10px 12px;min-height:0}
#app[data-compact] .shell > .topbar,#app[data-compact] .shell > .brandbar,#app[data-compact] .bottom-note{display:none}
#app[data-compact] #main{margin:0;padding:0;min-height:0}
#app[data-compact] .gh-compact-page{margin:0;padding:0;max-width:none;width:100%;height:calc(100svh - 20px);height:calc(var(--compact-height,100dvh) - 20px - env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:10px;min-height:0}
.gh-compact-nav{display:flex;align-items:center;gap:10px;flex:none;min-height:44px;margin:0;padding:0 0 6px;border-bottom:1px solid #dce2db}
.gh-compact-nav h1{font-size:20px;line-height:1.2;margin:0;flex:1;min-width:0;overflow-wrap:anywhere;text-align:left}
.gh-compact-nav .back.gh-back{width:44px;min-width:44px;height:44px;min-height:44px;flex:0 0 44px;display:inline-flex;align-items:center;justify-content:center;padding:8px;margin:0;border:0;background:transparent}
.gh-compact-nav .gh-back svg{width:28px;height:28px;flex:0 0 28px}
.gh-compact-nav .gh-back-label{position:absolute;width:1px;height:1px;padding:0;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
.gh-compact-nav .text-button{font-size:13px;min-height:44px}
.gh-compact-page p,.gh-compact-dialog p{font-size:15px;line-height:1.45;margin:0 0 8px;overflow-wrap:anywhere}
.gh-compact-page h2,.gh-compact-dialog h2,.gh-compact-dialog h3{font-size:18px;line-height:1.25;margin:0 0 8px}
.gh-compact-page .btn,.gh-compact-dialog .btn{font-size:15px;line-height:1.25;min-height:44px;padding:10px 12px;border-radius:12px;margin:0;white-space:normal}
.gh-compact-intro{color:#626c66;margin:0!important;font-size:14px!important}
.gh-compact-tabs{display:flex;gap:4px;flex:none;padding:3px;background:#eef1ec;border-radius:12px}
.gh-compact-tabs>button,.gh-compact-tabs>span{flex:1;min-width:0;min-height:44px;border:0;border-radius:9px;background:transparent;color:#244237;font-family:inherit;font-size:14px;font-weight:600;line-height:1.2;display:flex;align-items:center;justify-content:center;text-align:center;padding:8px}
.gh-compact-tabs [aria-pressed=true],.gh-compact-tabs [aria-current]{background:#e7f0ce;box-shadow:inset 0 0 0 1px #a8bf81}
.gh-compact-pane,.gh-compact-list,.gh-history-body,.gh-history-detail,.gh-history-detail-copy,.gh-credit-browser,.gh-credit-detail,.gh-credit-copy,.gh-preview-benefits{display:flex;flex-direction:column;gap:8px;flex:1;min-height:0}
.gh-paged{display:flex;flex-direction:column;gap:8px;flex:1;min-height:0}
.gh-page-stage{display:flex;flex-direction:column;gap:8px;flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
.gh-page-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none;border-top:1px solid #dce2db;padding-top:5px}
.gh-page-controls button{min-height:44px;padding:8px 10px;border:1px solid #c9d6ce;border-radius:10px;background:white;color:#1e503b;font-size:14px;font-weight:650;cursor:pointer}
.gh-page-controls button:disabled{opacity:.45;cursor:default}.gh-page-controls [role=status]{font-size:13px;white-space:nowrap}
.gh-library-row,.gh-credit-row,.gh-host-player{display:flex;gap:12px;align-items:center;justify-content:space-between;min-height:48px;padding:8px 10px;background:#fff;border:1px solid #e0e5de;border-radius:10px;font-size:14px;overflow-wrap:anywhere}
.gh-library-row>strong{flex:1}.gh-library-row>span{max-width:47%;text-align:right;color:#626c66}
.gh-credit-row .text-button,.gh-host-player button{min-height:36px;white-space:nowrap;font-size:13px}.gh-credit-row strong{min-width:0}
.gh-compact-search{width:100%;min-height:44px;border:2px solid #247545;border-radius:10px;padding:8px 12px;font-size:16px;flex:none}
.gh-credit-detail a{overflow-wrap:anywhere}.gh-credit-detail .gh-compact-nav h1{font-size:18px}
.gh-preview-heading .price{font-size:27px;line-height:1.2;margin:4px 0}.gh-preview-heading .price small{font-size:14px}.gh-preview-heading .small-note{font-size:12px;color:#667066;margin:0}
.gh-compact-page .notice{font-size:13px;line-height:1.4;padding:10px 12px;margin:0;border-radius:12px;flex:none}
.gh-preview-benefits li{display:flex;align-items:center;gap:8px;list-style:none;font-size:14px;line-height:1.4;padding:7px 10px;border-radius:8px;background:#f0f5e9}
.gh-preview-benefits svg{flex:none}.gh-preview-actions{display:grid;gap:6px;flex:none}.gh-preview-actions .text-button{margin:0!important;min-height:36px}
.gh-history-body .v3-history-card,.gh-compact-dialog .v3-history-card{padding:10px 12px;margin:0;border-radius:12px;background:white;flex:none}
.gh-history-body .v3-history-card h2,.gh-compact-dialog .v3-history-card h2{font-size:16px;margin:4px 0 6px}
.gh-history-body .v3-history-card small,.gh-compact-dialog .v3-history-card small{font-size:12px}
.gh-history-body .v3-history-scores,.gh-compact-dialog .v3-history-scores{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
.gh-history-body .v3-history-scores>span,.gh-compact-dialog .v3-history-scores>span{font-size:13px;padding:5px 7px;gap:5px;overflow-wrap:anywhere;display:flex;justify-content:space-between;align-items:center}
.gh-history-body .v3-history-scores strong,.gh-compact-dialog .v3-history-scores strong{font-size:18px;flex:none}
.gh-history-body .v3-history-winner,.gh-compact-dialog .v3-history-winner{font-size:13px;margin:5px 0 0;font-weight:600}
.gh-history-actions{display:flex;align-items:center;gap:10px;flex:none}.gh-history-actions .btn{flex:1}.gh-history-actions .text-button{font-size:12px;min-height:44px}
.gh-history-score-row{display:flex;justify-content:space-between;gap:8px;padding:10px;border-radius:8px;background:#eff4e6;font-size:15px}
.gh-history-detail-copy .v3-correction-note{padding:10px;background:white;border:1px solid #dae2d8;border-radius:8px;font-size:14px;margin:0}
.modal.gh-compact-dialog,dialog.gh-compact-dialog{width:min(560px,calc(100vw - 24px));max-width:560px;padding:14px;border-radius:20px;max-height:calc(var(--compact-height,100dvh) - 24px);box-sizing:border-box;overflow:auto;margin:auto}
.gh-compact-dialog > .stack{display:flex;flex-direction:column;gap:12px;min-height:0;margin:0;height:100%}
.gh-compact-dialog .modal-message,.gh-compact-dialog .mp-dialog-body{font-size:15px;line-height:1.45;margin:12px 0;min-height:0;overflow-wrap:anywhere}
.gh-compact-dialog .gh-dialog-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;flex:none;margin:0}
.gh-compact-dialog .gh-dialog-actions>.btn:only-child{grid-column:1/-1}
.modal.gh-dialog-reader,dialog.gh-dialog-reader{height:min(700px,calc(var(--compact-height,100dvh) - 24px));display:flex;flex-direction:column;gap:8px}
dialog.gh-dialog-reader:not([open]){display:none}
.gh-dialog-reader .modal-message,.gh-dialog-reader .mp-dialog-body{display:flex;flex-direction:column;gap:8px;flex:1;margin:0;min-height:0}
.gh-dialog-reader .guide{padding:0;margin:0}.gh-dialog-reader .guide .gh-page-stage>div{padding:12px;background:#f1f5e7;border-radius:12px}
.gh-compact-dialog .answer{font-size:26px;padding:10px;overflow-wrap:anywhere}
.gh-host-player>span{min-width:0}.gh-host-player small{display:block;font-size:12px;color:#627066}.gh-host-filter{font-size:16px;min-height:44px;padding:8px;border:1px solid #bfcfc3;border-radius:10px;width:100%}
.gh-manage-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.gh-manage-grid .btn{font-size:14px}
.gh-mode-options{display:flex;flex-direction:column;gap:10px}.gh-mode-options .mode{display:flex;align-items:center;gap:12px;min-height:90px;padding:14px;border-radius:16px;margin:0;line-height:1.3}
.gh-mode-options .mode-icon{width:42px;height:42px;font-size:24px;flex:none}.gh-mode-options .mode strong{font-size:17px}.gh-mode-options .mode small{font-size:14px;margin-top:4px}.gh-mode-options .mode>span:nth-child(2){flex:1;min-width:0}.gh-mode-footer{margin-top:auto;text-align:center}
.gh-compact-page .gh-mode-title{font-size:24px;line-height:1.2;margin:6px 0 0}.gh-compact-page .gh-mode-description{font-size:14px;color:#637067}
.gh-compact-page .gh-entry-actions{display:grid;gap:10px;padding:12px;border:1px solid #d3dfd5;border-radius:16px;background:#fff}.gh-entry-actions .btn{min-height:52px}
@media(max-height:620px){#app[data-compact] .gh-compact-page{gap:6px}.gh-compact-nav h1{font-size:18px}.gh-compact-dialog .gh-compact-nav h1{font-size:18px}.gh-compact-page .gh-mode-title{font-size:21px}.gh-mode-options .mode{min-height:76px;padding:10px}.gh-compact-page .notice{font-size:12px;padding:8px}.gh-preview-heading h2{font-size:17px}.gh-preview-heading .price{font-size:23px}}
@media(min-width:760px){#app[data-compact] .gh-compact-page{height:min(850px,calc(var(--compact-height,100dvh) - 20px));padding:0 16px}.gh-mode-options{display:grid;grid-template-columns:1fr 1fr}}
@media(prefers-reduced-motion:no-preference){.gh-compact-page button,.gh-compact-dialog button{transition:background-color .15s}}

.gh-compact-dialog .gh-dialog-actions>.btn{min-width:0;width:100%}
.gh-compact-page>.btn{flex:none}
.gh-manage-grid .btn{min-width:0}
.gh-dialog-reader .guide>.gh-page-stage{padding:0;position:static;counter-increment:none}
.gh-dialog-reader .guide>.gh-page-stage:before{display:none}
