.game-v3-card[data-home-screen="viking"] {
    --v3-accent: #e66a38;
    --v3-soft: #fff0d7;
}

.game-v3-card[data-home-screen="hole-walk"] {
    --v3-accent: #168f88;
    --v3-soft: #dcf6ee;
}

.hold-game-shell {
    width: min(100%, 540px);
    margin: 0 auto;
    padding: 8px 8px 20px;
    color: #102b42;
}

.hold-game-topbar {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.hold-game-title {
    min-width: 0;
    text-align: center;
}

.hold-game-title small {
    display: block;
    color: #18887f;
    font-size: 9px;
    font-weight: 950;
}

.viking-game-shell .hold-game-title small { color: #d35a2d; }

.hold-game-title h3 {
    overflow: hidden;
    margin: 1px 0 0;
    font-size: clamp(16px, 4.8vw, 21px);
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hold-game-icon-button {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    border: 1px solid #cbdbe6;
    border-radius: 8px;
    background: #fff;
    color: #153b58;
    font-size: 21px;
    font-weight: 900;
    box-shadow: 0 3px 0 #b9cbd7;
}

.hold-game-icon-button[aria-pressed="false"] {
    color: #8b99a5;
    background: #edf2f5;
}

.hold-game-hud {
    display: grid;
    grid-template-columns: 1.2fr 1fr .78fr 1fr;
    gap: 5px;
    margin-bottom: 7px;
}

.hold-game-hud > div {
    min-width: 0;
    padding: 7px 4px 6px;
    border: 1px solid #c7d9e4;
    border-radius: 8px;
    background: #fff;
    text-align: center;
    box-shadow: 0 3px 0 rgba(31, 75, 106, .13);
}

.hold-game-hud span {
    display: block;
    color: #6c8191;
    font-size: 9px;
    font-weight: 900;
}

.hold-game-hud strong {
    display: block;
    overflow: hidden;
    margin-top: 1px;
    font-size: clamp(15px, 4vw, 20px);
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#vikingLives {
    color: #e54747;
    font-size: clamp(13px, 3.6vw, 18px);
    letter-spacing: 0;
}

.hold-game-stage {
    position: relative;
    width: min(100%, calc(52dvh * .857));
    max-height: 52dvh;
    margin: 0 auto;
    overflow: hidden;
    aspect-ratio: 720 / 840;
    border: 3px solid #133c5a;
    border-radius: 8px;
    background: #50b8d0;
    box-shadow: 0 7px 0 #0c304b, 0 12px 25px rgba(7, 43, 67, .2);
    touch-action: none;
}

.viking-stage { border-color: #7c3b23; box-shadow: 0 7px 0 #572617, 0 12px 25px rgba(87, 38, 23, .2); }
.walk-stage { border-color: #14645f; box-shadow: 0 7px 0 #0d4542, 0 12px 25px rgba(13, 69, 66, .2); }

.hold-game-stage canvas {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
}

.hold-game-message {
    min-height: 36px;
    margin: 10px 0 7px;
    padding: 7px 10px;
    border-left: 4px solid #19a79d;
    border-radius: 4px;
    background: #fff;
    color: #40586a;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.4;
}

.viking-game-shell .hold-game-message { border-left-color: #f08b36; }

.hold-game-actions {
    display: grid;
    grid-template-columns: .78fr 1.4fr;
    gap: 8px;
}

.hold-game-start,
.hold-game-main,
.hold-game-dialog button {
    min-height: 58px;
    border: 0;
    border-radius: 8px;
    font-weight: 950;
}

.hold-game-start {
    padding: 8px;
    background: #fff;
    color: #185477;
    box-shadow: 0 5px 0 #a9c0d0;
}

.hold-game-start:disabled {
    color: #8b99a4;
    background: #e9eff2;
    box-shadow: 0 3px 0 #c7d1d8;
}

.hold-game-main {
    padding: 5px 12px 8px;
    color: #fff;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.hold-game-main span,
.hold-game-main strong { display: block; }
.hold-game-main span { font-size: 9px; }
.hold-game-main strong { font-size: 20px; line-height: 1.1; }

.viking-suck-button {
    background: linear-gradient(180deg, #ff9a3b, #e7592b);
    box-shadow: 0 6px 0 #a8351d, 0 10px 20px rgba(190, 62, 28, .23);
}

.walk-charge-button {
    background: linear-gradient(180deg, #2bc7b9, #11877f);
    box-shadow: 0 6px 0 #08635e, 0 10px 20px rgba(10, 106, 99, .23);
}

.hold-game-main.is-holding {
    transform: translateY(4px) scale(.985);
    filter: saturate(1.15) brightness(.98);
    box-shadow: 0 2px 0 #713020;
}

.hold-game-main:disabled {
    color: #93a0aa;
    background: #dfe7eb;
    box-shadow: 0 4px 0 #bdc8ce;
}

.hold-game-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    padding: 18px;
    place-items: center;
    background: rgba(3, 30, 47, .65);
    backdrop-filter: blur(4px);
}

.hold-game-overlay[hidden] { display: none; }
.viking-game-shell .hold-game-topbar{grid-template-columns:44px minmax(0,1fr) auto}
.viking-audio-controls{display:flex;gap:5px}.viking-audio-controls #vikingBgm{font-size:10px;font-weight:900}
.viking-mode-choice{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 12px;padding:0;border:0}
.viking-mode-choice legend{padding:0 0 8px;font-size:13px;font-weight:900}
.viking-mode-choice label{position:relative;cursor:pointer;display:flex;margin:0}
.viking-mode-choice input{position:absolute;opacity:0;width:1px;height:1px}
.viking-mode-choice span{display:flex;flex-direction:column;gap:4px;width:100%;padding:12px 9px;border:2px solid #d7e2dd;border-radius:14px;background:#f4f7f2}
.viking-mode-choice b{font-size:16px}.viking-mode-choice small{font-size:10px}
.viking-mode-choice input:checked+span{border-color:#d67e32;background:#fff0c9;box-shadow:0 3px 0 #e8c289}
.viking-mode-choice input:focus-visible+span{outline:3px solid #128a98;outline-offset:3px}
.viking-guide-skills{padding:12px;margin:12px 0;border:1px solid #d9dfc5;border-radius:16px;background:#f7f8e9}
.viking-guide-skills h3{display:flex;align-items:center;gap:8px;font-size:13px;margin:0 0 9px}
.viking-guide-skills p{font-size:12px;line-height:1.65;margin:7px 0}.viking-guide-skills p:last-child{font-size:10px;color:#658078}
.viking-skill-token{display:inline-grid;place-items:center;flex:none;width:33px;height:33px;border:3px solid #83ebd7;border-radius:50%;background:#17796e;color:#fff;font-size:21px}
.clean-label{color:#137569}.magnet-label{color:#9c5d19}
.viking-skill-button{background:#d4e6df;color:#47635b;box-shadow:0 5px 0 #a0b9ae}
.viking-skill-button[data-skill="clean"]{background:linear-gradient(#8af2d6,#32b5a1);color:#124d49;box-shadow:0 5px 0 #168471}
.viking-skill-button[data-skill="magnet"]{background:linear-gradient(#ffe6a0,#e8aa4f);color:#634416;box-shadow:0 5px 0 #b88032}
.viking-skill-button[data-skill="active"]:disabled{background:#fff0b4;color:#83651c;opacity:1}
.viking-stage[data-mode="move"] canvas{cursor:ew-resize}
body.game-fit .viking-game-shell .fit-controls>#vikingStart{flex:.65;font-size:11px!important}
body.game-fit .viking-game-shell .fit-controls>#vikingSuck{flex:1.25}
body.game-fit .viking-game-shell .fit-controls>#vikingSkill{flex:1.15}
body.game-fit .viking-game-shell .fit-controls strong{font-size:clamp(12px,3.5vw,16px)!important;white-space:nowrap}
body.game-fit .viking-game-shell .fit-controls span{font-size:8px!important;white-space:nowrap}
@media(orientation:landscape) and (max-height:600px){body.game-fit .viking-game-shell .fit-controls>#vikingStart{flex-basis:100%}body.game-fit .viking-game-shell .fit-controls>#vikingSuck,body.game-fit .viking-game-shell .fit-controls>#vikingSkill{flex-basis:40%}body.game-fit .viking-game-shell .fit-controls strong{font-size:12px!important}body.game-fit .viking-game-shell .fit-controls span{font-size:7px!important}}
.viking-guide{width:min(460px,calc(100% - 28px));max-height:calc(100dvh - 36px);overflow-y:auto;box-sizing:border-box;border:2px solid #fff8e9;border-radius:24px;padding:22px;background:#fffdf7;color:#294b55;box-shadow:0 16px 60px #173f5860}
.viking-guide::backdrop{background:#143c537d;backdrop-filter:blur(5px)}
.viking-guide header{display:flex;align-items:start;gap:10px;justify-content:space-between;margin-bottom:15px}.viking-guide header small{font-size:10px;color:#ab795a}.viking-guide h2{font-size:21px;margin:4px 0 0}.viking-guide header button{flex:none;width:30px;height:30px;border:1px solid #dbe5e3;border-radius:50%;background:#fff;color:#6a8586;font-size:19px;cursor:pointer}
.viking-guide-row{padding:12px 10px;margin:10px 0;border-radius:15px;background:#eaf8f2}.viking-guide-row.bad{background:#fcf0eb}.viking-guide h3{font-size:13px;margin:0 0 5px}.viking-guide p{font-size:11px;line-height:1.7;margin:6px 0 0}.viking-guide-row h3,.viking-guide-row>p{text-align:center}.viking-guide-items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.viking-guide figure{margin:0;text-align:center}.viking-guide canvas{width:58px;height:58px;display:block;margin:0 auto}.viking-guide figcaption{font-size:10px;font-weight:700}.viking-guide-heart{display:flex;gap:8px;align-items:center;padding:5px 10px;background:#fff0f2;border-radius:15px}.viking-guide-heart canvas{width:62px;height:62px;flex:none;margin:0}.viking-guide .viking-guide-how{text-align:center;margin:14px 0 12px;font-size:12px}.viking-guide-begin{width:100%;padding:14px 10px;border:0;border-radius:14px;background:#e38758;color:#fff;font-size:14px;font-weight:900;box-shadow:0 4px 0 #b66941;cursor:pointer}
@media(max-width:440px){.viking-guide{padding:16px}.viking-guide h2{font-size:19px}.viking-guide-row{padding:9px}.viking-guide canvas{width:49px;height:49px}.viking-audio-controls .hold-game-icon-button{width:35px;height:38px}.viking-game-shell .hold-game-title h3{font-size:15px}}

.hold-game-dialog {
    width: min(100%, 330px);
    padding: 22px 18px 18px;
    border: 2px solid #fff;
    border-radius: 8px;
    background: #fff;
    text-align: center;
    box-shadow: 0 9px 0 #0b344e, 0 16px 35px rgba(0, 0, 0, .3);
}

.hold-game-dialog b { color: #178d84; font-size: 10px; }
.viking-game-shell .hold-game-dialog b { color: #dd612f; }

.hold-game-dialog > strong {
    display: block;
    margin: 5px 0;
    color: #113149;
    font-size: 47px;
    line-height: 1;
}

.hold-game-dialog p {
    min-height: 38px;
    margin: 8px 0 14px;
    color: #536a79;
    font-size: 13px;
    font-weight: 750;
}

.hold-game-dialog button {
    width: 100%;
    color: #fff;
    background: #168f87;
    box-shadow: 0 5px 0 #09655f;
}

.viking-game-shell .hold-game-dialog button { background: #eb6e35; box-shadow: 0 5px 0 #a63c20; }

.walk-charge-meter {
    position: absolute;
    right: 12px;
    bottom: 12px;
    left: 12px;
    height: 22px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,.9);
    border-radius: 999px;
    background: rgba(5, 45, 57, .75);
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.walk-charge-meter span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    background: linear-gradient(90deg, #4ce0b2 0 42%, #f5d34f 42% 70%, #ff7b48 70%);
    transition: width 30ms linear;
}

.walk-charge-meter i {
    position: absolute;
    top: 1px;
    color: #fff;
    font-size: 9px;
    font-style: normal;
    font-weight: 900;
    text-shadow: 0 1px 2px #000;
}

.walk-charge-meter i:nth-of-type(1) { left: 28%; }
.walk-charge-meter i:nth-of-type(2) { left: 68%; }

.walk-difficulty {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin: 8px 0;
}

.walk-difficulty button {
    min-height: 48px;
    border: 2px solid rgba(12, 91, 96, .18);
    border-radius: 8px;
    background: #fff;
    color: #24545b;
    font: inherit;
}

.walk-difficulty button b,
.walk-difficulty button small { display: block; }
.walk-difficulty button b { font-size: 13px; }
.walk-difficulty button small { margin-top: 2px; font-size: 10px; }
.walk-difficulty button.active {
    border-color: #13a29a;
    background: #dcfaf5;
    color: #075f5c;
}
.walk-difficulty button:disabled { opacity: .72; }

html[data-ui-version="new"] body[data-screen="viking"] .hold-game-shell,
html[data-ui-version="new"] body[data-screen="hole-walk"] .hold-game-shell {
    padding-bottom: calc(86px + env(safe-area-inset-bottom));
}

@media (max-width: 900px) {
    body[data-screen="viking"] .topbar,
    body[data-screen="hole-walk"] .topbar { display: none; }
    body[data-screen="viking"] .main,
    body[data-screen="hole-walk"] .main { padding-top: 5px; }
}

@media (max-width: 430px) {
    .hold-game-shell { padding-inline: 4px; }
    .hold-game-stage {
        width: min(100%, calc(50dvh * .857));
        max-height: 50dvh;
    }
    .hold-game-message { margin-top: 9px; }
    .hold-game-actions { gap: 6px; }
}

@media (max-height: 720px) and (max-width: 900px) {
    .hold-game-stage {
        width: min(100%, calc(45dvh * .857));
        max-height: 45dvh;
    }
    .hold-game-message { min-height: 30px; margin-block: 7px 5px; padding-block: 5px; }
    .hold-game-start, .hold-game-main { min-height: 51px; }
}
