/* Shared chrome is namespaced so original game selectors keep their behavior. */
*,*::before,*::after{box-sizing:border-box}
.cg-page .card.cg-art-card{padding:0;overflow:hidden;background:#fff}
.cg-page .cg-card-face{display:block;width:100%;height:100%;object-fit:contain;border-radius:inherit;pointer-events:none;user-select:none}
html:has(body[data-game="idiot_game.html"]){height:auto;overflow:visible}
.cg-page[data-game="idiot_game.html"]{height:auto;overflow:visible}
.cg-page[data-game="idiot_game.html"] #app{height:auto;max-width:1180px;margin:auto;border:1px solid #ffffff30;border-radius:20px;overflow:hidden}
.cg-page[data-game="idiot_game.html"] .topbar{height:auto;min-height:64px;flex-wrap:wrap;gap:12px}
.cg-page[data-game="idiot_game.html"] .table{display:flex;flex-wrap:wrap;gap:20px;padding:16px;min-height:640px;align-items:center;justify-content:center}
.cg-page[data-game="idiot_game.html"] .player{position:static;transform:none;min-width:0;flex:1 1 200px;width:auto;order:1}
.cg-page[data-game="idiot_game.html"] .player.p0{order:4;flex-basis:100%;width:100%}
.cg-page[data-game="idiot_game.html"] .statusbox{position:static;transform:none;flex-basis:100%;width:100%;order:0;text-align:center}
.cg-page[data-game="idiot_game.html"] .center{position:static;transform:none;flex-basis:100%;order:2;justify-content:center;padding:14px 0}
.cg-page[data-game="idiot_game.html"] .actionbar{position:static;transform:none;flex-basis:100%;order:3;justify-content:center;flex-wrap:wrap}
.cg-page[data-game="idiot_game.html"] .special-note,.cg-page[data-game="idiot_game.html"] .log{position:static;display:block;order:5;flex:1 1 230px;max-width:100%}
.cg-page[data-game="idiot_game.html"] .p0 .hand{width:100%;max-width:100%;justify-content:flex-start;padding:14px 8px}
.cg-page[data-game="idiot_game.html"] .p0 .table-stack{width:58px;height:84px}
.cg-page[data-game="idiot_game.html"] .p0 .card{width:58px;height:84px}
.cg-page[data-game="nulla_v1.3.html"] .setup{position:relative;inset:auto;border-radius:24px}
.cg-page[data-game="nulla_v1.3.html"] .cg-play:has(.setup:not(.hidden))>.game{display:none}
.cg-page[data-game="nulla_v1.3.html"] .topbar{position:relative;top:auto;max-width:1180px;margin:auto;flex-wrap:wrap;gap:12px;border-radius:16px}
.cg-page[data-game="nulla_v1.3.html"] h1.brand{margin:0}
.cg-page[data-game="nulla_v1.3.html"] .cg-art-card .slot,.cg-page[data-game="nulla_v1.3.html"] .cg-art-card .points{z-index:1;background:#fff8e8ed;color:#173126;padding:2px 4px;border-radius:5px;font-size:10px}
.cg-page[data-game="nulla_v1.3.html"] .cg-art-card.zero{box-shadow:0 0 0 3px #e7b84b}
.cg-page[data-game="minesweeper_v1.1.html"] .page{min-width:0}
.cg-page[data-game="minesweeper_v1.1.html"] .game-shell{min-width:0}
.cg-page[data-game="minesweeper_v1.1.html"] .board-frame{max-width:100%}
@media(max-width:600px){
 .cg-page[data-game="idiot_game.html"] .table{padding:10px;gap:12px;min-height:0}
 .cg-page[data-game="idiot_game.html"] .player:not(.p0){flex:1 1 0;max-width:calc((100% - 24px)/3)}
 .cg-page[data-game="idiot_game.html"] .player:not(.p0) .table-cards{gap:2px}
 .cg-page[data-game="idiot_game.html"] .player:not(.p0) .table-stack,.cg-page[data-game="idiot_game.html"] .player:not(.p0) .card{width:clamp(22px,7vw,38px);height:clamp(32px,10.2vw,55px)}
 .cg-page[data-game="idiot_game.html"] .player:not(.p0) .nameplate{font-size:10px;padding:4px 5px}
 .cg-page[data-game="idiot_game.html"] .player-status{height:auto;min-height:24px;font-size:9px;text-align:center}
 .cg-page[data-game="idiot_game.html"] .back-mini{width:12px;height:20px;flex-shrink:1;margin-left:-5px}
 .cg-page[data-game="idiot_game.html"] .ai-hand-mini{max-width:100%}
}
html{scroll-behavior:smooth;scroll-padding-top:20px}
body.cg-page{display:block;padding:0;margin:0;min-width:0}
:focus-visible{outline:3px solid #f1c75b;outline-offset:4px}
.cg-skip{position:fixed;left:16px;top:-100px;z-index:10000;background:#fff8e6;color:#06452f;padding:14px 20px;border-radius:8px;font:700 16px system-ui}
.cg-skip:focus{top:12px}
.cg-header{display:flex;align-items:center;justify-content:space-between;gap:24px;width:100%;margin:0;padding:18px max(20px,calc((100% - 1180px)/2));border-bottom:1px solid #ffffff30;background:#06452f;color:#fff8e6;font:16px system-ui}
.cg-header .cg-brand{color:#fff8e6;text-decoration:none;font:italic 800 28px Georgia,serif;white-space:nowrap}
.cg-brand span{display:block;margin-top:6px;color:#e6cd82;font:700 9px system-ui;letter-spacing:2px}
.cg-header .cg-nav{display:flex;gap:8px;justify-self:auto;flex-wrap:wrap}
.cg-header .cg-nav a{display:inline-flex;align-items:center;min-height:44px;padding:8px 12px;color:#fff8e6;font:600 14px system-ui;text-decoration:none;border-radius:8px}
.cg-header .cg-nav a:hover{background:#ffffff15}
.cg-location{max-width:1180px;margin:auto;padding:18px 20px;display:flex;align-items:center;gap:10px;font:13px system-ui;color:#fff8e6}
.cg-location a{color:inherit;text-underline-offset:4px}
.cg-version{margin-left:auto;border:1px solid #ffffff40;padding:4px 10px;border-radius:20px;color:#f3d484;font-weight:700}
.cg-play{display:flow-root;width:100%;padding:0 16px 32px;min-width:0}
.cg-play>.app,.cg-play>.wrap,.cg-play>.game,.cg-play>.game-shell{margin-left:auto;margin-right:auto;max-width:100%}
.cg-guide{background:#f5efdf;color:#233c2e;border-radius:30px 30px 0 0;padding:clamp(28px,5vw,64px) max(22px,calc((100% - 940px)/2));font:16px/1.75 system-ui;overflow-wrap:anywhere}
.cg-guide h2{font:700 clamp(24px,3vw,32px)/1.2 Georgia,serif;letter-spacing:0;color:#173e2b;text-shadow:none;margin:0 0 16px}
.cg-guide-head h2{font-size:clamp(30px,4vw,44px);margin:10px 0 14px}
.cg-guide p{max-width:75ch;margin:0 0 16px;color:#405047}
.cg-eyebrow{color:#526449;letter-spacing:2px;font-size:11px;font-weight:800}
.cg-guide-nav{display:flex;flex-wrap:wrap;gap:8px;margin:28px 0 8px;justify-self:auto}
.cg-guide-nav a,.cg-more a{display:inline-flex;align-items:center;min-height:44px;padding:8px 15px;border:1px solid #bcc9b7;border-radius:24px;color:#174b36;background:#fbf8ef;text-decoration:none;font:600 14px system-ui}
.cg-guide-nav a:hover,.cg-more a:hover{background:#e3e9d8;border-color:#174b36}
.cg-guide-section{padding:32px 0 18px;border-bottom:1px solid #ced3be}
.cg-more{padding-top:32px}.cg-more nav{display:flex;gap:8px;flex-wrap:wrap;justify-self:auto}
.cg-more a[aria-current]{background:#174b36;color:white}
.cg-footer{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;background:#06452f;color:#e6ecdf;padding:26px max(22px,calc((100% - 1180px)/2));font:14px system-ui;text-align:left}
.cg-footer a{color:#fff8e6;text-underline-offset:4px;min-height:32px}
.cg-noscript{background:#fff3cb;color:#173e2b;padding:16px}
.cg-word-title{font:700 26px Georgia,serif;margin:0 0 16px;text-align:center;color:#fff8e6}
.cg-page[data-game="word-sort-v8.html"] .foundation{color:#fff8e6}
.cg-page[data-game="word-sort-v8.html"] .foundation small{color:#e4efd7}
.cg-page[data-game="pickle_v5.html"] #setupModal{position:relative;inset:auto;padding:16px;background:transparent}
.cg-page[data-game="pickle_v5.html"] #setupModal .modal-card{margin:auto}
.cg-page[data-game="pickle_v5.html"] .cg-play:has(#setupModal:not(.hidden))>.wrap{display:none}
.cg-page[data-game="jigsaw-v7-picture-picker.html"] .picker{position:relative;inset:auto;z-index:auto;border-radius:24px}
.cg-page[data-game="jigsaw-v7-picture-picker.html"] .cg-play:has(.picker:not(.hidden))>.app{display:none}
.cg-page[data-game="ludo_game_v2_assets.html"] .game-shell{grid-template-columns:minmax(0,780px) minmax(240px,340px)}
.cg-home .game:focus-visible{outline-color:#174b36}
.cg-home #lang{justify-self:start;width:auto;max-width:220px}
.cg-home .visual{height:156px}.cg-home .info{padding:20px 22px 24px}
.cg-home .game{transition:transform .18s,box-shadow .18s}.cg-home .game:hover{box-shadow:0 12px 28px #4d3d2236}
.cg-home nav a{min-height:44px;display:inline-flex;align-items:center}
@media(max-width:860px){.cg-page[data-game="ludo_game_v2_assets.html"] .game-shell{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.cg-header{padding:14px 16px;gap:10px;flex-wrap:wrap}.cg-header .cg-brand{font-size:24px}.cg-header .cg-nav{width:100%;justify-content:space-between;gap:0}.cg-header .cg-nav a{padding:7px 6px}.cg-play{padding:0 8px 24px}.cg-location{padding:14px 16px}.cg-guide{border-radius:22px 22px 0 0}.cg-footer{flex-direction:column}.cg-word-title{font-size:17px}.cg-home .top{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px}.cg-home .top nav{display:flex;justify-content:center;width:100%;gap:26px}.cg-home .hero{padding-top:32px}.cg-home .head h2{font-size:34px}.cg-home .visual{height:140px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
.cg-home .cg-browse{position:relative;text-align:left;z-index:5}.cg-home .cg-browse summary{cursor:pointer;list-style:none;display:flex;gap:18px;align-items:center}.cg-home .cg-browse summary::-webkit-details-marker{display:none}.cg-home .cg-browse summary:focus-visible{outline:3px solid #f2d86b;outline-offset:4px}.cg-home .cg-browse-list{position:absolute;top:calc(100% + 10px);left:50%;transform:translateX(-50%);width:min(600px,calc(100vw - 32px));max-height:65vh;overflow:auto;display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:22px;background:#fbf8ee;color:#153e31;border:1px solid #d8d5c6;border-radius:16px;box-shadow:0 15px 40px #0005}.cg-home .cg-browse-list h2{font:700 19px Georgia,serif;margin:0 0 8px}.cg-home .cg-browse-list a{display:block;padding:10px 6px;color:#124832;text-decoration:none;min-height:44px;border-radius:6px}.cg-home .cg-browse-list a:hover,.cg-home .cg-browse-list a:focus-visible{background:#e5eadc;text-decoration:underline}@media(max-width:400px){.cg-home .cg-browse-list{grid-template-columns:1fr}}
.cg-home .cg-home-subtitle{display:block;font:600 12px/1.5 system-ui,sans-serif;letter-spacing:.12em;margin-top:5px}.cg-header .cg-brand span{text-transform:none;letter-spacing:.12em}.cg-footer>span{line-height:1.8}
.cg-home .cg-home-about{max-width:780px;margin:48px auto 0;padding:32px clamp(18px,4vw,36px);border-top:1px solid #174b3630;text-align:left;color:#33483b;line-height:1.75;scroll-margin-top:24px}.cg-home .cg-home-about h2{font:700 clamp(28px,4vw,38px)/1.2 Georgia,serif;color:#173e2b;margin:0 0 22px}.cg-home .cg-home-about p{margin:0 0 18px}.cg-home .cg-home-about p:last-child{margin-bottom:0}
