/* Shared, responsive header for Crilo's standalone More Games pages.
   No leaderboard or duck navigation on these small independent games. */
.crilo-game-topbar{
 position:sticky;top:0;z-index:35;box-sizing:border-box;width:100%;
 min-height:68px;height:auto!important;display:flex;align-items:center;
 justify-content:flex-start;gap:clamp(14px,2.7vw,35px);
 padding:12px clamp(14px,2vw,26px);
 background:rgba(255,255,255,.94);border-bottom:1px solid #e6e8ed;
 backdrop-filter:blur(15px);-webkit-backdrop-filter:blur(15px);
 color:#191c23;
}
.crilo-game-topbar .brand{
 flex:none;color:#181a1f;font-size:22px;font-weight:950;
 letter-spacing:.12em;text-decoration:none;line-height:1.3;
}
.crilo-game-topbar nav{
 display:flex;align-items:center;gap:clamp(12px,2.5vw,28px);min-width:0;
}
.crilo-game-topbar nav a{
 text-decoration:none;color:#414956;letter-spacing:.045em;
 font-size:13px;font-weight:800;white-space:nowrap;
}
.crilo-game-topbar nav a:is(:hover,.active){color:#171b22}
.crilo-game-topbar nav a.active{
 text-decoration:underline;text-underline-offset:8px;text-decoration-thickness:2px;
}
.crilo-game-topbar .header-actions{
 margin-left:auto;display:flex;align-items:center;gap:9px;min-width:0;
}
.crilo-game-topbar .circle-btn{
 flex:none;width:36px;height:36px;display:grid;place-items:center;
 font:900 17px/1 system-ui,sans-serif;color:#242a35;
 border:1px solid #d9e0e6;border-radius:50%;background:#f5f7f9;
 cursor:pointer;
}
.crilo-game-topbar .crilo-game-settings{
 display:inline-flex;gap:6px;align-items:center;justify-content:center;
 min-height:36px;padding:7px 12px;border:1px solid #d9e0e6;
 border-radius:999px;background:#f5f7f9;
 color:#242a35;font-size:12px;font-weight:850;letter-spacing:.035em;
 white-space:nowrap;text-decoration:none;
}
.crilo-game-topbar .crilo-game-settings svg{width:16px;height:16px;flex:none}
.crilo-game-topbar .circle-btn:hover,
.crilo-game-topbar .crilo-game-settings:hover{background:#e8f3ee;border-color:#95b9a6}
.crilo-game-topbar :is(a,button):focus-visible{
 outline:3px solid #8aa8e9;outline-offset:3px;
}
.crilo-game-topbar .score-pill{
 flex:none;padding:7px 11px;white-space:nowrap;border-radius:999px;
 background:#edf2f8;border:1px solid #d5dfe9;color:#36475c;
 font-size:12px;font-weight:850;font-variant-numeric:tabular-nums;
}
/* Shape of Sound's non-invasive information dialog. */
.crilo-game-info-backdrop{
 position:fixed;inset:0;z-index:100;display:grid;place-items:center;
 padding:18px;background:rgba(17,22,30,.52);backdrop-filter:blur(5px);
}
.crilo-game-info-backdrop[hidden]{display:none!important}
.crilo-game-info-card{
 position:relative;width:min(480px,100%);max-height:min(88vh,670px);
 overflow:auto;padding:clamp(21px,4vw,32px);
 background:#fffefb;border:1px solid #d9e1e7;border-radius:24px;
 box-shadow:0 20px 65px rgba(19,27,37,.25);color:#242831;
}
.crilo-game-info-card h2{margin:0 42px 12px 0;font-size:clamp(23px,4vw,29px)}
.crilo-game-info-card p,.crilo-game-info-card li{line-height:1.55;color:#526075}
.crilo-game-info-card ul{padding-left:22px;margin:12px 0 18px}
.crilo-game-info-card li+li{margin-top:7px}
.crilo-game-info-close{
 position:absolute;right:16px;top:15px;width:35px;height:35px;
 display:grid;place-items:center;border:1px solid #d9e1e7;
 border-radius:50%;background:#f2f5f8;color:#27303c;
 font-size:23px;cursor:pointer;
}
.crilo-game-info-card a{color:#365f95;font-weight:850}
.crilo-game-info-card :is(a,button):focus-visible{outline:3px solid #8aa8e9;outline-offset:3px}
html[data-theme="dark"] .crilo-game-topbar{
 background:rgba(25,29,36,.96);border-color:#4b5665;color:#e7eaf0;
}
html[data-theme="dark"] .crilo-game-topbar .brand{color:#f2f3f5}
html[data-theme="dark"] .crilo-game-topbar nav a{color:#cbd2dd}
html[data-theme="dark"] .crilo-game-topbar nav a:is(:hover,.active){color:#f4f6fa}
html[data-theme="dark"] .crilo-game-topbar :is(.circle-btn,.crilo-game-settings){
 background:#303946;border-color:#5b687a;color:#e9eef6;
}
html[data-theme="dark"] .crilo-game-topbar :is(.circle-btn,.crilo-game-settings):hover{
 background:#3c524b;border-color:#86a895;
}
html[data-theme="dark"] .crilo-game-topbar .score-pill{
 background:#303b4b;border-color:#66788c;color:#e5edf6;
}
html[data-theme="dark"] .crilo-game-info-card{
 background:#292f3b;color:#eff2f7;border-color:#657184;
}
html[data-theme="dark"] .crilo-game-info-card :is(p,li){color:#d0d8e2}
html[data-theme="dark"] .crilo-game-info-card a{color:#abcdf8}
html[data-theme="dark"] .crilo-game-info-close{
 background:#394453;color:#f0f4f7;border-color:#657184;
}
@media(max-width:650px){
 .crilo-game-topbar{flex-wrap:wrap;column-gap:12px;row-gap:8px;padding:10px 14px}
 .crilo-game-topbar nav{
  order:3;width:100%;gap:23px;justify-content:center;padding-top:3px;
 }
 .crilo-game-topbar nav a{font-size:12px}
 .crilo-game-topbar .header-actions{gap:7px}
 .crilo-game-topbar .crilo-game-settings{padding:7px 9px}
 .crilo-game-topbar .crilo-game-settings .crilo-settings-word{display:none}
 .crilo-game-topbar .score-pill{padding:7px 9px}
}
@media(max-width:370px){
 .crilo-game-topbar .brand{font-size:19px}
 .crilo-game-topbar{padding-inline:11px;column-gap:7px}
 .crilo-game-topbar .header-actions{gap:5px}
 .crilo-game-topbar .circle-btn{width:34px;height:34px}
 .crilo-game-topbar .crilo-game-settings{min-height:34px;padding:6px 8px}
}

/* Keep the inline audio-settings hint legible and on-screen on narrow phones. */
.sound-heading .sound-free{flex-wrap:wrap;justify-content:center;max-width:100%;text-align:center;line-height:1.5}
.sound-heading .sound-free a{color:#365f82;font-weight:850;text-decoration:underline;text-underline-offset:2px}
html[data-theme="dark"] .sound-heading .sound-free a{color:#b2d3ef}


/* Identical Crilo navigation anatomy: brand, Play, More Games, Help, bell, user.
   The existing app.js + header-continuity.js own all authenticated behavior. */
.crilo-game-topbar{min-height:68px;gap:38px;padding:0 24px;z-index:30;
 background:rgba(255,255,255,.94);border-bottom:1px solid #e8e8e8}
.crilo-game-topbar .brand{font-size:22px;font-weight:950;letter-spacing:.12em}
.crilo-game-topbar nav{gap:28px}
.crilo-game-topbar nav a{font-size:13px;font-weight:800;letter-spacing:.04em}
.crilo-game-topbar nav a.active{text-decoration:none}
.crilo-game-topbar .header-actions{gap:7px;justify-content:flex-end;flex:0 0 auto}
.crilo-game-topbar .circle-btn{width:36px;height:36px;
 background:#f3f3f3;border:1px solid #ddd;color:#17191e}
.crilo-game-topbar .account-wrap{position:relative;flex:0 1 auto;min-width:0;
 width:max-content;max-width:min(220px,35vw);order:1}
.crilo-game-topbar #accountBtn{display:block;box-sizing:border-box;
 width:max-content;max-width:100%;min-width:0;border:0;background:transparent;
 padding:8px 0;border-radius:7px;white-space:nowrap;overflow:hidden;
 text-overflow:ellipsis;line-height:1.25;letter-spacing:-.015em;
 text-align:right;font-family:inherit;font-size:16px;font-weight:900;
 color:#17191e;cursor:pointer}
.crilo-game-topbar #accountBtn:hover{background:rgba(120,140,155,.1)}
.crilo-game-topbar #friendBellWrap{position:relative;flex:0 0 36px;width:36px;
 height:36px;order:0}
.crilo-game-topbar .header-actions #gameInfoBtn,
.crilo-game-topbar .header-actions #helpBtn{order:-1;flex:0 0 36px}
.crilo-game-topbar .account-menu{position:absolute;right:0;top:46px;z-index:90;
 width:180px;padding:7px;background:#fff;border:1px solid #e5e5e5;
 border-radius:16px;box-shadow:0 18px 50px rgba(0,0,0,.12);color:#17191e}
.crilo-game-topbar .account-menu a,.crilo-game-topbar .account-menu button{
 display:block;box-sizing:border-box;width:100%;padding:11px 12px;
 border:0;background:transparent;color:inherit;text-align:left;
 text-decoration:none;border-radius:10px;font:800 13px/1.4 system-ui,sans-serif;cursor:pointer}
.crilo-game-topbar .account-menu :is(a,button):hover{background:#f3f5f6}
.crilo-game-topbar .crilo-owner-review-link{display:none!important}
.crilo-game-topbar .crilo-notification-count{position:absolute;top:-5px;right:-7px;
 padding:2px 5px;min-width:17px;background:#dc3030;color:#fff;
 border-radius:12px;font-size:10px;font-weight:900}
.crilo-game-topbar .crilo-notification-panel{position:absolute;right:0;
 top:calc(100% + 13px);width:390px;max-width:calc(100vw - 24px);
 z-index:150;overflow:hidden;border:1px solid #e8e8ec;border-radius:16px;
 background:#fff;color:#17191e;box-shadow:0 16px 42px #0002}
.crilo-game-topbar .crilo-notification-title{font-size:14px;font-weight:900;
 letter-spacing:.06em;padding:19px 20px;border-bottom:1px solid #ececf0}
.crilo-game-topbar .crilo-notification-item{display:flex;align-items:flex-start;
 gap:13px;padding:16px 19px;border-bottom:1px solid #ececf0;
 color:inherit;text-decoration:none;line-height:1.4}
.crilo-game-topbar .crilo-notification-item:hover,
.crilo-game-topbar .crilo-notification-footer:hover{background:#f7f7f9}
.crilo-game-topbar .crilo-notification-icon{width:24px;height:24px;display:grid;
 place-items:center;flex:none;color:#939ca9;font-size:20px}
.crilo-game-topbar .crilo-notification-copy{font-size:13px;color:#505968;
 overflow-wrap:anywhere}
.crilo-game-topbar .crilo-notification-copy b{color:#10a4bd;font-weight:850}
.crilo-game-topbar .crilo-notification-item small{display:block;margin-top:5px;
 font-size:11px;color:#939baa;font-weight:650}
.crilo-game-topbar .crilo-notification-empty{padding:24px 20px;color:#777;font-size:14px}
.crilo-game-topbar .crilo-notification-footer{display:block;padding:14px;
 color:#87909f;text-align:center;font-size:12px;font-weight:750;text-decoration:none}
.crilo-standalone .hidden{display:none!important}
.crilo-standalone #criloSharedAuthModal{position:fixed;inset:0;display:grid;
 place-items:center;z-index:180;background:#14192370;backdrop-filter:blur(7px);padding:20px}
.crilo-standalone #criloSharedAuthModal .modal-card{
 position:relative;width:min(450px,100%);max-height:90vh;overflow:auto;
 padding:30px;background:#fff;border:1px solid #ddd;border-radius:24px;
 box-shadow:0 25px 70px #0003;color:#15171c;text-align:center}
.crilo-standalone #criloSharedAuthModal h2{font-size:28px;margin:10px 0}
.crilo-standalone #criloSharedAuthModal p{color:#555;line-height:1.55}
.crilo-standalone #criloSharedAuthModal .modal-close{position:absolute;right:16px;
 top:12px;border:0;background:transparent;font-size:27px;cursor:pointer}
.crilo-standalone #criloSharedAuthModal .text-input{box-sizing:border-box;width:100%;
 border:1px solid #d6dce2;border-radius:12px;padding:12px;font:inherit}
.crilo-standalone #criloSharedAuthModal .primary{display:block;width:100%;
 padding:14px;border:0;border-radius:12px;background:#222a33;color:#fff;
 font:850 14px/1.4 system-ui,sans-serif;cursor:pointer;margin-top:16px}
.crilo-standalone #criloSharedAuthModal .auth-status{min-height:1.5em;font-size:13px}
.domain-score-line{display:flex;justify-content:flex-end;align-items:center;
 margin:0 0 8px;min-height:35px}
html[data-theme="dark"] .crilo-game-topbar{background:rgba(18,19,22,.94);
 border-color:#30333a}
html[data-theme="dark"] .crilo-game-topbar #accountBtn{color:#f3f4f7}
html[data-theme="dark"] .crilo-game-topbar .account-menu,
html[data-theme="dark"] .crilo-game-topbar .crilo-notification-panel{
 background:#23252c;color:#f5f5f7;border-color:#42444d}
html[data-theme="dark"] .crilo-game-topbar .crilo-notification-copy{color:#c4c9d2}
html[data-theme="dark"] .crilo-game-topbar .crilo-notification-title,
html[data-theme="dark"] .crilo-game-topbar .crilo-notification-item{border-color:#42444d}
html[data-theme="dark"] .crilo-game-topbar .account-menu :is(a,button):hover,
html[data-theme="dark"] .crilo-game-topbar .crilo-notification-item:hover{background:#31343c}
html[data-theme="dark"] .crilo-standalone #criloSharedAuthModal .modal-card{
 background:#252a33;color:#f5f6fa;border-color:#4b5665}
html[data-theme="dark"] .crilo-standalone #criloSharedAuthModal p{color:#d5dae3}
html[data-theme="dark"] .crilo-standalone #criloSharedAuthModal .text-input{
 background:#323a46;color:#fff;border-color:#697486}
@media (max-width:700px){
 .crilo-game-topbar{flex-wrap:wrap;gap:10px 14px;padding:12px 14px}
 .crilo-game-topbar nav{order:3;width:100%;gap:clamp(12px,4vw,25px);
 justify-content:center;padding-top:3px}
 .crilo-game-topbar .header-actions{margin-left:auto;gap:6px}
 .crilo-game-topbar .account-wrap{max-width:min(170px,32vw)}
 .crilo-game-topbar #accountBtn{font-size:14px}
 .crilo-game-topbar .crilo-notification-panel{right:-48px}
}
@media(max-width:370px){
 .crilo-game-topbar{column-gap:8px;padding-inline:10px}
 .crilo-game-topbar .brand{font-size:19px}
 .crilo-game-topbar nav{gap:16px}
 .crilo-game-topbar .circle-btn{width:34px;height:34px}
 .crilo-game-topbar .account-wrap{max-width:32vw}
}

/* The bell dropdown belongs to the viewport, never beyond a narrow phone edge. */
@media(max-width:700px){
 .crilo-game-topbar .crilo-notification-panel{
  position:fixed;top:120px;left:12px;right:12px;
  width:auto;max-width:none;max-height:calc(100dvh - 140px);overflow-y:auto;
 }
}


/* Match the main Crilo wordmark on both standalone games. Domain intentionally
   does not load the full site stylesheet, so its logo needs this shared rule. */
@supports ((-webkit-background-clip:text) or (background-clip:text)){
 .crilo-game-topbar .brand{
  --crilo-logo-ink:#15171c;
  --crilo-logo-rose:#5a414f;
  --crilo-logo-gold:#675638;
  --crilo-logo-green:#40614e;
  --crilo-logo-blue:#405c73;
  --crilo-logo-violet:#60496a;
  background-image:linear-gradient(110deg,
   var(--crilo-logo-ink) 0%,var(--crilo-logo-ink) 39%,
   var(--crilo-logo-rose) 43%,var(--crilo-logo-gold) 46%,
   var(--crilo-logo-green) 49%,var(--crilo-logo-blue) 52%,
   var(--crilo-logo-violet) 55%,var(--crilo-logo-ink) 60%,
   var(--crilo-logo-ink) 100%);
  background-size:260% 100%;
  background-position:100% 50%;
  -webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;
  animation:criloLogoSheen 10s ease-in-out infinite;
 }
 html[data-theme="dark"] .crilo-game-topbar .brand{
  --crilo-logo-ink:#f2f3f5;
  --crilo-logo-rose:#d9bcc7;
  --crilo-logo-gold:#e5d1ad;
  --crilo-logo-green:#bcdac8;
  --crilo-logo-blue:#b5d1e4;
  --crilo-logo-violet:#d0c0e1;
 }
 @keyframes criloLogoSheen{
  0%,15%{background-position:100% 50%}
  60%,100%{background-position:0% 50%}
 }
 @media(prefers-reduced-motion:reduce){
  .crilo-game-topbar .brand{
   animation:none;background-image:none;
   -webkit-text-fill-color:currentColor;
  }
 }
}

/* The Domain page does not load style.css; mirror the quiet link hover there. */
.crilo-game-topbar nav a{position:relative}
.crilo-game-topbar nav a::after{
 content:"";position:absolute;left:20%;right:20%;bottom:-4px;
 height:1px;border-radius:99px;background:currentColor;
 opacity:0;transform:scaleX(.65);transition:opacity .2s ease,transform .2s ease;
}
@media(hover:hover){
 .crilo-game-topbar nav a:hover::after{opacity:.38;transform:scaleX(1)}
}
.crilo-game-topbar nav a:focus-visible::after{opacity:.42;transform:scaleX(1)}
@media(prefers-reduced-motion:reduce){
 .crilo-game-topbar nav a::after{transition:none}
}
