.app-shell .view#games-view { position: fixed; z-index: 25; inset: 154px 0 0; width: 100%; max-width: none; margin: 0; overflow: auto; padding: 12px 22px 20px; background: #edf0e6; overscroll-behavior: contain; }
#games-view[hidden] { display: none; }
.games-shell { --games-ink: #304b3f; --games-muted: #647762; --games-line: #d6ddc9; position: relative; max-width: 1080px; margin: 0 auto; color: var(--games-ink); font-family: ui-rounded, "Trebuchet MS", system-ui, sans-serif; }
.games-shell * { box-sizing: border-box; }
.games-shell [hidden] { display: none !important; }
.games-shell button, .games-shell select, .games-shell input { font: inherit; }
.games-shell button { min-height: 44px; padding: 10px 16px; border: 1px solid var(--games-line); border-radius: 14px; color: var(--games-ink); background: #fffdf4; font-weight: 700; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.games-shell button:hover { background: #e7efdb; }
.games-shell button:disabled { opacity: .5; cursor: default; }
.games-shell :focus-visible { outline: 3px solid #a66b38; outline-offset: 3px; }
.games-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; margin: 0 0 8px; }
.games-heading > button { padding: 8px 12px; background: transparent; border-color: transparent; font-size: 13px; }
.games-heading h1 { margin: 0; font-size: clamp(19px, 2.3vw, 27px); font-weight: 850; letter-spacing: -.035em; text-align: center; }
.games-coin-balance { display: flex; align-items: center; gap: 7px; min-height: 36px; padding: 8px 12px; border: 1px solid #ead9a8; border-radius: 18px; color: #7b5d27; background: #fbf2d5; font-size: 13px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.games-coin-balance i { font-style: normal; color: #cf9c43; text-shadow: 0 1px 0 #fff8dc; }
.games-buddy-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.games-shell .games-buddy-pill { min-width: 0; display: flex; align-items: center; gap: 8px; max-width: calc(100% - 80px); min-height: 46px; padding: 0 11px 0 3px; border-radius: 18px; text-align: left; background: #fffaf0; }
.games-buddy-avatar { display: block; width: 43px; height: 43px; flex: 0 0 43px; }
.games-buddy-pill > span:first-of-type { display: grid; gap: 2px; min-width: 0; }
.games-buddy-pill strong { overflow: hidden; color: #365642; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.games-buddy-pill small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 500; color: var(--games-muted); }
.games-buddy-chevron { margin-left: 6px; }
.games-shell .games-buddy-pill:disabled { opacity: 1; }
.games-buddy-pill:disabled .games-buddy-chevron { display: none; }
.games-shell .games-kit-button { padding: 9px 13px; font-size: 12px; background: #e4ebda; border-color: #ced8c0; }
.games-kit-button span { margin-left: 8px; color: #708963; }
.games-play { width: min(100%, calc((100dvh - 345px) * 800 / 520)); min-width: min(100%, 280px); margin: 0 auto; }
.games-board-wrap { position: relative; overflow: hidden; width: 100%; border: 2px solid #b7c9a6; border-radius: 23px; background: #dbe7d5; box-shadow: 0 8px 0 -4px #cbd6bd, 0 16px 35px -22px #385d3e60; isolation: isolate; }
.games-board { display: block; width: 100%; height: auto; aspect-ratio: 800 / 520; touch-action: pan-y; cursor: crosshair; }
.games-board:focus-visible { outline-offset: -5px; }
.games-score-strip { position: relative; flex: 0 0 auto; display: flex; gap: 22px; padding: 8px 15px 9px; border: 1px solid #fff9e9ab; border-radius: 14px; background: #fffaf0e8; box-shadow: 0 3px 10px #49683d0a; pointer-events: none; }
.games-score-strip > span { display: grid; gap: 2px; text-align: center; }
.games-score-strip small { font-size: 9px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; color: #718466; }
.games-score-strip b { font-size: 18px; line-height: 1; font-variant-numeric: tabular-nums; }
.games-score-strip em { color: #8f9b7f; font-size: 11px; font-style: normal; font-weight: 500; }
.games-shell .games-grab { position: absolute; z-index: 4; width: 78px; height: 78px; min-height: 44px; padding: 0; transform: translate(-50%, -50%); border: 0; border-radius: 50%; background: transparent; touch-action: none; cursor: grab; }
.games-shell .games-grab:hover, .games-shell .games-grab:active { background: transparent; }
.games-grab:active { cursor: grabbing; }
.games-piece-controls { position: absolute; z-index: 4; inset: 0; pointer-events: none; }
.games-shell .games-piece-controls button { position: absolute; width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 50%; transform: translate(-50%, -50%); background: transparent; touch-action: none; pointer-events: auto; cursor: grab; }
.games-shell .games-piece-controls button:hover, .games-shell .games-piece-controls button:active { background: transparent; }
.games-shell .games-piece-controls button:active { cursor: grabbing; }
.games-shell .games-piece-move { z-index: 1; border-radius: 22px; }
.games-shell .games-piece-turn { z-index: 2; }
.games-shell .games-piece-grip { z-index: 3; }
.games-start-overlay, .games-result-overlay { position: absolute; z-index: 5; inset: 0; display: flex; align-items: center; justify-content: center; padding: 12px; background: #eef3e622; }
.games-start-card { width: min(330px, 76%); padding: 22px; border: 1px solid #fffbed; border-radius: 25px; background: #fffaf0ed; box-shadow: 0 10px 35px #45664419; text-align: center; }
.games-round-label { display: block; margin: 0 0 7px; font-size: 10px; font-weight: 700; color: #829270; }
.games-start-card h2, .games-result h2 { margin: 0 0 8px; font-size: clamp(20px, 2.5vw, 27px); letter-spacing: -.045em; line-height: 1.1; }
.games-start-card p { margin: 0 auto 16px; max-width: 230px; font-size: 12px; line-height: 1.55; color: var(--games-muted); }
.games-shell .games-start, .games-shell .games-launch, .games-shell .games-sheet-done { min-width: 120px; border-color: #426744; background: #52774e; color: #fffbed; box-shadow: 0 3px 0 #385838; }
.games-shell .games-start:hover, .games-shell .games-launch:hover, .games-shell .games-sheet-done:hover { background: #426744; }
.games-start-card .games-start { width: 100%; font-size: 15px; }
.games-board-hint { position: absolute; z-index: 2; left: 50%; bottom: 12px; width: max-content; max-width: calc(100% - 28px); transform: translateX(-50%); padding: 7px 12px; border: 1px solid #fffbdf83; border-radius: 20px; color: #425c41; background: #fffaf0e8; font-size: 11px; text-align: center; pointer-events: none; }
.games-power { margin-left: 10px; font-size: 10px; color: #a56829; }
.games-shot-feedback { position: absolute; z-index: 3; left: 50%; top: 27%; transform: translate(-50%, 6px); opacity: 0; padding: 10px 18px; border: 1px solid #fffceb; border-radius: 18px; background: #fff5dbea; color: #4c7046; font-size: clamp(17px, 2.6vw, 26px); font-weight: 850; white-space: nowrap; pointer-events: none; transition: opacity .16s, transform .16s; }
.games-shot-feedback.is-visible { opacity: 1; transform: translate(-50%, 0); }
.games-below-board { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; min-height: 52px; margin-top: 7px; }
.games-drop-actions { display: flex; align-items: center; gap: 6px; }
.games-drop-actions .games-launch { min-width: 90px; padding: 10px 18px; font-size: 13px; }
.games-shell .games-reset { min-width: 80px; padding: 10px 9px; border-color: transparent; background: transparent; color: #708566; font-size: 10px; }
.games-accessible-help { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.games-daily { order: 2; margin-left: auto; font-size: 10px; color: #7c8c6b; white-space: nowrap; }
.games-daily strong { color: #678356; }
.games-notice { min-height: 16px; margin: 0 2px; color: #56784b; font-size: 11px; line-height: 1.4; }
.games-notice.is-error { color: #a04c32; }
.games-result { max-height: 100%; overflow-y: auto; overscroll-behavior: contain; width: min(305px, 82%); padding: 19px 24px 12px; border: 1px solid #fffbee; border-radius: 25px; background: #fffaf0f5; box-shadow: 0 15px 45px #45664426; text-align: center; }
.games-result-star { display: block; margin: -3px 0 5px; font-size: 29px; line-height: 1; color: #d5a451; }
.games-result-totals { display: flex; justify-content: center; gap: 35px; margin: 16px 0 18px; }
.games-result-totals strong { font-size: 27px; line-height: 1; }
.games-result-totals small { display: block; margin-top: 5px; color: #899275; font-size: 10px; font-weight: 500; }
.games-result-totals .games-earned { color: #b68734; }
.games-result .games-start { width: 100%; }
.games-shell .games-result-switch { width: 100%; min-height: 44px; padding: 9px 0; border: 0; background: none; color: #728566; font-size: 11px; }
.games-milestone { margin: -6px 0 12px; font-size: 10px; color: #a67a32; }
.games-sheet-layer { position: fixed; z-index: 90; inset: 154px 0 0; display: flex; align-items: stretch; justify-content: flex-end; padding: 14px; }
.games-shell .games-sheet-scrim { position: absolute; inset: 0; width: 100%; border: 0; border-radius: 0; background: #233f324f; cursor: default; }
.games-shell .games-sheet-scrim:hover { background: #233f324f; }
.games-sheet { position: relative; width: min(420px, 100%); overflow: auto; padding: 20px; border: 1px solid #fff9e6; border-radius: 24px; background: #fbf9ee; box-shadow: 0 12px 55px #253e3933; overscroll-behavior: contain; }
.games-sheet > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.games-sheet h2 { margin: 0; font-size: 22px; letter-spacing: -.04em; }
.games-sheet > header button { padding: 8px; min-width: 44px; border-color: transparent; background: transparent; }
.games-sheet-tabs { display: flex; gap: 5px; padding: 4px; margin: 14px 0; border-radius: 14px; background: #e8eedf; }
.games-shell .games-sheet-tabs button { flex: 1; min-height: 44px; padding: 8px; font-size: 12px; border-color: transparent; background: transparent; }
.games-shell .games-sheet-tabs [aria-selected="true"] { color: #3f6546; background: #fffdf4; box-shadow: 0 2px 7px #43593914; }
.games-kit label { display: grid; gap: 7px; margin: 14px 0; font-size: 12px; font-weight: 700; }
.games-kit select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #ccd6bd; border-radius: 12px; color: #345940; background: #fffef7; }
.games-pet-preview { display: flex; justify-content: center; height: 135px; margin: 0; border-radius: 18px; background: radial-gradient(ellipse, #fff6d9, #eaf0df); }
.games-pet-canvas { display: block; width: 180px; height: 135px; }
.games-trait-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.games-trait-badges > span { padding: 6px 9px; border-radius: 9px; color: #7f8c6d; background: #eaf0df; font-size: 10px; }
.games-trait-badges b { margin-left: 3px; color: #496747; }
.games-kit-help { margin: 16px 0; color: #7c896e; font-size: 11px; line-height: 1.5; }
.games-equipment > p { margin: 14px 0; color: #7a8a6c; font-size: 12px; }
.games-upgrades { display: grid; gap: 10px; }
.games-upgrade { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 15px; border: 1px solid #dce2ce; border-radius: 17px; background: #fffdf4; }
.games-upgrade-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 13px; color: #789b5a; background: #edf1df; font-size: 25px; }
.games-upgrade strong { font-size: 13px; }
.games-tier { display: flex; gap: 3px; margin: 6px 0 0; }
.games-tier i { width: 18px; height: 4px; border-radius: 3px; background: #e5e8da; }
.games-tier .is-earned { background: #9ab874; }
.games-upgrade p { margin: 9px 0; color: #7b896e; font-size: 11px; line-height: 1.5; }
.games-upgrade button { min-height: 44px; width: 100%; padding: 8px 10px; font-size: 11px; }
.games-shell .games-sheet-done { display: block; width: 100%; margin: 20px 0 5px; }
.games-loading { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; min-height: 250px; text-align: center; color: #748d65; }
.games-loading p { flex-basis: 100%; }
@media (max-width: 700px) {
  .app-shell .view#games-view { inset: 151px 0 0; padding: 8px 10px calc(10px + env(safe-area-inset-bottom)); }
  .games-heading { gap: 5px; margin-bottom: 6px; min-height: 44px; }
  .games-heading h1 { font-size: 20px; }
  .games-heading > button { padding: 8px 6px; min-width: 44px; font-size: 12px; }
  .games-heading > button span { display: none; }
  .games-coin-balance { gap: 4px; min-height: 32px; padding: 7px 9px; font-size: 11px; }
  .games-buddy-bar { margin-bottom: 8px; }
  .games-play { width: min(100%, calc((100dvh - 326px) * 800 / 520)); }
  .games-board-wrap { border-radius: 18px; }
  .games-score-strip { gap: 12px; padding: 6px 10px 7px; border-radius: 11px; }
  .games-score-strip small { font-size: 7px; }
  .games-score-strip b { font-size: 15px; }
  .games-score-strip em { font-size: 9px; }
  .games-start-card { width: min(270px, 75%); padding: 14px 17px; border-radius: 20px; }
  .games-start-card h2 { font-size: 22px; }
  .games-round-label { margin-bottom: 5px; font-size: 8px; }
  .games-start-card p { margin-bottom: 11px; font-size: 10px; line-height: 1.4; }
  .games-start-card .games-start { min-height: 44px; padding: 9px; font-size: 14px; }
  .games-board-hint { bottom: 7px; padding: 5px 8px; font-size: 9px; }
  .games-power { font-size: 8px; margin-left: 5px; }
  .games-below-board { gap: 3px 8px; margin-top: 6px; }
  .games-daily { font-size: 9px; }
  .games-result { width: 235px; max-width: 84%; padding: 10px 18px 4px; border-radius: 21px; }
  .games-result-star { display: none; }
  .games-result h2 { margin-bottom: 4px; font-size: 22px; }
  .games-result-totals { gap: 26px; margin: 8px 0 10px; }
  .games-result-totals strong { font-size: 23px; }
  .games-result-totals small { font-size: 8px; }
  .games-result .games-start { padding: 9px; min-height: 44px; font-size: 12px; }
  .games-shell .games-result-switch { min-height: 44px; font-size: 10px; }
  .games-milestone { font-size: 8px; margin: -4px 0 8px; }
  .games-sheet-layer { inset: 151px 0 0; align-items: flex-end; justify-content: center; padding: 8px 7px 0; }
  .games-sheet { width: 100%; max-height: 100%; padding: 15px 18px calc(15px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; }
  .games-sheet h2 { font-size: 22px; }
  .games-pet-preview { height: 112px; }
  .games-pet-canvas { width: 150px; height: 112px; }
}
@media (max-height: 680px) and (min-width: 701px) {
  .games-heading { margin-bottom: 3px; }
  .games-buddy-bar { margin-bottom: 5px; }
  .games-play { width: min(100%, calc((100dvh - 345px) * 800 / 520)); min-width: 300px; }
  .games-start-card { padding: 12px 18px; }
  .games-start-card h2 { font-size: 21px; }
  .games-round-label { display: none; }
  .games-start-card p { margin-bottom: 9px; font-size: 10px; }
  .games-result { padding: 10px 18px 4px; }
  .games-result-star { display: none; }
  .games-result h2 { font-size: 21px; }
  .games-result-totals { margin: 9px 0 10px; }
}
@media (max-height: 600px) and (max-width: 700px) {
  .games-buddy-bar { margin-bottom: 5px; }
  .games-play { width: min(100%, calc((100dvh - 305px) * 800 / 520)); min-width: min(100%, 280px); }
  .games-round-label { display: none; }
  .games-start-card { padding: 10px 14px; }
  .games-start-card h2 { font-size: 19px; }
  .games-start-card p { margin-bottom: 8px; font-size: 9px; }
  .games-result h2 { font-size: 18px; }
  .games-result-totals { margin: 7px 0 8px; }
  .games-result-totals strong { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .games-shell *, .games-shell *::before, .games-shell *::after { animation: none !important; transition: none !important; } }

.games-shell .games-pumpkin-grab { position: absolute; z-index: 4; width: 48px; height: 48px; min-width: 48px; min-height: 48px; padding: 0; border: 0; border-radius: 50%; transform: translate(-50%, -50%); background: transparent; touch-action: none; cursor: grab; }
.games-shell .games-pumpkin-grab:hover, .games-shell .games-pumpkin-grab:active { background: transparent; }
.games-shell .games-pumpkin-grab:active { cursor: grabbing; }
.games-shell[data-game-id="pumpkin"] .games-board-wrap { border-color: #9d7a8b; background: #dfb7b0; box-shadow: 0 8px 0 -4px #c7a29a, 0 16px 35px -22px #734d6060; }
.games-shell[data-game-id="pumpkin"] .games-start { border-color: #8c5661; background: #a86669; box-shadow: 0 3px 0 #704452; }
.games-shell[data-game-id="pumpkin"] .games-start:hover { background: #945660; }
.games-shell[data-game-id="pumpkin"] .games-board-hint { color: #744f57; background: #fff0d8ed; border-color: #ffe4b7; }
.games-pumpkin-help { max-width: 230px; color: #7f6a72; font-size: 10px; line-height: 1.45; }
.play-window-stat .is-counting-down { color: #b55345; }
@media (max-width: 700px) { .games-pumpkin-help { max-width: 175px; font-size: 9px; } }

.games-shell[data-game-id="pumpkin"] .games-board-hint { display: none; }
.games-pumpkin-key-help { display: block; margin-top: 3px; color: #907f84; font-size: 9px; line-height: 1.35; }
.games-shell:not(.games-loading) { max-width: min(1060px, calc((100dvh - 365px) * 800 / 520)); min-width: min(100%,300px); }
.games-shell .games-board-wrap { border: 0; border-radius: 0; box-shadow: none; }
.games-shell .games-board { touch-action: none; }
.games-shell .games-buddy-pill { max-width: 100%; min-height: 44px; padding: 0 6px 0 0; border: 0; border-radius: 10px; background: transparent; }
.games-shell .games-buddy-avatar { width: 36px; height: 36px; flex-basis: 36px; }
.games-shell .games-buddy-pill strong { font-size: 11px; }
.games-shell .games-buddy-pill small { font-size: 9px; }
.games-shell .games-sheet-layer { position: absolute; inset: 0; padding: 8px; border-radius: 24px; }
.games-shell[data-game-id="pumpkin"] .games-board-wrap { border: 0; box-shadow: none; }
.games-shell .games-result { padding: 19px 24px 12px; }
@media (max-width: 700px) {
  .games-shell:not(.games-loading) { max-width: 100%; }
  .games-shell .games-buddy-avatar { width: 29px; height: 32px; flex-basis: 29px; }
  .games-shell .games-buddy-pill { gap: 3px; padding-right: 0; }
  .games-shell .games-buddy-chevron { display: none; }
  .games-shell .games-buddy-pill strong { font-size: 10px; }
  .games-shell .games-buddy-pill small { font-size: 8px; }
  .games-shell .games-result { padding: 11px 18px 4px; }
}
@media (pointer: coarse) { .games-pumpkin-key-help { display: none; } }
