
.whl-app, .whl-app * { box-sizing: border-box; }
.whl-app { --ink: #f4efe6; --dim: #b9b2a6; --g: #4caf7d; --y: #e0b443; --x: #5f6474; --panel: rgba(14, 16, 24, .74); --cut: 8px;
  --tile: 46px; --gold: #e7c86a;
  --gs-ink: var(--ink); --gs-muted: var(--dim); --gs-line: #3a3f52; --gs-accent: #e7c86a; --gs-accent-ink: #1b1d24;
  --gs-panel: #161924; --gs-bg: #0e1018; --gs-chip: rgba(18, 21, 32, .9);
  position: relative; display: flex; flex-direction: column; color: var(--ink); font: 15px/1.35 "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  overflow: clip; -webkit-tap-highlight-color: transparent; background: #0e1018; }
.whl-app.whl-embedded { height: clamp(600px, calc(100svh - 110px), 920px); border: 1px solid #2c3142;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); }
.whl-app button { font: inherit; color: inherit; cursor: pointer; }
.whl-app button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.whl-cut { clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.whl-msg { text-align: center; padding: 20px 10px; color: var(--dim); }
.whl-app .gs-bar { background: rgba(10, 12, 18, .55); }
.whl-app .gs-btn, .whl-app button.gs-back, .whl-app .gs-tab, .whl-app .gs-row, .whl-app .gs-chip { border-radius: 0 !important;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }
.whl-app .gs-sheet { border-radius: 0 !important; clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px); }
.whl-app .gs-stage, .whl-app .gs-main { min-height: 0; }
.whl-app.gs-wide .gs-stage { align-items: stretch; grid-template-rows: minmax(0, 1fr); }
.whl-app .gs-side { min-height: 0; overflow: auto; }
.whl-body { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.whl-canvas { position: absolute; inset: 0; top: var(--whl-hud, 0px); width: 100%; height: calc(100% - var(--whl-hud, 0px)); display: block; z-index: 0; }
.whl-app.whl-off .whl-canvas { visibility: hidden; }
.whl-gl { visibility: hidden; }
.whl-app.whl-3d .whl-gl { visibility: visible; }
.whl-app.whl-3d .whl-canvas:not(.whl-gl) { visibility: hidden; }
.whl-scan { position: absolute; z-index: 3; left: 50%; bottom: 6px; transform: translateX(-50%); padding: 4px 10px; --cut: 5px; background: rgba(10,16,32,.72);
  color: #aeeaff; font: 700 11px/1.2 "Segoe UI", system-ui, sans-serif; letter-spacing: .06em; pointer-events: none; white-space: nowrap; }
.whl-streak { position: absolute; z-index: 3; right: 8px; bottom: 6px; padding: 3px 9px; --cut: 5px; background: rgba(10,16,32,.78); color: #ffd9b0;
  font: 700 12px/1.2 "Segoe UI", system-ui, Arial, sans-serif; white-space: nowrap; text-align: right; box-shadow: inset 0 0 0 1px rgba(255,140,60,.6); }
.whl-streak[hidden] { display: none; }
.whl-streak b { color: #fff; font-size: 15px; font-variant-numeric: tabular-nums; }
.whl-streak small { display: block; font-size: 10px; font-weight: 600; color: rgba(255,255,255,.6); }
.whl-streak.ms { color: #fff; background: rgba(120,50,0,.82); }
.whl-streak.pop { animation: whlStreakPop .5s ease; }
.whl-streak.ms.pop { animation: whlStreakMs .9s ease; }
@keyframes whlStreakPop { 40% { transform: scale(1.18); } }
@keyframes whlStreakMs { 25% { transform: scale(1.4); } 55% { transform: scale(.96); } 80% { transform: scale(1.08); } }
.whl-scan.won { color: #9ff0c8; } .whl-scan.lost { color: #ff9a9a; }
.whl-shade { position: absolute; inset: 0; top: var(--whl-hud, 0px); z-index: 0; pointer-events: none; display: none; background: linear-gradient(180deg, rgba(8,10,16,0) 0, rgba(8,10,16,0) var(--shade, 60%), rgba(8,10,16,.62) calc(var(--shade, 60%) + 56px), rgba(8,10,16,.72) 100%); }
.whl-app.whl-3d .whl-shade { display: block; }
.whl-app.whl-off .whl-body { background: linear-gradient(180deg, #2a3350 0%, #4a5a7a 38%, #1a1e2a 60%, #0e1018 100%); }
.whl-hud { position: relative; z-index: 2; display: flex; align-items: center; gap: 6px; padding: 6px 10px; font-size: 12px;
  background: rgba(6, 9, 18, .94); border-bottom: 1px solid rgba(255, 255, 255, .12); }   
.whl-chip { padding: 5px 9px; background: var(--panel); white-space: nowrap; border: 0; color: var(--ink); font: 600 12px/1.2 "Segoe UI", system-ui, Arial, sans-serif; --cut: 6px; }
.whl-chip b { color: #fff; }
.whl-grow { flex: 1; }
.whl-place { max-width: 46%; overflow: hidden; text-overflow: ellipsis; }
.whl-mode.clue { background: rgba(44, 90, 138, .94); }
.whl-mode.lucky { background: rgba(122, 90, 26, .94); }
button.whl-pass { min-height: 40px; min-width: 64px; background: rgba(231, 200, 106, .92); color: #1b1d24; }
button.whl-pass b { color: #1b1d24; }
.whl-recent { position: relative; z-index: 2; min-height: 16px; padding: 3px 12px 0; font: 600 11px/1.3 "Segoe UI", system-ui, Arial, sans-serif; color: rgba(255, 255, 255, .86);
  text-shadow: 0 1px 3px #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }
.whl-stage { position: relative; z-index: 1; flex: 1 1 auto; min-height: 110px; }
.whl-clue { position: absolute; z-index: 3; left: 10px; right: 10px; top: 4px;      
  padding: 7px 11px; background: rgba(36, 76, 120, .94); font-size: 13px;
  opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; pointer-events: none; }
.whl-clue.on { opacity: 1; transform: none; }
.whl-clue b { color: #ffe39a; margin-right: 4px; }
.whl-say { position: absolute; z-index: 8; top: 64px; left: 50%; max-width: min(92%, 420px); transform: translate(-50%, -6px); background: #fff; color: #14161d;
  padding: 7px 13px; font-weight: 700; font-size: 14px; text-align: center; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; }
.whl-say.on { opacity: 1; transform: translate(-50%, 0); }
.whl-mid { position: relative; z-index: 2; display: flex; justify-content: center; flex: 0 0 auto; }
.whl-grid { display: grid; gap: 5px; padding: 4px 10px 6px; perspective: 600px; }
.whl-row { display: grid; grid-template-columns: repeat(var(--n, 4), var(--tile)); gap: 5px; }
.whl-tile { width: var(--tile); height: var(--tile); display: flex; align-items: center; justify-content: center; --cut: 7px;
  font: 800 calc(var(--tile) * .48)/1 "Segoe UI", system-ui, Arial, sans-serif; text-transform: uppercase; user-select: none;
  background: rgba(10, 12, 20, .58); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .22); }
.whl-tile.typed { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .78); animation: whlPop .12s ease; }
.whl-tile.lucky { color: rgba(255, 228, 150, .55); box-shadow: inset 0 0 0 2px rgba(231, 200, 106, .55); }
.whl-tile.g { background: var(--g); box-shadow: none; }
.whl-tile.y { background: var(--y); box-shadow: none; color: #1d1606; }
.whl-tile.x { background: var(--x); box-shadow: none; }
.whl-tile.flip { animation: whlFlip .42s ease; }
.whl-tile.win { animation: whlWin .6s ease both; }
.whl-row.shake { animation: whlShake .35s; }
.whl-app.calm .whl-row.shake { animation: none; }
@keyframes whlPop { 50% { transform: scale(1.08); } }
@keyframes whlFlip { 50% { transform: rotateX(90deg); } }
@keyframes whlWin { 40% { transform: translateY(-8px); } }
@keyframes whlShake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.whl-keys { position: relative; z-index: 2; flex: 0 0 auto; padding: 2px 4px calc(8px + env(safe-area-inset-bottom)); user-select: none; touch-action: manipulation; }
.whl-krow { display: flex; justify-content: center; gap: 3px; margin-top: 5px; }
.whl-key { flex: 1 1 0; min-width: 0; max-width: 46px; height: 50px; border: 0; padding: 0; background: rgba(232, 228, 220, .95); color: #16181f; --cut: 6px;
  font: 700 16px/1 "Segoe UI", system-ui, Arial, sans-serif !important; text-transform: uppercase; }
.whl-key.wide { flex: 1.2 1 0; max-width: 64px; font-size: 12px !important; }
.whl-key.enter { flex: 1.9 1 0; max-width: 92px; }       
.whl-key.enter { background: var(--gold); }
.whl-key.g { background: var(--g); color: #fff; }
.whl-key.y { background: var(--y); }
.whl-key.x { background: #393d48; color: #9aa0ac; }
.whl-key:active { transform: translateY(2px); }
.whl-app .whl-key { color: #14161d; text-shadow: none; }
.whl-app .whl-key.g { color: #ffffff; }
.whl-app .whl-key.y, .whl-app .whl-key.enter { color: #1b1d24; }
.whl-app .whl-key.x { color: #c3c8d2; }
.whl-card { position: absolute; z-index: 9; left: 10px; right: 10px; bottom: 12px; max-width: 520px; margin: 0 auto; padding: 14px 15px 11px;
  background: rgba(250, 246, 238, .98); color: #1b1d24; --cut: 14px; transform: translateY(calc(100% + 40px)); visibility: hidden;
  transition: transform .35s cubic-bezier(.2, .9, .3, 1.2), visibility 0s linear .35s; cursor: pointer;
  max-height: calc(100% - 24px); overflow: auto; }
.whl-card.on { transform: none; visibility: visible; transition-delay: 0s; }
@media (max-width: 560px) { .whl-app .gs-bar .gs-btn[data-gs-sheet="passport"] { display: none; } }
.whl-c-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.whl-stars { font-size: 21px; letter-spacing: 2px; color: #c8941e; }
.whl-stamp-new { font: 700 12px/1 "Segoe UI", system-ui, Arial, sans-serif; background: #1b1d24; color: var(--gold); padding: 5px 8px; clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px); }
.whl-sp { margin-left: auto; font: 800 13px/1 "Segoe UI", system-ui, Arial, sans-serif; color: #2d7a4f; }
.whl-miss { font-size: 14px; color: #6a6f7a; }
.whl-card h2 { margin: 4px 0 0; font-size: 28px; letter-spacing: 2px; text-transform: uppercase; }
.whl-pos { color: #6a6f7a; font-style: italic; font-size: 13px; }
.whl-mean { margin: 6px 0 3px; font-size: 15px; }
.whl-ex { color: #3a3f4a; font-size: 14px; }
.whl-fact { margin-top: 8px; padding: 7px 9px; background: #efe7d6; font-size: 13.5px; color: #2c2f38; clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
.whl-seal { margin-top: 8px; padding: 8px 10px; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center;
  background: linear-gradient(135deg, #ffe9a8, #f5c24a 55%, #ffe39a); color: #5a3a00; font-weight: 800; border-radius: 4px; }
.whl-seal-medal { grid-row: span 2; font-size: 30px; }
.whl-seal small { font-weight: 600; color: #6a4a10; }
.whl-card.sealed { box-shadow: 0 0 0 2px #f5c24a, 0 0 28px rgba(245, 194, 74, .55); }
.whl-card.sealed .whl-seal-medal { animation: whlSeal 1.2s ease-out both; }
@keyframes whlSeal { 0% { transform: scale(2.4) rotate(-25deg); opacity: 0; } 60% { transform: scale(.9) rotate(6deg); opacity: 1; } 100% { transform: none; } }
.whl-nw { position: absolute; left: 50%; top: 14%; transform: translateX(-50%); z-index: 4; pointer-events: none; text-align: center;
  padding: 10px 22px 12px; min-width: 210px; background: rgba(8, 14, 30, .78); border: 1px solid rgba(127, 232, 255, .55); color: #eaf6ff;
  box-shadow: 0 0 30px rgba(127, 232, 255, .25); animation: whlNwIn .7s cubic-bezier(.2, 1.4, .4, 1) both; transition: opacity .7s, transform .7s; }
.whl-nw small { display: block; font-size: 11px; letter-spacing: .18em; color: #7fe8ff; font-weight: 700; }
.whl-nw b { display: block; font-size: 26px; margin: 2px 0; letter-spacing: .02em; }
.whl-nw span { font-size: 12px; color: #b8c8d8; }
.whl-nw.out { opacity: 0; transform: translateX(-50%) translateY(-12px); }
@keyframes whlNwIn { from { opacity: 0; transform: translateX(-50%) scale(.6); letter-spacing: .4em; } }
.whl-hint { font-size: 12px; color: #6a6f7a; margin-top: 6px; }
.whl-bar { height: 4px; background: #e2dccf; margin-top: 9px; }
.whl-bar i { display: block; height: 100%; width: 0; background: var(--g); }
.whl-tap { font-size: 11px; color: #8a8f98; margin-top: 4px; text-align: right; }
.whl-pp-head { font-size: 13px; color: var(--dim); margin-bottom: 8px; }
.whl-pp-head b { color: var(--gold); }
.whl-pp-tabs { display: flex; flex-wrap: nowrap; gap: 5px; margin-bottom: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; padding-bottom: 4px; }
.whl-pp-tab { flex: 0 0 auto; scroll-snap-align: center; white-space: nowrap; }
.whl-pp-tab.far { opacity: .45; }
.whl-pp-tab { border: 0; padding: 7px 9px; min-height: 40px; background: #232838; color: var(--ink); font-size: 12px !important; --cut: 6px; }
.whl-pp-tab small { color: var(--dim); }
.whl-pp-tab.on { background: var(--gold); color: #1b1d24; }
.whl-pp-tab.on small { color: #3a3a2a; }
@media (max-width: 480px) { .whl-pp-tab span { display: none; }
  .whl-pp-tabs { gap: 3px; }
  .whl-pp-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 5px 0; min-width: 44px; font-size: 15px !important; line-height: 1.1; }
  .whl-pp-tab small { font-size: 10px; } }
.whl-pp-page { position: relative; background: #f3ead6; color: #2b2a26; padding: 10px; --cut: 12px;
  background-image: repeating-linear-gradient(0deg, rgba(120, 100, 60, .07) 0 1px, transparent 1px 22px); }
.whl-pp-page.sealed { box-shadow: inset 0 0 0 3px #d4a72c; }
.whl-pp-seal { text-align: center; font-weight: 800; color: #9a6a10; margin-bottom: 6px; }
.whl-pp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 7px; }
.whl-pp-stamp { position: relative; border: 0; padding: 4px 3px 5px; min-height: 96px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: transparent; color: #2b2a26; --cut: 8px; }
.whl-pp-stamp canvas { width: 88px; height: 66px; }
.whl-pp-stamp.stamp { background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 2px rgba(150, 40, 40, .55); transform: rotate(-1.5deg); }
.whl-pp-stamp.stamp:nth-child(2n) { transform: rotate(1.2deg); }
.whl-pp-stamp.seen { box-shadow: inset 0 0 0 2px rgba(80, 80, 80, .35); opacity: .78; }
.whl-pp-stamp.seen canvas { filter: grayscale(1); opacity: .55; }
.whl-pp-stamp.mystery { box-shadow: inset 0 0 0 2px rgba(80, 80, 80, .22); }
.whl-pp-q { margin: auto; font: 800 30px/1 "Segoe UI", system-ui, Arial, sans-serif; color: rgba(80, 70, 50, .35); }
.whl-pp-name { font: 700 10.5px/1.15 "Segoe UI", system-ui, Arial, sans-serif; text-align: center; }
.whl-pp-ink { position: absolute; top: 3px; right: 5px; font-size: 10px; color: #a8323a; }
.whl-pp-info { margin-top: 9px; padding: 8px 10px; background: rgba(255, 255, 255, .65); font-size: 13.5px; min-height: 40px; }
.whl-pp-word { color: #2d7a4f; }
.whl-help li { margin-bottom: 6px; }
@media (min-width: 700px) {
  .whl-hud { padding: 10px 16px 0; }
  .whl-key { height: 54px; }
}
.whl-app button.whl-chip { font-size: 12px; font-weight: 600; }
