/* CHIZGAME v0.7 — scoped component styles. Avoids changes to theme/global elements. */
.cg7{--cg7-bg:#160d31;--cg7-gold:#ffdb66;--cg7-text:#f7f4ff;--cg7-ink:#251b33;--cg7-mute:#c8b9db;direction:rtl;isolation:isolate;position:relative;width:100%;max-width:1240px;margin:0 auto 40px;color:var(--cg7-text);font-family:inherit;line-height:1.6}
.cg7,.cg7 *{box-sizing:border-box}
.cg7 button,.cg7 input{font:inherit}
.cg7 button{cursor:pointer}
.cg7 button:focus-visible,.cg7 a:focus-visible,.cg7 input:focus-visible{outline:3px solid #ffde62;outline-offset:3px}
.cg7 [hidden]{display:none!important}
.cg7 a{text-decoration:none}
.cg7 .cg7-top{position:relative;overflow:hidden;background:linear-gradient(145deg,#261348 0%,var(--cg7-bg) 53%,#111a44 100%);border-radius:28px;padding:34px clamp(16px,4vw,48px) 24px}
.cg7 .cg7-top:before{content:'';pointer-events:none;position:absolute;inset:0;background:radial-gradient(ellipse at 20% -15%,rgba(230,115,239,.24),transparent 38%),radial-gradient(ellipse at 92% 42%,rgba(69,201,220,.20),transparent 40%)}
.cg7 .cg7-header{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:22px;flex-wrap:wrap;margin-bottom:22px}
.cg7 .cg7-headerintro{min-width:0;max-width:740px}
.cg7 .cg7-eyebrow{font-size:11px;letter-spacing:.17em;text-transform:uppercase;font-weight:800;color:var(--cg7-gold);display:block;margin-bottom:8px}
.cg7 .cg7-header h1{font-size:clamp(34px,5vw,64px);line-height:1.1;margin:0 0 12px!important;color:#fff;font-weight:950;letter-spacing:-.05em;text-shadow:0 5px 24px rgba(0,0,0,.19)}
.cg7 .cg7-header p{margin:0!important;color:#ebdef5;max-width:620px;font-size:clamp(14px,1.5vw,17px);line-height:1.9}
.cg7 .cg7-header-badge{flex:0 0 auto;display:flex;align-items:center;gap:12px;border:1px solid rgba(246,218,255,.25);background:rgba(255,255,255,.065);padding:11px 15px;border-radius:20px;box-shadow:inset 0 1px rgba(255,255,255,.12)}
.cg7 .cg7-header-badge>span{font-size:30px}
.cg7 .cg7-header-badge b{display:block;font-size:12px;color:#f7f0ff;letter-spacing:.08em}
.cg7 .cg7-header-badge small{display:block;font-size:11px;color:#ccbddd}
.cg7 .cg7-game{position:relative;z-index:1;border:1px solid rgba(255,255,255,.18);background:#08071a;border-radius:24px;overflow:hidden;box-shadow:0 20px 46px rgba(0,0,0,.27)}
.cg7 .cg7-gamebar{padding:13px 17px;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;background:linear-gradient(90deg,#18102b,#292044);border-bottom:1px solid rgba(255,255,255,.12)}
.cg7 .cg7-game-title{display:flex;gap:9px;align-items:baseline;min-width:0}
.cg7 .cg7-game-title strong{font-size:20px;font-weight:950;color:#ffdc69;letter-spacing:.03em;white-space:nowrap}
.cg7 .cg7-game-title span{font-size:12px;color:#d9c8e7}
.cg7 .cg7-game-actions{display:flex;gap:7px;flex-wrap:wrap}
.cg7 .cg7-game-actions button{border:1px solid rgba(255,255,255,.18);background:#30244b;color:#fff;border-radius:10px;font-size:12px;font-weight:700;padding:8px 12px;min-height:39px;transition:background .2s}
.cg7 .cg7-game-actions button:hover{background:#483063}
.cg7 .cg7-hud{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;padding:10px 13px;background:#110d23}
.cg7 .cg7-hud-piece{min-width:0;padding:6px 8px;border-left:1px solid rgba(255,255,255,.10);text-align:center}
.cg7 .cg7-hud-piece:last-child{border:0}
.cg7 .cg7-hud-piece span{display:block;color:#bdb1d2;font-size:10px;font-weight:700}
.cg7 .cg7-hud-piece strong{display:block;color:#fff;font-size:17px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cg7 .cg7-hud-piece strong[data-cg7-lives]{color:#ff7778;letter-spacing:2px}
.cg7 .cg7-hud-piece strong[data-cg7-score]{color:#ffd86c}
.cg7 .cg7-progress{height:5px;background:#443354;overflow:hidden;direction:ltr}
.cg7 .cg7-progress>i{display:block;height:100%;width:0;background:linear-gradient(90deg,#53ece1,#ffda6c);transition:width .1s linear}
.cg7 .cg7-stage-wrap{position:relative;background:#17112b;min-height:280px;touch-action:pan-y}
.cg7 .cg7-stage-wrap canvas{display:block;width:100%;height:clamp(300px,41vw,518px);touch-action:pan-y}
.cg7 .cg7-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;z-index:4;padding:14px;background:rgba(19,10,39,.64);backdrop-filter:blur(5px);text-align:center}
.cg7 .cg7-overlay-panel{border:1px solid rgba(255,255,255,.24);background:linear-gradient(145deg,rgba(42,26,80,.97),rgba(19,18,49,.98));border-radius:24px;padding:clamp(19px,3.3vw,32px);max-width:490px;width:100%;box-shadow:0 18px 45px rgba(0,0,0,.24)}
.cg7 .cg7-overlay-panel small{font-size:11px;letter-spacing:.1em;color:#ffdb73;font-weight:900}
.cg7 .cg7-overlay-panel h2{color:#fff!important;margin:9px 0!important;font-size:clamp(23px,3vw,39px)!important;line-height:1.25}
.cg7 .cg7-overlay-panel p{color:#e0d3ed;margin:0 0 19px;font-size:14px;line-height:1.9}
.cg7 .cg7-cta{border:0!important;border-radius:14px!important;padding:12px 24px!important;background:linear-gradient(140deg,#ffe17d,#f1a72d)!important;color:#3a2557!important;font-weight:950!important;font-size:16px!important;box-shadow:0 5px 0 #9b621d;min-height:48px}
.cg7 .cg7-cta:hover{filter:brightness(1.05)}
.cg7 .cg7-controls{display:flex;align-items:center;gap:12px;justify-content:space-between;background:#1b1435;padding:12px 16px;border-top:1px solid rgba(255,255,255,.14);direction:ltr}
.cg7 .cg7-control-group{display:flex;align-items:center;gap:9px}
.cg7 .cg7-pad{display:flex;justify-content:center;align-items:center;min-width:58px;min-height:54px;border:1px solid rgba(255,255,255,.22);border-bottom:4px solid rgba(0,0,0,.3);border-radius:15px;background:#493565;color:#fff;font-size:20px;font-weight:900;touch-action:none;user-select:none;-webkit-user-select:none;line-height:1;transition:transform .09s,filter .1s}
.cg7 .cg7-pad:active{transform:translateY(2px);filter:brightness(1.22)}
.cg7 .cg7-pad--jump{background:#218b96}
.cg7 .cg7-pad--spin{background:#b67b30}
.cg7 .cg7-controls-label{font-size:11px;color:#bcb0d1;text-align:center;line-height:1.45;direction:rtl;padding:0 9px}
.cg7 .cg7-helper{display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px 16px;padding:9px 16px;background:#17102a;color:#b9aed0;font-size:11px}
.cg7 .cg7-helper span{display:inline-block}
.cg7 .cg7-status{font-size:12px;color:#dac8ed;min-height:20px;white-space:normal}
.cg7 .cg7-gamebottom{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;padding:13px 3px 0;color:#d7c8e6;font-size:12px}
.cg7 .cg7-gamebottom strong{color:#ffdc67}

/* CHIZGAME v0.7: arcade shell, no magazine, no global Woodmart styles. */
.cg7 .cg7-top{background:radial-gradient(ellipse at 86% 0%,#4e285e 0,transparent 47%),radial-gradient(ellipse at 0% 88%,#113b5d 0,transparent 54%),linear-gradient(125deg,#1c0b34 0%,var(--cg7-bg) 65%);border:1px solid rgba(255,255,255,.12)}
.cg7 .cg7-headerintro h1{color:#fff!important;text-shadow:0 4px 24px rgba(2,0,18,.34)}
.cg7 .cg7-headerintro p{color:#eee1f9}
.cg7 .cg7-info-strip{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 18px;position:relative;z-index:1}
.cg7 .cg7-info-strip span{display:inline-flex;align-items:center;gap:4px;padding:6px 10px;background:rgba(255,255,255,.075);border:1px solid rgba(255,255,255,.14);border-radius:99px;font-size:11px;color:#eedef8;font-weight:800}
.cg7 .cg7-hud-piece strong[data-cg7-time]{color:#5de7d4}
.cg7 .cg7-treasure-toast{z-index:3;position:absolute;left:11px;top:12px;max-width:min(355px,calc(100% - 22px));padding:13px 16px;border-radius:15px;color:#281a33;background:rgba(255,250,221,.97);border:2px solid #ffdd66;box-shadow:0 10px 35px rgba(0,0,0,.28);direction:rtl;pointer-events:auto}
.cg7 .cg7-treasure-toast strong{font-weight:950;font-size:15px;display:block;color:#432153}
.cg7 .cg7-treasure-toast p{margin:3px 0 6px;color:#44324a;line-height:1.65;font-size:12px}
.cg7 .cg7-treasure-toast a{display:inline-block;color:#4b2371!important;font-weight:900;text-decoration:underline;font-size:12px}
.cg7 .cg7-stage-roster{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;position:relative;margin:16px 0 5px}
.cg7 .cg7-stage-item{min-width:0;padding:11px 12px;border-radius:13px;background:rgba(255,255,255,.058);border:1px solid rgba(255,255,255,.16);color:#e7d4ee;font-size:12px;display:flex;gap:6px;align-items:center}
.cg7 .cg7-stage-item strong{color:#ffd972;font-size:13px}
.cg7 .cg7-stage-item small{font-weight:600;color:#dfcdea}
.cg7 .cg7-stage-item b{font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cg7 .cg7-below{position:relative;z-index:1;margin-top:14px;border:1px solid rgba(255,255,255,.15);border-radius:17px;background:rgba(8,7,26,.4);padding:13px 18px;display:flex;gap:10px 26px;align-items:center;flex-wrap:wrap;justify-content:space-between;color:#ded2ee;font-size:12px}
.cg7 .cg7-below strong{color:#ffe184}
.cg7 .cg7-below .cg7-challenge{font-size:12px;color:#f8e7ff}
.cg7 .cg7-award-note{font-size:12px;color:#b9aaca;margin:0}
.cg7 [data-cg7-challenge-result]{font-weight:850;color:#ffe188;margin:8px 0 0}
.cg7 .cg7-pad small{font-size:10px;line-height:1.2;font-weight:850;display:block;margin-top:2px}
.cg7 .cg7-pad.cg7-pad--jump,.cg7 .cg7-pad.cg7-pad--spin{flex-direction:column;gap:0;min-width:68px;min-height:65px}
.cg7 .cg7-pad.cg7-pressed,.cg7 .cg7-pad:active{background:#795b9d;transform:translateY(3px);filter:brightness(1.18)}
.cg7 .cg7-pad.cg7-pad--jump.cg7-pressed{background:#25acb7}
.cg7 .cg7-controls{user-select:none;-webkit-user-select:none}
.cg7 .cg7-controls-label{display:none}
.cg7 .cg7-gamebar strong{white-space:nowrap}
.cg7 .cg7-score-commit{color:#f9e7bc;background:#2a1948;border-top:1px solid rgba(255,255,255,.15);padding:10px 15px;font-size:12px;text-align:center}
.cg7 .cg7-score-commit strong{color:#f6e98c}
@media(max-width:850px){
  .cg7 .cg7-top{padding:20px 13px;border-radius:20px}
  .cg7 .cg7-header{padding:0 5px}
  .cg7 .cg7-header-badge{display:none}
  .cg7 .cg7-stage-roster{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cg7 .cg7-gamebar{padding:10px 12px}
  .cg7 .cg7-game-title span{display:none}
  .cg7 .cg7-controls{gap:6px;padding:10px 10px}
  .cg7 .cg7-control-group{gap:6px}
  .cg7 .cg7-pad{min-height:62px;min-width:56px}
  .cg7 .cg7-stage-wrap canvas{height:clamp(320px,58vw,440px)}
  .cg7 .cg7-hud{grid-template-columns:repeat(5,minmax(0,1fr));padding:6px 3px;gap:0}
  .cg7 .cg7-hud-piece{padding:3px 2px}
  .cg7 .cg7-hud-piece span{font-size:9px}
  .cg7 .cg7-hud-piece strong{font-size:12px}
  .cg7 .cg7-hud-piece:nth-child(2){display:none}
  .cg7 .cg7-hud{grid-template-columns:repeat(5,minmax(0,1fr))}
  .cg7 .cg7-helper{padding:8px 10px}
}
@media(max-width:520px){
  .cg7 .cg7-header h1{font-size:34px}
  .cg7 .cg7-header p{font-size:12.5px;line-height:1.9}
  .cg7 .cg7-stage-wrap canvas{height:325px}
  .cg7 .cg7-stage-roster{gap:5px}
  .cg7 .cg7-stage-item{padding:7px;font-size:11px}
  .cg7 .cg7-game-title strong{font-size:17px}
  .cg7 .cg7-game-actions{gap:4px}
  .cg7 .cg7-game-actions button{min-height:40px;padding:7px;font-size:10px}
  .cg7 .cg7-hud-piece strong{font-size:11px}
  .cg7 .cg7-pad{min-width:50px;min-height:60px}
  .cg7 .cg7-pad.cg7-pad--jump,.cg7 .cg7-pad.cg7-pad--spin{min-width:58px;min-height:62px}
  .cg7 .cg7-overlay-panel{max-width:95%;padding:15px}
  .cg7 .cg7-overlay-panel p{font-size:12px}
  .cg7 .cg7-gamebottom{gap:4px}
}
@media(max-width:350px){
  .cg7 .cg7-top{padding:12px 7px}
  .cg7 .cg7-controls{padding:7px 5px}
  .cg7 .cg7-control-group{gap:4px}
  .cg7 .cg7-pad{min-width:44px;min-height:56px}
  .cg7 .cg7-pad.cg7-pad--jump,.cg7 .cg7-pad.cg7-pad--spin{min-width:52px;min-height:58px}
  .cg7 .cg7-stage-wrap canvas{height:290px}
  .cg7 .cg7-game-actions button{padding:6px 5px;font-size:9px}
  .cg7 .cg7-hud-piece strong{font-size:10px}
}
@media(prefers-reduced-motion:reduce){.cg7 *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* 0.7.1 – first-play instruction and always-visible concise hint; fully scoped */
.cg7 .cg7-tutorial{display:flex;align-items:center;gap:11px;background:linear-gradient(100deg,#fff0aa,#ffecc5);color:#392448;border-top:2px solid #fcd35d;padding:10px 14px;direction:rtl;flex-wrap:wrap}
.cg7 .cg7-tutorial-title{font-size:13px;font-weight:950;white-space:normal}
.cg7 .cg7-tutorial-message{font-size:12px;line-height:1.6;flex:1 1 210px;min-width:0}
.cg7 .cg7-tutorial-dismiss{border:1px solid #81558b;border-radius:50%;background:#fff;min-width:32px;min-height:32px;font-size:20px;line-height:1;color:#392448}
.cg7 .cg7-tutorial[hidden]{display:none!important}
.cg7 .cg7-quick-hint{background:#241a42;color:#ffecaa;padding:8px 12px;border-top:1px solid rgba(255,255,255,.12);font-size:12px;font-weight:800;text-align:center}
@media(max-width:540px){.cg7 .cg7-tutorial{padding:8px 10px;gap:6px}.cg7 .cg7-tutorial-title{width:calc(100% - 43px)}.cg7 .cg7-tutorial-message{font-size:11px}.cg7 .cg7-quick-hint{font-size:11px;padding:6px 8px}}
