:root {
    --ink: #0f2a3d;
    --night: #123a52;
    --paper: #fdf6e3;
    --paper2: #fffaf0;
    --sand: #f0dcae;
    --gold: #ffd36b;
    --pink: #ff8a7a;
    --rose: #1f7fa8;
    --grass: #e6cc94;
    --mist: #a9dbe8;
    --mist2: #7fb4c6;
    --sub: #2f6f8a;
    --pix: "Press Start 2P", "Courier New", monospace;
    --txt: "VT323", "Courier New", monospace;
}

/* ---------- tema malam ---------- */
:root[data-theme="night"] {
    --ink: #071a28;
    --night: #0a2236;
    --paper: #d8ecf2;
    --paper2: #e8f6fa;
    --sand: #a9c9d4;
    --gold: #ffd86b;
    --rose: #2f9fc8;
    --grass: #2a4a5a;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
}

body {
    background: var(--night);
    background-image: radial-gradient(#1d5a78 1px, transparent 1px);
    background-size: 8px 8px;
    font-family: var(--pix);
    color: var(--paper);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}
input, textarea, select { -webkit-user-select: text; user-select: text; }

/* petunjuk beda untuk desktop & HP */
@media (pointer: coarse) { .only-desk { display: none !important; } }
@media (pointer: fine) { .only-touch { display: none !important; } }

/* ---------- layar penuh landscape ---------- */
.game {
    position: fixed;
    inset: 0;
    container-type: size;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}

.stage {
    --sw: min(100cqw, calc(100cqh * 16 / 9));
    position: relative;
    width: var(--sw);
    height: calc(var(--sw) * 9 / 16);
    container-type: size;
    overflow: hidden;
    background: var(--grass);
    box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--ink);
}

/* satuan ukuran: 1u = 1% tinggi stage, supaya semua proporsional */
.stage > * {
    --u: 1cqh;
    --f1: clamp(6px, calc(var(--u) * 2), 16px);
    --f2: clamp(8px, calc(var(--u) * 2.7), 22px);
    --f3: clamp(10px, calc(var(--u) * 3.6), 30px);
    --fb: clamp(15px, calc(var(--u) * 5), 40px);
}

#cv {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* ---------- HP portrait: minta diputar ke landscape ---------- */
.rotate-msg {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 300;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5cqw;
    padding: 8cqw;
    text-align: center;
    background: var(--night);
    color: var(--paper);
    font-size: clamp(10px, 3.8cqw, 18px);
    line-height: 1.8;
}
.rotate-msg p { margin: 0; }
.rotate-sub { font-size: clamp(8px, 2.8cqw, 13px); color: var(--mist); }
.rotate-phone {
    width: 14cqw;
    height: 24cqw;
    border: 1cqw solid var(--paper);
    border-radius: 2.4cqw;
    animation: rot 2.2s ease-in-out infinite;
}
@keyframes rot {
    0%, 20% { transform: rotate(0deg); }
    60%, 100% { transform: rotate(-90deg); }
}
@media (orientation: portrait) and (pointer: coarse) {
    .rotate-msg { display: flex; }
}

/* ---------- HUD ---------- */
.hud {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: calc(var(--u) * 2);
    padding: calc(var(--u) * 1) calc(var(--u) * 2);
    background: rgba(15, 42, 61, .9);
    border-bottom: 3px solid var(--paper);
    font-size: var(--f2);
    line-height: 1.4;
}
.hud-names { flex: 1; min-width: 0; }
.hud-star { color: var(--gold); white-space: nowrap; }

.hud-btn, .music-btn {
    flex: none;
    width: clamp(26px, calc(var(--u) * 6), 46px);
    height: clamp(26px, calc(var(--u) * 6), 46px);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(14px, calc(var(--u) * 3.4), 24px);
    color: var(--paper);
    background: var(--ink);
    border: 3px solid var(--paper);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.hud-btn[hidden] { display: none; }
.music-btn {
    color: var(--ink);
    background: radial-gradient(circle at center, var(--ink) 0 5px, var(--gold) 6px 100%);
    border-radius: 50%;
    animation: spin 3s linear infinite;
}
.music-btn span { display: block; transform: translate(0, -1px); color: var(--ink); text-shadow: 1px 1px 0 var(--pink); animation: spin 3s linear infinite reverse; }
.music-btn.paused { animation-play-state: paused; filter: grayscale(.9) brightness(.8); }
.music-btn.paused span { animation-play-state: paused; }
.hud-btn:focus-visible, .music-btn:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- start overlay ---------- */
.overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    padding: calc(var(--u) * 3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: calc(var(--u) * 1.8);
    text-align: center;
    background: rgba(15, 42, 61, .97);
    overflow-y: auto;
}
.overlay[hidden] { display: none; }
.ov-small { margin: 0; font-size: var(--f2); line-height: 1.6; color: var(--mist); }
.ov-hint { margin: 0; font-size: var(--f1); line-height: 1.9; color: var(--mist); }
.ov-guest {
    margin: 0;
    font-size: calc(var(--f3) * 1.3);
    line-height: 1.5;
    color: var(--gold);
    text-shadow: 3px 3px 0 var(--pink);
    word-break: break-word;
}
.ov-hint { margin: 0; font-size: var(--f1); line-height: 1.9; color: #c9bff0; }
.ov-credit { margin: 0; font-size: calc(var(--f1) * .9); line-height: 1.8; color: var(--mist2); }
.ov-credit a { color: var(--gold); text-decoration: none; }
.pick { display: flex; flex-direction: row; gap: calc(var(--u) * 3); width: min(100%, calc(var(--u) * 90)); }
.pick .btn { flex: 1; }

.load { width: min(100%, calc(var(--u) * 90)); }
.load[hidden] { display: none; }
.load-track { height: calc(var(--u) * 3); min-height: 10px; border: 3px solid var(--paper); background: var(--ink); }
.load-bar { width: 0; height: 100%; background: var(--gold); transition: width .2s steps(5); }
.load-text { margin: 6px 0 0; font-size: var(--f1); color: var(--mist); }

/* ---------- loading ganti tema ---------- */
.theme-load {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 50;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: calc(var(--u) * 2.5);
    background: rgba(6, 28, 44, .94);
    color: #fff4d6;
}
.theme-load.show { display: flex; }
.theme-text { margin: 0; font-size: var(--f2); }
.theme-track { width: min(60%, calc(var(--u) * 80)); border-color: #fff4d6; background: #0f2a3d; }
.theme-bar { width: 0; height: 100%; background: #ffcf4a; }
.theme-load.show .theme-bar { animation: themefill .75s steps(8) forwards; }
@keyframes themefill { to { width: 100%; } }

/* ---------- tombol ---------- */
.btn {
    display: inline-block;
    padding: calc(var(--u) * 2.2) calc(var(--u) * 3);
    font-family: var(--pix);
    font-size: var(--f2);
    line-height: 1.4;
    color: var(--ink);
    text-align: center;
    text-decoration: none;
    background: var(--gold);
    border: 3px solid var(--ink);
    box-shadow: 0 4px 0 var(--ink), inset -3px -3px 0 rgba(0, 0, 0, .18);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: #ffe07d; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn:focus-visible, .dpad button:focus-visible, .actions button:focus-visible, .radio input:focus-visible + span { outline: 3px solid var(--pink); outline-offset: 2px; }
.btn-ok { background: var(--pink); }
.btn-sm { padding: calc(var(--u) * 1.6) calc(var(--u) * 2.2); font-size: var(--f1); }
.btn-full { width: 100%; margin-top: 4px; }

/* ---------- dialog ---------- */
.dialog {
    position: absolute;
    left: 50%;
    top: 50%;
    translate: -50% -50%;
    z-index: 4;
    width: 76%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    padding: calc(var(--u) * 2.4) calc(var(--u) * 3);
    background: var(--paper);
    color: var(--ink);
    border: 4px solid var(--ink);
    box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--ink);
    animation: pop .15s steps(3);
}
.dialog[hidden] { display: none; }
.dialog-wide { width: 80%; }
.dialog-npc { width: 58%; top: auto; bottom: 4%; translate: -50% 0; }

.dlg-title { margin: 0 0 calc(var(--u) * 1.5); font-size: var(--f3); line-height: 1.5; color: var(--rose); }
.dlg-title-center { margin-top: calc(var(--u) * 2.5); text-align: center; }
.dlg-sub { margin: -4px 0 calc(var(--u) * 1.5); font-family: var(--txt); font-size: var(--fb); line-height: 1.1; color: var(--sub); }
.dlg-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-right: 6px;
    font-family: var(--txt);
    font-size: var(--fb);
    line-height: 1.15;
}
.dlg-body::-webkit-scrollbar { width: 8px; }
.dlg-body::-webkit-scrollbar-thumb { background: var(--ink); }
.dlg-body::-webkit-scrollbar-track { background: var(--sand); }
.dlg-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: calc(var(--u) * 1.6); padding-bottom: 4px; }
@keyframes pop { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }

/* keyboard HP kebuka: dialog naik ke area yang kelihatan */
.stage[data-kb] .dialog {
    top: calc(var(--kbTop, 0px) + 6px);
    bottom: auto;
    translate: -50% 0;
    max-height: calc(var(--kbH, 100%) - 12px);
    padding-top: calc(var(--u) * 1.4);
    padding-bottom: calc(var(--u) * 1.2);
}
.stage[data-kb] .dlg-sub { display: none; }
.stage[data-kb] .dlg-title { margin-bottom: calc(var(--u) * .8); }
.stage[data-kb] .dlg-actions { margin-top: 4px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--u) * 2.5); align-items: start; }
.text { margin: 0 0 calc(var(--u) * 1.6); }
.npc-text { min-height: calc(var(--u) * 12); font-size: calc(var(--fb) * 1.1); cursor: pointer; }

/* quote + pasangan */
.quote-text { margin: 0 0 calc(var(--u) * 1.2); text-align: center; font-size: calc(var(--fb) * 1.15); line-height: 1.1; }
.quote-by { margin: 0; text-align: right; color: var(--rose); }

.couple { display: grid; grid-template-columns: 1fr auto 1fr; gap: calc(var(--u) * 2); align-items: center; }
.person { text-align: center; }
.person-photo {
    display: block;
    width: calc(var(--u) * 30);
    max-width: 90%;
    aspect-ratio: 3 / 4;
    margin: 0 auto calc(var(--u) * 1.6);
    object-fit: cover;
    border: 4px solid var(--ink);
    box-shadow: 5px 5px 0 var(--pink);
    background: var(--sand);
}
.person-name { margin: 0 0 calc(var(--u) * 1.2); font-size: calc(var(--f3) * 1.2); line-height: 1.5; }
.person-parents { margin: 0; font-size: calc(var(--fb) * 1.2); line-height: 1.1; }
.person-amp { text-align: center; font-size: calc(var(--fb) * 2); color: var(--rose); }

/* save the date + countdown */
.date-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: calc(var(--u) * 1);
    margin-bottom: calc(var(--u) * 1.6);
    padding: calc(var(--u) * 1.8) calc(var(--u) * 2);
    border: 3px solid var(--ink);
    background: var(--paper2);
}
.date-info { flex: 1; min-width: 0; text-align: left; }
.date-name { font-family: var(--pix); font-size: var(--f2); line-height: 1.5; color: var(--rose); }
.date-val { font-size: calc(var(--fb) * 1.1); }
.count-title { margin: calc(var(--u) * 2) 0 calc(var(--u) * 1); text-align: center; font-family: var(--pix); font-size: var(--f1); color: var(--rose); }
.count { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; max-width: calc(var(--u) * 95); margin: 0 auto calc(var(--u) * 1.6); }
.count-box { padding: calc(var(--u) * 1) 2px; text-align: center; background: var(--ink); color: var(--paper); }
.count-num { display: block; font-family: var(--pix); font-size: var(--f3); color: var(--gold); }
.count-label { display: block; margin-top: 3px; font-size: var(--fb); }
.date-time { font-size: calc(var(--fb) * 1.1); font-weight: bold; }
.date-line .btn { margin-top: calc(var(--u) * .6); }

/* lokasi (atas-bawah) */
.event-label { margin-bottom: calc(var(--u) * 1); font-family: var(--pix); font-size: var(--f2); line-height: 1.5; color: var(--rose); }
.venue-card {
    margin-bottom: calc(var(--u) * 2.5);
    padding: calc(var(--u) * 2);
    text-align: center;
    border: 3px solid var(--ink);
    background: var(--paper2);
}
.venue-photo {
    display: block;
    width: calc(var(--u) * 64);
    max-width: 100%;
    aspect-ratio: 16 / 10;
    margin: 0 auto calc(var(--u) * 1.6);
    object-fit: cover;
    border: 3px solid var(--ink);
    background: var(--sand);
}
.venue-name { margin-bottom: calc(var(--u) * 1); font-family: var(--pix); font-size: var(--f2); line-height: 1.7; }
.venue-address { margin: 0 0 calc(var(--u) * 1.6); }

/* gift */
.gift-box { display: none; margin-top: calc(var(--u) * 2); padding: calc(var(--u) * 2); text-align: center; border: 3px solid var(--ink); background: var(--paper2); }
.gift-box.show { display: block; }
.gift-bank { font-family: var(--pix); font-size: var(--f2); color: var(--rose); }
.gift-number { margin: 6px 0; font-family: var(--pix); font-size: var(--f3); word-break: break-all; -webkit-user-select: text; user-select: text; }
.gift-holder { margin-bottom: calc(var(--u) * 1.6); }
.gift-actions { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 calc(var(--u) * 2.5); }
.field { margin-bottom: calc(var(--u) * 1.6); }
.field-full { grid-column: 1 / -1; }
.label { display: block; margin-bottom: 5px; font-family: var(--pix); font-size: var(--f1); line-height: 1.5; }
.input {
    display: block;
    width: 100%;
    padding: calc(var(--u) * 1.2) calc(var(--u) * 1.6);
    font-family: var(--txt);
    font-size: max(16px, var(--fb));
    line-height: 1.1;
    color: #1b1530;
    background: #fff;
    border: 3px solid var(--ink);
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
}
select.input {
    background-image: linear-gradient(45deg, transparent 50%, #1b1530 50%), linear-gradient(135deg, #1b1530 50%, transparent 50%);
    background-position: calc(100% - 16px) 55%, calc(100% - 11px) 55%;
    background-size: 5px 5px;
    background-repeat: no-repeat;
    padding-right: 30px;
}
textarea.input { resize: none; }
.input:focus { outline: 3px solid var(--pink); outline-offset: 0; }

.radios { display: flex; gap: 8px; }
.radio { position: relative; flex: 1; cursor: pointer; }
.radio input { position: absolute; opacity: 0; pointer-events: none; }
.radio span {
    display: block;
    padding: calc(var(--u) * 1.4);
    text-align: center;
    font-family: var(--pix);
    font-size: var(--f2);
    color: #1b1530;
    background: #fff;
    border: 3px solid var(--ink);
}
.radio input:checked + span { background: var(--pink); }

.rsvp-feedback { display: none; margin: calc(var(--u) * 1.6) 0 0; padding: 8px; text-align: center; border: 3px solid var(--ink); background: #d9f5cf; color: #1b1530; }
.rsvp-feedback.show { display: block; }
.rsvp-feedback.is-error { background: #ffd0d0; }

/* wishes */
.wish-list { max-height: calc(var(--u) * 50); overflow-y: auto; -webkit-overflow-scrolling: touch; padding-right: 4px; }
.wish-item { margin-bottom: 8px; padding: calc(var(--u) * 1.4); background: var(--paper2); border: 3px solid var(--ink); }
.wish-item-name { margin-bottom: 4px; font-family: var(--pix); font-size: var(--f1); line-height: 1.5; color: var(--rose); word-break: break-word; }
.wish-item-text { word-break: break-word; white-space: pre-line; }
.wish-empty { margin: 0; text-align: center; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* gallery */
.mem-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: calc(var(--u) * 1.2); }
.memories-portrait-item { aspect-ratio: 3 / 4; cursor: zoom-in; overflow: hidden; border: 3px solid var(--ink); background: var(--sand); }
.memories-portrait-item img { display: block; width: 100%; height: 100%; object-fit: cover; }

.end-names { margin: 0 0 calc(var(--u) * 1.6); text-align: center; font-family: var(--pix); font-size: var(--f3); color: var(--rose); }

/* ---------- kontrol HP (arrow + A + X) ---------- */
.dpad, .actions { display: none; position: absolute; z-index: 6; bottom: calc(var(--u) * 3.5); --b: clamp(38px, calc(var(--u) * 13), 66px); }
.dpad {
    left: calc(var(--u) * 3.5);
    grid-template-columns: repeat(3, var(--b));
    grid-template-rows: repeat(3, var(--b));
    gap: 3px;
    touch-action: none;
}
.actions { right: calc(var(--u) * 3.5); align-items: flex-end; gap: calc(var(--u) * 2.5); touch-action: none; }
.dpad button, .actions button {
    font-family: var(--pix);
    font-size: clamp(14px, calc(var(--u) * 4), 26px);
    color: #fff4d6;
    background: rgba(27, 21, 48, .78);
    border: 3px solid #fff4d6;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
}
.dpad button.on { background: var(--pink); }
.d-up { grid-area: 1 / 2; }
.d-left { grid-area: 2 / 1; }
.d-right { grid-area: 2 / 3; }
.d-down { grid-area: 3 / 2; }
.actions button { width: calc(var(--b) * 1.1); height: calc(var(--b) * 1.1); border-radius: 50%; }
.d-a { background: rgba(31, 127, 168, .9) !important; }
.d-x { background: rgba(255, 138, 122, .9) !important; color: #0f2a3d !important; }

@media (pointer: coarse) {
    .stage.playing .dpad { display: grid; }
    .stage.playing .actions { display: flex; }
}
.stage[data-open] .dpad { visibility: hidden; pointer-events: none; }
.stage[data-open]:not([data-open="npc"]) .d-a { display: none; }
.stage:not([data-open]) .d-x { opacity: .35; }

/* ---------- lightbox & toast ---------- */
.lightbox {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(4, 22, 36, .94);
    z-index: 100;
}
.lightbox.open { display: flex; }
.lightbox-img { max-width: 80%; max-height: 90%; border: 4px solid var(--paper); }
.lightbox-btn {
    position: absolute;
    width: clamp(38px, 9cqh, 60px);
    height: clamp(38px, 9cqh, 60px);
    font-size: clamp(18px, 5cqh, 30px);
    line-height: 1;
    color: #fff4d6;
    background: #0f2a3d;
    border: 3px solid #fff4d6;
    cursor: pointer;
}
.lightbox-close { top: 12px; right: 12px; }
.lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); }

.toast {
    position: absolute;
    left: 50%;
    bottom: 5cqh;
    max-width: 80%;
    padding: 10px 14px;
    transform: translate(-50%, 20px);
    opacity: 0;
    pointer-events: none;
    font-family: var(--pix);
    font-size: clamp(8px, 2.4cqh, 14px);
    line-height: 1.6;
    text-align: center;
    color: #1b1530;
    background: #ffcf4a;
    border: 3px solid #1b1530;
    transition: opacity .2s, transform .2s;
    z-index: 120;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
    .dialog { animation: none; }
    .music-btn, .music-btn span { animation: none; }
    .rotate-phone { animation: none; }
}
/* ---------- wedding registry (di dalam Gift) ---------- */
.gift-sub { margin: calc(var(--u) * 2.4) 0 calc(var(--u) * 1.4); font-family: var(--pix); font-size: var(--f2); line-height: 1.5; color: var(--rose); text-align: center; }
.gift-sub:first-child { margin-top: 0; }
.reg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(var(--u) * 24), 1fr)); gap: calc(var(--u) * 1.6); }
.reg-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(var(--u) * .9);
    padding: calc(var(--u) * 1.4);
    text-align: center;
    border: 3px solid var(--ink);
    background: var(--paper2);
    box-shadow: 4px 4px 0 rgba(27, 21, 48, .18);
}
.reg-photo { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; display: grid; place-items: center; border: 3px solid var(--ink); background: var(--sand); }
.reg-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.reg-noimg { font-size: calc(var(--fb) * 1.8); }
.reg-name { font-size: calc(var(--fb) * .85); line-height: 1.05; word-break: break-word; }
.reg-link { font-size: calc(var(--fb) * .75); color: var(--rose); text-decoration: underline; }
.reg-card .btn { margin-top: auto; width: 100%; }
.reg-status { margin-top: auto; width: 100%; padding: calc(var(--u) * 1.2) 4px; font-family: var(--pix); font-size: var(--f1); color: var(--paper); background: #4a7a8e; border: 3px solid var(--ink); }
.reg-card.is-reserved .reg-photo { filter: grayscale(.85); opacity: .7; }
.reg-card.is-reserved .reg-name { color: #6a5f8a; }

.reg-form { margin-top: calc(var(--u) * 2); padding: calc(var(--u) * 1.8); border: 3px dashed var(--rose); background: #fff; }
.reg-form[hidden] { display: none; }
.reg-form-title { margin: 0 0 calc(var(--u) * 1.4); }
.reg-form-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

/* map & karakter sekarang digambar 2x: tetap tajam saat diperbesar */
#cv { image-rendering: pixelated; }
