@layer cr-components {
  .cr-game{background:linear-gradient(180deg,#1420409e,#17244740 50%,#101939),var(--cr-scene) center top/cover;padding:12px 0 15px;position:relative}
  .cr-game-title{display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:12px;align-items:center;padding:8px 13px;background:#132243eb;font-size:12px}
  .cr-game-title>img{width:64px;height:80px;object-fit:cover;border-radius:12px}
  .cr-game-title h1{font-size:clamp(29px,4vw,52px);white-space:nowrap;margin:0}.cr-game-title p{margin:0}
  .cr-game-title__actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap;justify-content:end}.cr-game-title__actions span,.cr-game-title__actions button{font-size:12px}
  .cr-game-grid{display:grid;grid-template-columns:minmax(0,1fr) clamp(320px,29vw,380px);gap:14px;margin:10px 0}
  .cr-board{background:#1528493d;min-height:clamp(238px,44vh,490px);display:flex;align-items:center;justify-content:center;position:relative;gap:clamp(6px,2vw,24px);padding:12px;border:1px solid #b7d2ff65;border-radius:22px;box-shadow:inset 0 0 22px #6f88b546}
  .cr-post{height:calc(var(--cr-egg-size)*2.75);width:min(15%,130px);position:relative;display:flex;flex-direction:column;align-items:center;gap:calc(var(--cr-egg-size)*.10);justify-content:flex-start}
  .cr-post__stem{position:absolute;inset:auto 0 0;width:100%;height:85%;object-fit:fill;filter:drop-shadow(0 0 8px #85e3fd85)}
  .cr-board{--cr-egg-size:clamp(46px,min(5.6vw,8.7vh),96px)}
  .cr-egg{position:relative;width:auto;height:var(--cr-egg-size);z-index:1;filter:drop-shadow(0 0 9px #c9d5ff84)}
  .cr-post--paired .cr-egg{filter:drop-shadow(0 0 13px #ffed91) brightness(1.15)}
  .cr-board--moving .cr-egg{animation:cr-land 260ms var(--cr-delay) both}.cr-board--moving .cr-die{animation:cr-land 550ms both}
  @keyframes cr-land{from{transform:translateY(-34px) rotate(-10deg);opacity:.2}to{transform:none;opacity:1}}
  .cr-die{width:clamp(58px,6vw,76px);height:auto;filter:drop-shadow(0 0 12px #b8eefc99)}
  .cr-card-face{width:clamp(46px,7vw,104px);aspect-ratio:5/7;padding:1px;border-radius:12px;background:#e6eaff;color:#172044;font-family:var(--cr-serif);font-size:clamp(14px,3vw,38px);box-shadow:0 9px 22px #0b102d8c;white-space:nowrap}
  .cr-card-face img{width:100%;height:100%;border-radius:inherit;object-fit:cover}.cr-card-face--rose{color:#802641}.cr-card-face--tip{outline:2px solid var(--cr-violet);outline-offset:2px}
  .cr-card-face[aria-pressed=true]{background:#b0fae3;color:#142240;border-color:#fff}.cr-card-face[aria-pressed=true]::after{content:"✦";font-size:.65em;margin-left:3px}
  .cr-controls{background:#131f42eb;min-width:0;padding:11px 11px 0;font-size:13px;display:flex;flex-direction:column}
  .cr-controls h2{font:700 14px var(--cr-sans);margin:0 0 4px}.cr-play-row{display:flex;align-items:center;justify-content:space-between;gap:4px}
  .cr-round{width:92px;height:92px;flex:none;padding:0;white-space:nowrap;border-radius:50%;font-size:23px;font-family:var(--cr-serif)}
  .cr-amounts{display:flex;gap:4px;flex-wrap:wrap}.cr-amounts button{padding:3px 8px;min-width:38px}
  .cr-pairs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:2px;margin:7px 0;text-align:center;font-size:12px}.cr-pairs span{padding:4px 1px;border-radius:8px;background:#aabef322}.cr-pairs b{display:block}
  .cr-current{background:#6cf2b04d!important}.cr-result{margin:0;min-height:22px;color:#aeffe3}
  .cr-control-foot{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;margin-top:auto;gap:4px}
  .cr-control-foot p{margin:0}.cr-control-foot button{margin:2px 0;padding:3px 6px;font-size:12px}
  .cr-game-quill{width:clamp(90px,10vw,190px);margin:0 -10px 0 0}
  .cr-rest-overlay{position:absolute;inset:0;z-index:2;display:grid;align-content:center;justify-items:center;text-align:center;background:#131f42ef;padding:15px}
  .cr-tour{position:absolute;z-index:3;bottom:12px;left:50%;translate:-50% 100%;width:min(380px,90%);background:#1a264d;padding:10px 14px;font-size:13px}
  .cr-tour p{margin:0}.cr-timer-dialog{max-width:min(500px,90vw);padding:20px;background:#19284c}.cr-timer-dialog img{width:130px;float:right}
  @media(max-width:1400px){.cr-game-quill{width:96px}.cr-game-title__actions{max-width:560px}}
  @media(max-width:1199px){.cr-game-grid{grid-template-columns:1fr}.cr-controls{max-width:520px;width:100%;justify-self:center}.cr-game-title{grid-template-columns:64px minmax(0,1fr)}.cr-game-title__actions{grid-column:1/-1;justify-content:start;max-width:none}}
  @media(max-width:600px){.cr-board{padding:4px;gap:5px;min-height:225px}.cr-board{--cr-egg-size:clamp(40px,13vw,52px)}.cr-game-title p{line-height:1.28}.cr-game-title__actions span{white-space:normal}.cr-game-title__actions button{padding:4px 8px}.cr-game-title h1{font-size:28px}.cr-game-quill{width:96px}}
}
@layer cr-responsive {
  .cr-game>.cr-wrap{max-width:1100px}
  .cr-game-title{grid-template-columns:54px 1fr auto;padding:10px 16px;gap:12px}
  .cr-game-title>img{width:52px;height:62px}.cr-game-title h1{font-size:clamp(28px,3vw,42px)}
  .cr-game-title__actions{grid-column:auto;max-width:400px}.cr-game-title__actions button{min-height:36px}
  .cr-game-grid{grid-template-columns:minmax(0,1fr);gap:0;margin:10px auto;border:1px solid #8ddbdc80;border-radius:25px;overflow:hidden;background:#0c263c}
  .cr-game-grid .cr-board{min-height:0;border:0;border-radius:0;padding:16px 70px;background:radial-gradient(ellipse at center,#286665ed,#102e41f2 69%),var(--cr-scene) center/cover}
  .cr-hands{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:20px;max-width:750px;align-self:center;padding:8px}
  .cr-hands section{text-align:center;min-width:0}.cr-hands section+section{border-left:1px solid #b8f5e345}
  .cr-hands h2{margin:0 0 9px;font-family:var(--cr-serif);font-size:21px;font-weight:400}
  .cr-hands output:not(:empty){display:inline-block;border-radius:12px;background:#0b313e;padding:2px 9px;font:700 15px var(--cr-sans)}
  .cr-playing-hand{justify-content:center;gap:5px}.cr-ice-card,.cr-playing-hand>img{width:clamp(48px,5.7vw,80px);border:1px solid #bce9eb99}
  .cr-table-deck{width:40px;top:20px;right:22px}.cr-board-lion{width:clamp(58px,6vw,84px);position:absolute;bottom:0;left:7px}
  .cr-game-grid .cr-controls{max-width:none;justify-self:stretch;border:0;border-top:1px solid #a4dfd65c;border-radius:0;background:#102e42;padding:12px 16px;gap:6px;align-items:center}
  .cr-console-row,.cr-console-row .cr-amounts,.cr-control-foot>div,.cr-control-foot>div>div{display:flex;gap:8px;align-items:center;justify-content:center;flex-wrap:wrap}
  .cr-console-row{gap:12px 18px}.cr-console-row h2{text-align:center;font-size:12px}.cr-console-row button,.cr-control-foot button{min-height:40px}
  .cr-console-row .cr-round{width:auto;min-width:85px;height:46px;padding:0 18px;border-radius:24px;font:700 18px var(--cr-sans)}
  .cr-control-foot{display:block;margin:0;width:100%;border-top:1px solid #a4dfd635;padding-top:6px;color:#c8e0e7}
  .cr-control-foot>div{gap:4px 12px}.cr-result{min-height:0;text-align:center}.cr-result:empty{display:none}
  .cr-wheel{position:relative;width:clamp(210px,30vh,305px);aspect-ratio:1;filter:drop-shadow(0 5px 12px #001526)}
  .cr-wheel svg{width:100%;height:100%;display:block}.cr-wheel #cr-rotor{transform-box:border-box;transform-origin:50% 50%}
  .cr-wheel:before{content:"";position:absolute;z-index:1;top:-2px;left:50%;translate:-50%;border-left:7px solid transparent;border-right:7px solid transparent;border-top:16px solid #ffefbc}
  .cr-wheel-hub{position:absolute;inset:24%;display:grid;align-content:center;justify-items:center;background:radial-gradient(circle,#41687d,#172f46);border:1px solid #add9e4;border-radius:50%}
  .cr-wheel-hub img{width:53%;max-height:58px}.cr-wheel-hub output{color:#e9fbff;font:700 15px var(--cr-sans)}
  .cr-wheel-picks label{font-size:12px}.cr-wheel-picks select{min-height:39px}
  .cr-game-grid+.cr-strip{text-align:center}
  @media(max-width:780px){.cr-game-title{grid-template-columns:48px 1fr}.cr-game-title__actions{grid-column:1/-1;justify-content:center;max-width:none}.cr-game-grid .cr-board{padding:14px 12px}.cr-board-lion,.cr-table-deck{display:none}.cr-hands{gap:8px;padding:2px}.cr-game-title__actions span{white-space:normal}}
  @media(max-width:460px){.cr-game-grid .cr-controls{padding:10px 6px}.cr-console-row{gap:6px 9px}.cr-hands h2{font-size:17px}.cr-ice-card,.cr-playing-hand>img{width:clamp(35px,10vw,46px)}.cr-control-foot p{font-size:12px}}
}

@layer cr-responsive {
  .cr-wager{display:grid;grid-template-columns:auto 6.5em;gap:4px 8px;align-items:center}
  .cr-wager label{font-size:13px;font-weight:700}
  .cr-wager input{width:100%;min-height:40px;padding:4px 8px;font-variant-numeric:tabular-nums}
  .cr-wager .cr-amounts{grid-column:1/-1}
  .cr-wheel:after{content:"";position:absolute;top:4.8%;left:50%;translate:-50%;width:8px;height:8px;border-radius:50%;background:radial-gradient(circle at 32% 26%,white,#edf4ff 40%,#80a2b3);box-shadow:0 0 5px #e4fbff;pointer-events:none}
}
