.apk-contest-page {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(#dcecff, #edf5ff 360px, #f5f6f9 780px);
    color: #112645;
    font: 16px/1.5 system-ui,-apple-system,sans-serif;
}
.apk-contest-page * { box-sizing: border-box; }
.apk-contest-page [hidden],.apk-game-sheet [hidden] { display: none !important; }
.apk-contest-header {
    width: min(100% - 32px, 720px);
    margin: 0 auto;
    padding-top: calc(22px + env(safe-area-inset-top));
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.apk-contest-header a { color: #174a91; font-weight: 650; text-decoration: none; }
.apk-contest-header img { display: block; height: auto; }
.apk-contest-main { width: min(100% - 32px, 660px); margin: 0 auto; padding-bottom: 40px; }
.apk-contest-hero { position: relative; text-align: center; padding: 33px 0 24px; overflow: hidden; }
.apk-contest-hero h1, .apk-contest-tree-page h1 { margin: 18px 0 10px; color: #0e2b55; font-size: clamp(34px,7vw,64px); line-height: 1.04; letter-spacing: -.065em; }
.apk-contest-hero p { margin: 0 0 20px; color: #305887; }
@keyframes apk-prize-float { 50% { transform: translateY(-5px) rotate(-3deg); } }
.apk-contest-steps { display: grid; gap: 12px; margin: 0; padding-left: 21px; }
.apk-contest-steps li::marker { color: #0b64d4; font-weight: 800; }
.apk-contest-primary, .apk-contest-secondary {
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin: 12px 6px 0 0;
    padding: 8px 15px; border: 0; border-radius: 11px; background: #085dcc; color: #fff;
    font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.apk-contest-secondary { background: #ebf3ff; color: #184e95; }
.apk-contest-primary:disabled { opacity: .52; cursor: default; }
.apk-contest-status:empty { display: none; }
.apk-contest-status { overflow-wrap: anywhere; }
.apk-contest-tree-page { text-align: center; }
.apk-contest-tree-page h1 { font-size: clamp(30px,6vw,48px); margin-top: 25px; }
.apk-contest-tree-art { height: clamp(232px,60vw,345px); position: relative; display: grid; place-items: center; isolation: isolate; overflow: hidden; margin-top: 8px; }
.apk-contest-tree-art .apk-winter-year { color: #5997e5; bottom: 13%; }
.apk-contest-fir, .apk-contest-stage { position: absolute; width: min(75vw,300px); aspect-ratio: 320 / 330; bottom: 0; transform: scale(var(--growth,.7)); transform-origin: bottom center; transition: transform .5s ease, filter .4s; }
.apk-contest-tree-art.is-faded .apk-contest-fir, .apk-contest-tree-art.is-faded .apk-contest-stage { filter: grayscale(.95) brightness(.75); }
.apk-contest-score { color: #0c61cb; white-space: nowrap; }
.apk-contest-tree-page progress { display: block; width: 100%; height: 10px; accent-color: #126bdc; }
.apk-contest-header-tree { position: relative; text-decoration: none; }
.apk-contest-header-tree > span { display: grid; place-items: center; width: 30px; height: 30px; }
.apk-contest-header-tree b { position: absolute; top: 1px; right: 1px; border-radius: 999px; min-width: 15px; padding: 0 3px; background: #0c65d9; color: #fff; font: 700 10px/15px system-ui,sans-serif; }
.apk-contest-find { position: fixed; z-index: 30; bottom: calc(14px + env(safe-area-inset-bottom)); right: 14px; display: flex; align-items: center; gap: 8px; padding: 7px 13px; border: 1px solid #bedbff; border-radius: 15px; background: #fff; color: #12427b; font: 650 13px/1.3 system-ui,sans-serif; cursor: pointer; box-shadow: 0 8px 25px #102e6930; }
.apk-contest-find img { animation: apk-prize-float 3s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
    .apk-contest-find img { animation: none !important; }
    .apk-contest-fir,.apk-contest-stage { transition: none; }
}

.apk-contest-join {
    display: flex; justify-content: space-between; gap: 16px; width: min(100%, 330px);
    min-height: 58px; margin: 18px auto 0; padding: 10px 20px; border-radius: 16px;
    background: linear-gradient(135deg,#075fcf,#097be8); box-shadow: 0 12px 24px #075fcf38;
    font-size: 19px;
}
.apk-contest-join:hover:enabled { filter: brightness(1.07); }
.apk-contest-join span { font-size: 18px; }
.apk-contest-death-art, .apk-contest-revive-art {
    position: absolute; inset: auto auto 0; width: min(75vw,300px); aspect-ratio: 1; object-fit: contain;
}
.apk-contest-revive-art svg { width: 100%; height: 100%; }
.apk-contest-prize-home {
    margin: 0 0 18px; padding: 16px; text-align: center; border: 1px solid #9ac7ff; border-radius: 18px;
    background: #eaf4ff; color: #104792; box-shadow: 0 0 34px #268fff55;
}
.apk-contest-prize-home img { display: block; width: min(100%,290px); margin: 0 auto; border-radius: 12px; }
.apk-contest-test-label { font-size: 13px; color: #305887; }


.apk-contest-page {
    --game-ink: #16271e;
    --game-muted: #52665a;
    --game-green: #105c3c;
    --game-line: #cfddd2;
    background: linear-gradient(180deg,#edf4fc,#f8fafd 70%);
}
.apk-game-viewport,.apk-game-winner-viewport { overscroll-behavior:none; background:#d7e7f4; }
.apk-game-viewport.apk-game-winner-viewport { background:#102438; }
.apk-game-tree-view {
    --game-gap:clamp(7px,1.25dvh,13px);
    --game-landscape-top:calc(clamp(113px,21dvh,192px) + env(safe-area-inset-top) - 73.5vw);
    --game-landscape-fade-end:calc(var(--game-landscape-top) + 211vw);
    min-height:100dvh; color:var(--game-ink);
    background-color:var(--app-bottom-color);
    background-image:
        linear-gradient(transparent calc(var(--game-landscape-fade-end) - clamp(85px,28vw,185px)),var(--app-bottom-color) var(--game-landscape-fade-end)),
        url("tree-landscape.jpg"),
        linear-gradient(#b8dafa,#f1e9e5 58%,var(--app-bottom-color) 88%);
    background-position:center top,center var(--game-landscape-top),center;
    background-size:100% 100%,100% auto,100% 100%;
    background-repeat:no-repeat;
}
.apk-game-tree-view:not(.apk-game-winner-view) { display:flex; flex-direction:column; }
.apk-game-tree-view:not(.apk-game-winner-view) .apk-contest-main {
    display:flex; flex:1 0 auto; flex-direction:column;
    padding:var(--game-gap) 0 max(var(--game-gap),env(safe-area-inset-bottom));
}
.apk-game-tree-view:not(.apk-game-winner-view) .apk-contest-tree-page {
    display:flex; flex:1 0 auto; flex-direction:column; gap:var(--game-gap);
}
.apk-game-tree-view .apk-winter-garland,
.apk-game-tree-view.apk-game-winner-view .apk-winter-effects { display:none; }
.apk-contest-page,.apk-game-sheet { touch-action:pan-y; -webkit-touch-callout:none; -webkit-user-select:none; user-select:none; }
.apk-contest-page img,.apk-game-sheet img,.apk-prize-home-art img { -webkit-user-drag:none; }
.apk-contest-page code,.apk-game-sheet input { -webkit-touch-callout:default; -webkit-user-select:text; user-select:text; }
.apk-contest-header, .apk-contest-main { width: min(calc(100% - 48px), 540px); }
.apk-contest-header { min-height: calc(67px + env(safe-area-inset-top)); padding-bottom: 9px; border-bottom: 1px solid #d5e0eb; }
.apk-contest-header a { min-height: 44px; display: flex; align-items: center; font-size: 13px; }
.apk-contest-header img { width: 64px; }
.apk-game-tree-view :is(.apk-contest-header,.apk-contest-main) { width:min(calc(100% - 44px),690px); }
.apk-game-tree-view .apk-contest-header {
    min-height:0; border:0; padding:calc(clamp(8px,1.8dvh,20px) + env(safe-area-inset-top)) 0 0;
}
.apk-game-tree-view .apk-contest-header a { color:#204839; }
.apk-game-tree-view .apk-contest-header a:first-child {
    padding:0 13px; min-height:37px; border:1px solid #ffffffc9; border-radius:999px;
    background:#f4f9fcd9;
}
.apk-contest-tree-page h1 {
    font-size:clamp(27px,min(8.5vw,5.4dvh),54px); font-weight:850; letter-spacing:-.07em;
    margin:0;
}
.apk-game-title-row { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.apk-game-title-copy { min-width:0; }
.apk-game-title-row .apk-contest-test-label { margin:0; font-size:11px; }
.apk-contest-join strong { flex:1; text-align:center; }
.apk-contest-join > span { width:22px; flex:none; }
.apk-contest-tree-page { text-align: left; }
.apk-contest-tree-page h1 { color: var(--game-ink); }
.apk-game-intro { margin:4px 0 0; font-size:clamp(12px,min(3.4vw,1.9dvh),18px); line-height:1.35; color:#395b56; font-weight:550; }
.apk-contest-tree-art {
    flex:1 0 auto; height:auto; min-height:clamp(120px,24dvh,175px); max-height:545px;
    margin:0 -10px; overflow:visible; scroll-margin:12px;
    background:none;
}
.apk-contest-tree-art::after {
    content:""; position:absolute; z-index:-1; bottom:7%; width:47%; height:15px;
    background:#34526932; filter:blur(10px); border-radius:50%;
}
.apk-game-live-tree,.apk-contest-death-art,.apk-contest-revive-art {
    position:absolute; inset:0; margin:auto; width:min(100%,520px); height:100%;
}
.apk-game-live-tree { transform-origin:50% 88%; }
.apk-game-tree-tap {
    position:absolute; inset:0; width:min(82%,450px); height:100%; margin:auto;
    padding:0; border:0; border-radius:25px; background:transparent;
    cursor:pointer; touch-action:manipulation;
}
.apk-game-tree-tap:focus-visible { outline:2px solid #26715a; outline-offset:-4px; }
.apk-game-live-tree > svg,.apk-game-live-tree > img {
    display:block; width:100%; height:100%; object-fit:contain;
    scale:1.08; filter:drop-shadow(0 8px 8px #24445b22);
}
.apk-game-sway { transform-origin:258px 470px; animation:apk-game-sway 8s ease-in-out infinite; }
.apk-game-hanging { transform-origin:0 0; animation:apk-game-hang .9s both; }
.apk-game-pendulum {
    transform-origin:0 0; animation:apk-game-pendulum 8s ease-in-out var(--swing-delay, -.3s) infinite;
}
.apk-game-toy-queued { opacity:0; }
.apk-contest-tree-art .is-fading-in { animation:apk-game-fade-in .28s ease both; }
.apk-contest-tree-art .is-fading-out { animation:apk-game-fade-out .32s ease both; }
.apk-contest-tree-art:not(.is-in-view) :is(.apk-game-sway,.apk-game-hanging,.apk-game-pendulum,.is-fading-in,.is-fading-out) { animation-play-state:paused; }
@keyframes apk-game-sway { 0%,48%,100%{transform:rotate(0)} 63%{transform:rotate(-.7deg)} 77%{transform:rotate(.53deg)} }
@keyframes apk-game-pendulum { 0%,48%,100%{transform:rotate(0)} 64%{transform:rotate(2.5deg)} 78%{transform:rotate(-1.6deg)} 91%{transform:rotate(.5deg)} }
@keyframes apk-game-hang { 0%{opacity:0;transform:translate(42px,-103px) rotate(-14deg)} 62%{opacity:1;transform:rotate(9deg)} 81%{transform:rotate(-5deg)} 100%{transform:none} }
@keyframes apk-game-fade-in { from{opacity:0} to{opacity:1} }
@keyframes apk-game-fade-out { from{opacity:1} to{opacity:0} }
.apk-game-control-card {
    padding:clamp(8px,1.4dvh,13px) 14px 0; border:1px solid #fff; border-radius:19px;
    background:#f5f9fbea; box-shadow:0 10px 32px #405d7c0e;
}
.apk-game-progress { display:flex; justify-content:space-between; align-items:center; gap:12px; font-size:13px; font-weight:690; color:#405747; }
.apk-game-progress strong { color:var(--game-ink); font-variant-numeric: tabular-nums; }
.apk-contest-tree-page progress { appearance:none; width:100%; height:5px; margin-top:5px; border:0; border-radius:99px; overflow:hidden; background:#d7e5da; accent-color:var(--game-green); }
.apk-contest-tree-page progress::-webkit-progress-bar { background:#d7e5da; }
.apk-contest-tree-page progress::-webkit-progress-value { background:#147951; border-radius:99px; }
.apk-contest-tree-page progress::-moz-progress-bar { background:#147951; border-radius:99px; }
.apk-game-tools { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; padding:clamp(6px,1.25dvh,12px) 0; }
.apk-game-tools > button,.apk-game-hint-anchor > button {
    position:relative;
    display:flex; width:100%; min-height:44px; align-items:center; flex-direction:column; gap:3px; padding:0; border:0; background:none;
    color:#345141; font: 650 11px/1.3 system-ui,sans-serif; cursor:pointer;
}
.apk-game-calendar-badge {
    position:absolute; top:-2px; left:calc(50% + 9px); display:grid; place-items:center;
    min-width:17px; height:17px; box-sizing:border-box; padding:0 3px; border:1px solid #fff; border-radius:12px;
    background:#aa3041; color:#fff; font:750 10px/1 system-ui,sans-serif;
}
.apk-game-tools button:disabled { opacity:.44; cursor:default; }
.apk-game-tools button > span { display:grid; place-items:center; width:clamp(30px,5.6dvh,42px); aspect-ratio:1; border-radius:50%; background:#e5efe7; color:#125b3e; }
.apk-game-tools button:hover:enabled > span,.apk-game-tools button[aria-expanded="true"] > span { background:#d4e7d9; }
.apk-game-tools svg,.apk-game-sheet button svg { width:20px;height:20px; }
.apk-game-hint-anchor { position:relative; }
.apk-game-hint {
    position:absolute; z-index:5; right:0; bottom:calc(100% + 15px); width:min(244px,calc(100vw - 48px));
    padding:15px 16px; border:1px solid #e2eae3; border-radius:16px; background:#fff; box-shadow:0 10px 33px #233c2c21;
}
.apk-game-hint::after { content:""; position:absolute; bottom:-6px; right:calc(16.6% - 2px); width:11px; height:11px; transform:rotate(45deg); background:#fff; border-right:1px solid #e2eae3; border-bottom:1px solid #e2eae3; }
.apk-game-hint strong { font-size:11px; color:#52665a; }
.apk-game-hint p { margin:6px 0 0; font-size:13px; color:#253e30; }
.apk-game-hint [data-hint-calendar-note] { color:#24527b; }
.apk-game-hint button {
    display:inline-flex; align-items:center; min-height:34px; margin-top:5px; padding:0;
    border:0; border-radius:4px; background:none; color:#145c95; font:700 12px/1.25 system-ui,sans-serif;
    text-decoration:underline; text-underline-offset:2px; cursor:pointer;
}
.apk-game-inventory {
    margin:var(--game-gap) 0 0; padding:clamp(8px,1.4dvh,15px) 14px; border:1px solid #fff; border-radius:19px;
    background:linear-gradient(#fafdfbf5,#f2f8f6f6);
}
.apk-game-inventory header { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:6px; }
.apk-game-inventory h2 { margin:0; font-size:clamp(18px,min(5.4vw,3.3dvh),28px); letter-spacing:-.055em; }
.apk-game-cookie {
    display:grid; grid-template-columns:58px minmax(0,1fr) auto; align-items:center; gap:9px;
    padding:8px 11px; margin-bottom:var(--game-gap); border-radius:17px;
    color:#174f39; background:linear-gradient(125deg,#fff8e0,#e2f2e8); border:1px solid #fff;
}
.apk-game-cookie[hidden] { display:none; }
.apk-game-cookie h2 { margin:0; font-size:clamp(13px,3.7vw,17px); line-height:1.2; }
.apk-game-cookie p { margin:3px 0 0; font-size:11px; color:#365a49; }
.apk-game-cookie img { width:100%; height:53px; object-fit:contain; }
.apk-game-cookie [data-cookie-tree] { display:flex; align-items:center; gap:5px; width:auto; padding:6px 9px; font-size:12px; }
.apk-game-cookie [data-cookie-tree] svg { width:16px; height:16px; flex:none; }
.apk-game-cookie [data-cookie-tree]:disabled { opacity:.63; }
.apk-game-inventory-actions { display:flex; align-items:center; gap:7px; }
.apk-game-new { border-radius:99px; padding:4px 8px; background:#e0efe6; color:#216045; font-size:11px; font-weight:700; }
.apk-game-inventory [data-game-tool="collection"] {
    min-height:27px; padding:3px 8px; border:0; border-radius:9px; background:#e3eee8;
    color:var(--game-green); font:700 11px/1.3 system-ui,sans-serif; cursor:pointer;
}
.apk-game-tray { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.apk-game-inventory > .apk-game-tray { margin-top:6px; }
.apk-game-recent { display:contents; }
.apk-game-toy,.apk-game-pending {
    min-height:clamp(66px,12.2dvh,110px); display:grid; justify-items:center; align-content:center; gap:3px;
    padding:4px 3px; border:1px solid #dde5de; border-radius:12px; background:#e5efe7;
}
.apk-game-toy:nth-child(3n+1) { background:#f2ecee; border-color:#ede1e6; }
.apk-game-toy:nth-child(3n+2) { background:#f7f0e4; border-color:#ede2d1; }
.apk-game-pending { background:#e6f2e4; border-color:#b8d9be; }
.apk-game-toy img,.apk-game-pending img { width:clamp(28px,7dvh,54px); height:clamp(31px,7.4dvh,57px); object-fit:contain; }
.apk-contest-tree-page .apk-contest-primary { background:var(--game-green); color:#fff; margin:0; font-size:13px; }
.apk-game-pending button { min-height:28px; width:min(100%,89px); padding:4px 5px; border-radius:7px; }
.apk-game-pending button:disabled { opacity:.6; cursor:wait; }
.apk-game-toy span { display:flex; gap:3px; align-items:center; font-size:11px; font-weight:650; color:#4f6357; }
.apk-game-toy svg { width:12px;height:12px; }
.apk-game-empty { max-width:32ch; margin:8px auto 2px; text-align:center; color:var(--game-muted); font-size:13px; line-height:1.4; }
[data-contest-progress] .apk-contest-status { margin:2px 0 4px; color:var(--game-muted); font-size:12px; line-height:1.35; }
[data-contest-progress] .apk-contest-status:empty { display:none; }
.apk-game-find {
    clear:both; display:grid; place-items:center; width:48px; height:48px; margin:10px 8px 10px auto;
    padding:2px; border:1px solid #dbe8df; border-radius:50%; background:#fbfdfa; cursor:pointer; box-shadow:0 3px 11px #24432c17;
}
.apk-game-find img { object-fit:contain; animation:apk-prize-float 4s ease-in-out infinite; }
.apk-contest-header-tree b[hidden] { display:none; }
.apk-contest-header-tree b { background:#aa3041; }
.apk-game-badge-art > span { font:22px/1 system-ui,sans-serif; }
.apk-game-badge-art svg { width:100%;height:100%; }
.apk-game-sheet {
    width:min(calc(100% - 24px),420px); max-height:calc(100dvh - 30px); padding:0; margin:auto auto max(12px,env(safe-area-inset-bottom));
    border:0; border-radius:24px; background:#f8faf7;color:#16271e; font:14px/1.45 system-ui,sans-serif; box-shadow:0 20px 58px #19312755;
}
.apk-game-sheet::backdrop { background:#253e305e; backdrop-filter:blur(4px); }
.apk-game-sheet-content { padding:21px; }
.apk-game-sheet-content header { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.apk-game-sheet h2 { margin:0; font-size:23px; letter-spacing:-.05em; }
.apk-game-sheet p { margin:8px 0 12px; }
.apk-game-sheet [data-sheet-close] { width:36px;height:36px; min-width:36px;padding:0;border:0;border-radius:50%;background:#e5efe7;color:#105c3c;font:24px system-ui,sans-serif;cursor:pointer; }
.apk-game-sheet label { display:grid; gap:5px; padding:10px; border-radius:12px;background:#eaf1eb;color:#405747;font-size:12px; }
.apk-game-sheet input { width:100%;min-width:0;box-sizing:border-box;background:transparent;border:0;padding:4px 0;color:#174630;font:13px system-ui,sans-serif;text-overflow:ellipsis; }
.apk-game-sheet .apk-contest-primary,.apk-game-sheet .apk-contest-secondary { box-sizing:border-box; gap:7px; width:100%; margin:7px 0 0; background:#105c3c;color:white; }
.apk-game-sheet .apk-contest-secondary { background:#eaf1eb;color:#174630; }
.apk-game-sheet .apk-contest-primary svg,.apk-game-sheet .apk-contest-secondary svg { width:16px;height:16px;flex-shrink:0; }
.apk-game-sheet .apk-game-tray { margin-top:13px; }
.apk-game-days { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:4px;text-align:center; }
.apk-game-calendar-note { padding:9px 11px; border-radius:11px; background:#e9f2fb; color:#24527b; }
.apk-game-calendar-note.has-fallen { background:#fff0d9; color:#684619; }
.apk-game-calendar-note strong { display:block; }
.apk-game-days small { padding:5px 1px; }
.apk-game-days button {
    position:relative; min-width:0; min-height:40px; padding:6px 0; border:0; border-radius:8px;
    color:inherit; background:#edf3ee; cursor:pointer; font:650 13px/1 system-ui,sans-serif;
}
.apk-game-days button:disabled { background:none; color:#67776e; cursor:default; }
.apk-game-days .is-missed { background:#e5effa; color:#224d72; }
.apk-game-days .is-fallen { background:#fff0d9; color:#70470f; }
.apk-game-days .is-fallen::before {
    content:"↻"; position:absolute; top:3px; right:3px; font-size:11px; line-height:1;
}
.apk-game-days .is-fallen[aria-pressed="true"] { background:#844f15; color:#fff; }
.apk-game-days .is-done { background:#deeee3;color:#165138;font-weight:700; }
.apk-game-days .is-done svg { position:absolute; top:3px; right:3px; width:11px; height:11px; }
.apk-game-days .is-today { box-shadow:inset 0 0 0 1px #17664a;font-weight:750; }
.apk-game-days [aria-pressed="true"] { background:#17664a; color:#fff; }
.apk-game-days .is-found::after {
    content:""; position:absolute; width:5px; height:5px; bottom:4px; left:calc(50% - 2px); border-radius:50%; background:currentColor;
}
.apk-game-days button:focus-visible { outline:2px solid #174c80; outline-offset:1px; z-index:1; }
.apk-game-sheet:is([data-variant="found"],[data-variant="prize"]) {
    margin:auto; padding:0; background:transparent; color:#fff; box-shadow:none; text-align:center;
}
.apk-game-sheet:is([data-variant="found"],[data-variant="prize"])::backdrop { background:radial-gradient(ellipse at center,#27493494,#10291fed); backdrop-filter:blur(7px); }
.apk-game-sheet[data-variant="prize"]::backdrop { background:radial-gradient(ellipse at center,#2d588bc4,#10223af5); }
.apk-game-sheet:is([data-variant="found"],[data-variant="prize"]) header { display:block; }
.apk-game-sheet:is([data-variant="found"],[data-variant="prize"]) [data-sheet-close] { position:absolute;top:4px;right:4px; }
.apk-game-sheet :is(.apk-game-found-art,.apk-game-prize-art) { display:block;width:min(100%,240px);height:auto;margin:20px auto; }
.apk-game-sheet .apk-game-found-art { max-width:110px; }
.apk-game-sheet:is([data-variant="found"],[data-variant="prize"]) .apk-contest-primary { background:#ecf6ee;color:#173f2d; }
@media (max-width:350px) { .apk-contest-header,.apk-contest-main { width:calc(100% - 36px); }  }
@media (prefers-reduced-motion:reduce) { .apk-game-sway,.apk-game-hanging,.apk-game-pendulum,.apk-game-find img { animation:none; } }

.apk-game-final {
    margin:0; padding:8px 13px; border:1px solid #d0e4d4; border-radius:14px;
    background:#e8f2e9; color:var(--game-ink);
}
.apk-game-final h2 { margin:0 0 2px; font-size:15px; letter-spacing:-.035em; }
.apk-game-final p { margin:0; color:#4a6454; font-size:12px; line-height:1.4; }
.apk-game-side { display:grid; gap:var(--game-gap); }
.apk-contest-tree-page .apk-game-prize-reopen {
    width:100%; min-height:44px; margin:0; gap:9px; flex-shrink:0;
    background:linear-gradient(105deg,#123e7d,#155cb2); color:#fff;
    border:1px solid #b2d6ff; border-radius:14px; box-shadow:0 6px 18px #0d50aa37;
    font-size:15px;
}
.apk-game-prize-reopen svg { width:19px; height:19px; }
@media (min-width:920px) {
    .apk-game-tree-view:not(.apk-game-winner-view) {
        background:#e9f2f7 radial-gradient(ellipse at 38% 18%,#cce8f8,transparent 58%);
    }
    .apk-game-tree-view:not(.apk-game-winner-view) :is(.apk-contest-header,.apk-contest-main) {
        width:min(calc(100% - 80px),1140px);
    }
    .apk-game-tree-view:not(.apk-game-winner-view) .apk-contest-main { padding:18px 0 34px; }
    .apk-game-tree-view:not(.apk-game-winner-view) .apk-contest-tree-page {
        display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);
        grid-template-rows:auto auto auto; gap:16px 21px;
    }
    .apk-game-heading { grid-column:1/-1; }
    .apk-game-title-row { justify-content:flex-start; gap:24px; }
    .apk-contest-tree-art {
        grid-column:1; grid-row:2; align-self:stretch;
        min-height:clamp(385px,65dvh,590px); max-height:none; margin:0; overflow:hidden;
        container-type:size; border:1px solid #fff; border-radius:27px;
        background:#dbeafa; box-shadow:0 15px 48px #35628417;
    }
    .apk-contest-tree-art::before {
        content:""; position:absolute; z-index:-1; inset:0;
        background:url("tree-landscape.jpg") center calc(13cqh - 73.5cqw)/100% auto no-repeat;
    }
    .apk-game-side { grid-column:2; grid-row:2 / 4; align-self:start; }
    .apk-contest-tree-page .apk-game-prize-reopen { grid-column:1; grid-row:3; }
    .apk-game-tree-view .apk-game-control-card { padding:18px 20px 2px; }
    .apk-game-tree-view .apk-game-inventory { padding:17px 20px; margin-top:14px; }
}
.apk-game-sheet[data-variant="prize"] {
    width:min(calc(100% - 32px),460px); max-height:calc(100dvh - 28px);
    color:#f5f9ff; overflow:auto;
}
.apk-game-sheet[data-variant="prize"]::backdrop {
    background:radial-gradient(ellipse at 50% 38%,#416181cc,#102438f3);
    -webkit-backdrop-filter:blur(15px); backdrop-filter:blur(15px);
}
.apk-game-sheet[data-variant="prize"] .apk-game-sheet-content {
    position:relative; display:flex; flex-direction:column; padding:30px 11px 22px;
}
.apk-game-sheet[data-variant="prize"] header { order:1; }
.apk-game-sheet[data-variant="prize"] h2 { font-size:clamp(29px,7.3vw,43px); letter-spacing:-.065em; }
.apk-game-sheet[data-variant="prize"] [data-sheet-close] {
    position:fixed; top:max(15px,env(safe-area-inset-top)); right:max(12px,env(safe-area-inset-right));
    background:#e3efff26; border:1px solid #ffffff30; color:#fff;
}
.apk-game-sheet[data-variant="prize"] .apk-game-prize-art {
    width:87%; aspect-ratio:1000 / 627; object-fit:cover; border-radius:18px; margin:12px auto 23px;
    transform:rotate(-4deg); box-shadow:0 21px 54px #00162f6e;
    animation:apk-gift-arrive .68s cubic-bezier(.2,.75,.3,1) both;
}
@keyframes apk-gift-arrive { from { transform:translateY(17px) rotate(-8deg) scale(.95); opacity:0 } }
.apk-game-sheet[data-variant="prize"] p { order:2; color:#d7e4f4; margin:6px 0 18px; }
.apk-game-sheet[data-variant="prize"] .apk-contest-primary { order:3; min-height:47px; color:#154277; background:#eaf4ff; }
.apk-game-winner-view {
    position:relative; isolation:isolate; background:#102438; color:#f7faff;
}
.apk-game-winner-view::before {
    content:""; position:fixed; z-index:-1; inset:0; pointer-events:none;
    background:radial-gradient(ellipse at 50% 27%,#285783 0,#1b3855 37%,#102438 78%);
}
.apk-game-winner-view .apk-contest-header a:first-child {
    background:#eaf4ff17; color:#edf6ff; border-color:#d4eaff3d;
}
.apk-game-winner-view .apk-contest-test-label { background:#d8edff20; color:#e1efff; }
.apk-contest-voucher { margin:clamp(27px,6vh,52px) auto 0; padding-bottom:28px; color:#f7faff; }
.apk-game-voucher-hero { text-align:center; }
.apk-game-voucher-hero h2 { margin:0; font-size:clamp(32px,8vw,53px); line-height:1.05; letter-spacing:-.065em; }
.apk-game-voucher-hero p { margin:8px 0 0; color:#c2d6ec; font-size:15px; }
.apk-game-voucher-art {
    width:min(90%,384px); min-width:0; aspect-ratio:1000 / 627; margin:24px auto 24px;
    border-radius:clamp(14px,4vw,23px); box-shadow:0 15px 42px #04142762;
}
.apk-game-voucher-art img { display:block; width:100%; height:100%; object-fit:contain; border-radius:inherit; }
.apk-game-voucher-detail { width:min(100%,420px); margin:0 auto; }
.apk-game-voucher-code {
    display:flex; justify-content:space-between; align-items:center; gap:12px; padding:10px 10px 10px 15px;
    background:#ecf5ff1a; border:1px solid #c3e3fe38; border-radius:17px;
}
.apk-game-voucher-code div { min-width:0; }
.apk-game-voucher-code span { color:#d1e1f3; font-size:12px; }
.apk-game-voucher-code code { display:block; color:#f6faff; font-size:19px; font-weight:730; overflow-wrap:anywhere; }
.apk-contest-tree-page .apk-game-voucher-code .apk-contest-primary {
    flex:none; width:44px; min-height:44px; padding:0; margin:0; border-radius:12px; background:#dfedff; color:#184278;
}
.apk-game-voucher-code svg { width:20px; height:20px; }
.apk-game-voucher-meta, .apk-game-voucher-feedback { margin:8px 0 0; color:#c9dcf3; font-size:12px; }
.apk-game-voucher-feedback:empty { display:none; }
.apk-game-voucher-links { display:grid; gap:12px; margin-top:18px; }
.apk-game-voucher-links details { border-block:1px solid #9cbddd42; text-align:left; }
.apk-game-voucher-links summary { display:flex; justify-content:space-between; padding:12px 0; color:#e4f0ff; font-weight:690; cursor:pointer; list-style:none; }
.apk-game-voucher-links summary::-webkit-details-marker { display:none; }
.apk-game-voucher-links summary::after { content:""; width:8px;height:8px;border-right:2px solid #bfdbfa;border-bottom:2px solid #bfdbfa;transform:rotate(45deg);margin:5px 3px; }
.apk-game-voucher-links details[open] summary::after { transform:rotate(225deg); }
.apk-game-voucher-links ol { gap:6px; margin:4px 0 10px; font-size:13px; color:#dce8f8; }
.apk-game-voucher-links li::marker { color:#a2c9fb; }
.apk-game-voucher-links a { display:inline-block; margin:0 0 12px; color:#c2dfff; font-size:13px; }
.apk-game-voucher-links button { justify-self:start; margin:0; background:#eaf4ff17; color:#eaf4ff; font-size:14px; }
.apk-contest-prize-home {
    display:grid; grid-template-columns:minmax(58px,76px) minmax(0,1fr) auto; align-items:center; gap:13px;
    padding:11px 13px; text-align:left; text-decoration:none; color:#17467e;
    border:1px solid #bfd8f5; border-radius:15px; background:#e9f3ff; box-shadow:0 6px 22px #092c5310;
}
.apk-prize-home-art { position:relative; display:block; width:100%; aspect-ratio:1000 / 627; border-radius:7px; overflow:hidden; }
.apk-prize-home-art img { position:absolute; inset:0; display:block; width:100%;height:100%;max-height:100%;margin:0; border-radius:0; object-fit:contain; }
.apk-contest-prize-home strong,.apk-contest-prize-home small { display:block; line-height:1.3; }
.apk-contest-prize-home strong { font-size:15px; }
.apk-contest-prize-home small { margin-top:3px; font-size:13px; color:#405d7d; }
.apk-contest-prize-home > span:last-child { font-size:24px; padding-right:1px; }
@media(prefers-reduced-motion:reduce) { .apk-game-sheet[data-variant="prize"] .apk-game-prize-art { animation:none; } }
.apk-contest-test-label {
    display:block; width:max-content; max-width:100%; box-sizing:border-box; margin:12px 0 0;
    padding:4px 9px; border-radius:7px; background:#dceafb; color:#2c4e79; font:650 12px/1.4 system-ui,sans-serif;
}

html.apk-contest-viewport:not(.apk-game-viewport) {
    background-color: #dceafa;
    overscroll-behavior-y: none;
}
.apk-contest-page:not(.apk-game-tree-view) {
    --app-bottom-color: #f9fcff;
    background: linear-gradient(#dceafa, #f9fcff 180px);
}
.apk-game-tree-view { --app-bottom-color: #e4edf4; }
.apk-game-winner-view { --app-bottom-color: #102438; }
.apk-contest-page:not(.apk-game-tree-view) .apk-contest-main {
    width: min(calc(100% - 24px), 724px);
    padding: calc(15px + env(safe-area-inset-top)) 0 calc(38px + env(safe-area-inset-bottom));
}
.apk-contest-hero {
    padding: clamp(14px, 3.8vw, 29px);
    border-radius: clamp(27px, 6.5vw, 48px);
    color: #142e43;
}
.apk-rules-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.apk-rules-header a {
    display: flex;
    align-items: center;
    min-height: 44px;
    color: #284c67;
    font-weight: 720;
    font-size: clamp(13px, 3.7vw, 17px);
    text-decoration: none;
}
.apk-rules-header img { display: block; width: clamp(63px, 17vw, 108px); height: auto; }
.apk-rules-snowman {
    display: grid;
    place-items: center;
    width: clamp(106px, 29vw, 174px);
    aspect-ratio: 1;
    margin: 4px auto 2px;
    font-size: clamp(62px, 18vw, 110px);
    line-height: 1;
}
.apk-rules-snowman svg { width: 100%; height: 100%; }
.apk-contest-hero .apk-rules-year {
    margin: 0 0 9px;
    color: #315773;
    font-size: clamp(12px, 3.1vw, 16px);
    font-weight: 730;
}
.apk-contest-hero h1 {
    margin: 0;
    color: #142e43;
    font-size: clamp(29px, 8.5vw, 62px);
    line-height: 1.02;
    font-weight: 850;
    letter-spacing: -.06em;
}
.apk-contest-hero .apk-rules-tagline {
    margin: 11px auto 0;
    color: #315773;
    font-size: clamp(12px, 3.3vw, 18px);
}
.apk-contest-hero .apk-contest-test-label { margin: 8px 0 -12px; }
.apk-rules-shortcuts {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: clamp(8px, 2.4vw, 14px);
    margin-top: clamp(26px, 9.5vw, 56px);
}
.apk-rules-shortcut {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
    padding: clamp(10px, 2.8vw, 18px);
    border: 1px solid #fff;
    border-radius: clamp(16px, 4vw, 27px);
    background: #f8fcffef;
    color: inherit;
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}
.apk-rules-shortcut:hover { background: #fff; }
.apk-rules-shortcut strong { font-size: clamp(15px, 3.9vw, 21px); letter-spacing: -.025em; }
.apk-rules-shortcut-icon { width: 24px; height: 24px; color: #1c6b7b; }
.apk-rules-shortcut-icon svg { width: 100%; height: 100%; }
.apk-rules-chip { padding: 2px 8px; border-radius: 999px; background: #dff3ed; color: #215e61; font-size: 11px; white-space: nowrap; }
.apk-rules-arrow { color: #4a748c; text-align: right; line-height: 1; }
.apk-rules-content { padding: clamp(22px,6vw,43px) clamp(10px,3.8vw,28px) 0; color: #152f43; }
.apk-rules-content h2 { margin: 0 0 4px; font-size: clamp(25px,6.6vw,39px); letter-spacing: -.055em; }
.apk-rules-dates { margin: 0; color: #4e6a80; font-size: 14px; }
.apk-rules-content .apk-contest-steps {
    counter-reset: apk-rule;
    display: block;
    padding: 0;
    margin: 19px 0;
    list-style: none;
}
.apk-rules-content li {
    position: relative;
    counter-increment: apk-rule;
    padding: clamp(14px,3.4vw,22px) 0 clamp(14px,3.4vw,22px) 42px;
    border-bottom: 1px solid #dde7ef;
}
.apk-rules-content li::before {
    content: counter(apk-rule);
    position: absolute;
    top: clamp(14px,3.4vw,22px);
    left: 0;
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border-radius: 50%;
    background: #e9f4fc;
    color: #1268a7;
    font-weight: 750;
}
.apk-rules-content li strong { font-size: clamp(15px,3.9vw,20px); }
.apk-rules-content li p { margin: 5px 0 0; color: #465f73; font-size: clamp(14px,3.5vw,17px); }
.apk-rules-note {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 16px;
    background: #eef6fc;
    color: #3a5b74;
    font-size: 14px;
}
.apk-rules-note > span:first-child { font-size: 19px; }
.apk-rules-content .apk-contest-join { width: 100%; min-height: 51px; box-shadow: none; }
.apk-rules-content .apk-contest-join strong { flex: 0 1 auto; }
.apk-rules-content .apk-contest-join { justify-content: center; gap: 10px; }
.apk-rules-content .apk-contest-status { color: #526e83; text-align: center; font-size: 13px; }
.apk-game-sheet[data-variant="prizes"] {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: max(14px, env(safe-area-inset-top)) 18px max(14px, env(safe-area-inset-bottom));
    border-radius: 0;
    background: transparent;
    color: #f3f8ff;
    box-shadow: none;
    text-align: center;
}
.apk-game-sheet[data-variant="prizes"][open] { display: grid; place-items: center; }
.apk-game-sheet[data-variant="prizes"]::backdrop {
    background: linear-gradient(#18334de0, #12293ef4);
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
}
.apk-game-sheet[data-variant="prizes"] .apk-game-sheet-content { width: min(100%, 410px); padding: 13px 5px 15px; }
.apk-game-sheet[data-variant="prizes"] header { margin-bottom: 12px; }
.apk-game-sheet[data-variant="prizes"] [data-sheet-close] { background: #eef6ff24; color: #fff; }
.apk-game-sheet[data-variant="prizes"] .apk-contest-primary { background: #ebf5ff; color: #173c60; }
.apk-rules-ozon {
    display: block;
    width: min(94%, 360px);
    height: auto;
    margin: 8px auto 15px;
    transform: rotate(-4deg);
    filter: drop-shadow(0 11px 20px #06192f60);
}
.apk-game-sheet[data-variant="prizes"] .apk-game-find { margin-inline: auto; }
.apk-game-back-icon {
    width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor;
    stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.apk-rules-header a:first-child, .apk-game-tree-view .apk-contest-header a:first-child { gap: 7px; }
.apk-game-top-button {
    display: grid; place-items: center; gap: 3px; width: 49px; min-height: 48px;
    flex: none; margin: 0; padding: 3px 0; border: 0; border-radius: 12px;
    background: transparent; color: #254f43; font: 730 11px/1.1 system-ui,sans-serif; cursor: pointer;
}
.apk-game-top-button > span {
    display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #65a998;
    border-radius: 50%; background: #f0faf4d9; box-shadow: inset 0 0 0 3px #ffffffa6;
}
.apk-game-top-button img { width: 31px; height: 31px; object-fit: contain; }
.apk-game-top-button:hover > span { background: #dff3ea; }
.apk-game-top-button:focus-visible { outline: 2px solid #26715a; outline-offset: 3px; }
.apk-game-sheet[data-variant="leaderboard"] {
    width: min(calc(100% - 32px), 435px);
    max-height: calc(100dvh - 28px - env(safe-area-inset-top));
    margin: auto auto max(13px, env(safe-area-inset-bottom));
    box-sizing: border-box;
    border: 1px solid #d5e7db;
    border-radius: 25px;
    background: #f7fcf9;
    color: #173c2f;
}
.apk-game-sheet[data-variant="leaderboard"]::backdrop {
    background: #243f4b65;
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
}
.apk-game-sheet[data-variant="leaderboard"] h2 { font-size: clamp(22px,6.6vw,32px); }
.apk-game-sheet[data-variant="leaderboard"] [data-sheet-close]:focus-visible { outline: 2px solid #65a998; outline-offset: 2px; }
.apk-game-sheet .apk-game-rank-note {
    display: flex; align-items: center; gap: 6px; margin: 4px 0 10px; color: #416857; font-size: 13px;
}
.apk-game-rank-note svg { width: 16px; height: 16px; color: #478b74; }
.apk-game-rank-list { list-style: none; margin: 12px 0 0; padding: 0; }
.apk-game-rank-row {
    display: grid; grid-template-columns: 24px 34px minmax(0, 1fr) auto; align-items: center; gap: 7px;
    min-height: 47px; padding: 5px 7px; border-bottom: 1px solid #d8e9df;
}
.apk-game-rank-row.is-you { background: #e2f1e7; border-bottom-color: transparent; border-radius: 12px; }
.apk-game-rank-place, .apk-game-rank-count { font-variant-numeric: tabular-nums; white-space: nowrap; }
.apk-game-rank-place { color: #547368; font-size: 12px; }
.apk-game-rank-avatar {
    display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
    background: #dceee4; color: #245c49; font-weight: 750;
}
.apk-game-rank-avatar > * { grid-area: 1 / 1; }
.apk-game-rank-avatar svg { width: 18px; height: 18px; }
.apk-game-rank-avatar img { width: 100%; height: 100%; object-fit: cover; }
.apk-game-rank-player { display: flex; align-items: baseline; gap: 5px; min-width: 0; }
.apk-game-rank-player strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.apk-game-rank-player small { color: #4a7565; font-size: 11px; }
.apk-game-rank-count { color: #2a6651; }
.apk-game-sheet[data-variant="leaderboard"] [data-rank-done] { margin-top: 15px; }
