:root{color-scheme:dark;font-family:system-ui,sans-serif;--bg: #101b13;--card: #1d2a1b;--surface: #172216;--surface-soft: #28351e;--line: #5a4a2f;--line-soft: #75613a;--text: #f3e6c8;--muted: #c9b78d;--primary: #8a5a2f;--danger: #b85c4a;--good: #87a85f;--warning: #c69a3c;--coin: #c69a3c;--wood: #6f4828;--forest: #14351f;--dungeon-move-duration: .9s}*{box-sizing:border-box}html{overflow-x:hidden;background:var(--bg)}body{margin:0;min-height:100vh;background:var(--bg);color:var(--text);display:grid;place-items:start center;padding:calc(24px + env(safe-area-inset-top,0px)) env(safe-area-inset-right,0px) calc(24px + env(safe-area-inset-bottom,0px)) env(safe-area-inset-left,0px)}.page{width:min(1120px,calc(100% - 24px))}.topbar,.split,.modalHeader{display:flex;justify-content:space-between;gap:16px;align-items:start}.compactHeader{align-items:center}.topActions{display:flex;gap:10px;align-items:center}.tabs{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:10px;width:100%;margin:16px 0}.buttonRow,.rowForm{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.buttonRow.compact{margin:10px 0 0}.rowForm{display:grid;grid-template-columns:1fr auto}.grid{display:grid;gap:16px}.twoColumns{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr)}.tabPanel{display:grid;gap:16px}.tabs.balancedGrid--active{grid-template-columns:minmax(0,1fr);grid-auto-rows:1fr}.balancedGridRow{display:grid;grid-template-columns:repeat(var(--balanced-grid-row-columns),minmax(0,1fr));align-items:stretch;gap:var(--balanced-grid-gap, 10px);min-width:0;height:100%}.balancedGridRow>button{width:100%;min-width:0;height:100%}@media(max-width:800px){body{padding:calc(8px + env(safe-area-inset-top,0px)) env(safe-area-inset-right,0px) calc(8px + env(safe-area-inset-bottom,0px)) env(safe-area-inset-left,0px)}.page>.card{background:var(--bg)}.page{width:calc(100% - 10px)}.twoColumns{grid-template-columns:1fr}.topbar{flex-direction:column;gap:8px}.topActions{width:100%;justify-content:flex-start}#logoutButton{margin-left:auto}.tabs{gap:6px;--balanced-grid-gap: 6px}.tabs button{padding:10px 6px}.modalHeader{gap:8px}.compactHeader{flex-direction:row;align-items:center}.rowForm{grid-template-columns:1fr}}@media(max-width:560px){h1{font-size:1.45rem}h2{font-size:1.15rem}h3{font-size:1rem}p,.meta{font-size:.88rem}input,select,button{padding:10px}}.card,.panel,.subPanel,.modal,.floatingPanel{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:20px;box-shadow:0 20px 60px #0006}.panel,.subPanel{box-shadow:none}.hidden{display:none!important}h1,h2,h3,h4{margin:0 0 10px}p{color:var(--muted);margin:0 0 14px}form{display:grid;gap:12px}input,select,button{font:inherit;border-radius:12px;border:1px solid var(--line-soft);padding:12px}input,select{background:var(--surface);color:var(--text);min-width:0}button{background:var(--primary);color:#fff;border:0;cursor:pointer;font-weight:700;touch-action:manipulation}button:hover{filter:brightness(1.08)}button:disabled{cursor:not-allowed;opacity:.55;filter:none}button.secondary{background:#4a3a24}button.danger{background:#b91c1c}button.active{outline:2px solid var(--warning)}.hint{margin-top:14px;font-size:.9rem}.error{color:var(--danger);margin-top:14px}.list{list-style:none;padding:0;margin:0;display:grid;gap:10px}.list li,.offerCard,.messageBubble,.itemChip,.actionCard,.selectionBox,.tradeReviewBox{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:12px}.list li{display:flex;justify-content:space-between;gap:12px;align-items:center;cursor:pointer}.list li:hover{border-color:var(--player-color, var(--warning))}.name{font-weight:800;overflow-wrap:anywhere}.meta{color:var(--muted);font-size:.92rem}.online{color:var(--good)}.offline{color:var(--danger)}.badge{font-size:.8rem;border:1px solid var(--line);border-radius:999px;padding:4px 8px;color:var(--muted);white-space:nowrap}.damage-type-badge{display:inline-flex;align-items:center;justify-content:center;min-height:22px;padding:2px 7px;border:1px solid var(--damage-type-border);border-radius:999px;color:var(--damage-type-badge-text);background:var(--damage-type-badge-bg);font-size:.76rem;font-weight:900;white-space:nowrap}.damage-type--physical{--damage-type-bg: linear-gradient(180deg, #6f7780, #3f464d);--damage-type-bg-selected: linear-gradient(180deg, #87919b, #555e68);--damage-type-border: #a9b0b8;--damage-type-border-selected: #d4d9de;--damage-type-text: #f8fafc;--damage-type-badge-bg: #d9dee4;--damage-type-badge-text: #27313a}.damage-type--fire{--damage-type-bg: linear-gradient(180deg, #d97724, #8f3f12);--damage-type-bg-selected: linear-gradient(180deg, #f59e3f, #b85319);--damage-type-border: #ffb05d;--damage-type-border-selected: #ffd19a;--damage-type-text: #fff7ed;--damage-type-badge-bg: #ffe0bd;--damage-type-badge-text: #7c2d12}.damage-type--water{--damage-type-bg: linear-gradient(180deg, #2f80d1, #19518f);--damage-type-bg-selected: linear-gradient(180deg, #55a4f0, #2567ad);--damage-type-border: #93c5fd;--damage-type-border-selected: #bfdbfe;--damage-type-text: #eff6ff;--damage-type-badge-bg: #d8ecff;--damage-type-badge-text: #17446f}.damage-type--magic{--damage-type-bg: linear-gradient(180deg, #8b5cf6, #5733a9);--damage-type-bg-selected: linear-gradient(180deg, #a98cff, #6f45d0);--damage-type-border: #c4b5fd;--damage-type-border-selected: #ddd6fe;--damage-type-text: #faf5ff;--damage-type-badge-bg: #eadcff;--damage-type-badge-text: #4c1d95}.damage-type--lightning{--damage-type-bg: linear-gradient(180deg, #facc15, #a16207);--damage-type-bg-selected: linear-gradient(180deg, #fde047, #ca8a04);--damage-type-border: #fef08a;--damage-type-border-selected: #fef9c3;--damage-type-text: #1f1300;--damage-type-badge-bg: #fff4a8;--damage-type-badge-text: #604200}.damage-type--ice{--damage-type-bg: linear-gradient(180deg, #5eead4, #1f8fa8);--damage-type-bg-selected: linear-gradient(180deg, #99f6e4, #2bb7cc);--damage-type-border: #a5f3fc;--damage-type-border-selected: #cffafe;--damage-type-text: #062a32;--damage-type-badge-bg: #d5fbff;--damage-type-badge-text: #155e75}.damage-type--poison{--damage-type-bg: linear-gradient(180deg, #bef264, #6b8e23);--damage-type-bg-selected: linear-gradient(180deg, #d9f99d, #84a931);--damage-type-border: #ecfccb;--damage-type-border-selected: #f7fee7;--damage-type-text: #17210a;--damage-type-badge-bg: #eaffbd;--damage-type-badge-text: #365314}.damage-type--blood{--damage-type-bg: linear-gradient(180deg, #7f1d1d, #450a0a);--damage-type-bg-selected: linear-gradient(180deg, #991b1b, #5f1212);--damage-type-border: #b91c1c;--damage-type-border-selected: #ef4444;--damage-type-text: #fee2e2;--damage-type-badge-bg: #ffd4d4;--damage-type-badge-text: #7f1d1d}.damage-type--nature{--damage-type-bg: linear-gradient(180deg, #166534, #052e16);--damage-type-bg-selected: linear-gradient(180deg, #15803d, #0f4a25);--damage-type-border: #4ade80;--damage-type-border-selected: #86efac;--damage-type-text: #dcfce7;--damage-type-badge-bg: #c9f7d7;--damage-type-badge-text: #14532d}.damage-type--love{--damage-type-bg: linear-gradient(180deg, #ec4899, #9d174d);--damage-type-bg-selected: linear-gradient(180deg, #f472b6, #be185d);--damage-type-border: #f9a8d4;--damage-type-border-selected: #fbcfe8;--damage-type-text: #fff1f7;--damage-type-badge-bg: #ffd5eb;--damage-type-badge-text: #831843}.damage-type--death{--damage-type-bg: linear-gradient(180deg, #27272a, #020617);--damage-type-bg-selected: linear-gradient(180deg, #3f3f46, #111827);--damage-type-border: #71717a;--damage-type-border-selected: #a1a1aa;--damage-type-text: #f4f4f5;--damage-type-badge-bg: #d4d4d8;--damage-type-badge-text: #18181b}.damage-type--heal{--damage-type-bg: linear-gradient(180deg, #86efac, #22c55e);--damage-type-bg-selected: linear-gradient(180deg, #bbf7d0, #4ade80);--damage-type-border: #bbf7d0;--damage-type-border-selected: #dcfce7;--damage-type-text: #052e16;--damage-type-badge-bg: #dcfce7;--damage-type-badge-text: #14532d}.itemGrid,.actionGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}.compactGrid{grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}.itemChip{cursor:pointer;text-align:left;color:var(--text);background:var(--surface);min-height:44px}.itemChip.disabled{opacity:.45;cursor:default}.actionCard{text-align:left}.game-action,.game-surface,.mini-game,.css-graphic,button{-webkit-user-select:none;user-select:none;-webkit-user-drag:none}.game-action *,.game-surface *,.mini-game *,.css-graphic *,button *{-webkit-user-drag:none}.game-surface,.mini-game{touch-action:manipulation}.modalBackdrop{position:fixed;inset:0;background:#0009;z-index:40;padding:12px;display:grid;place-items:center}.modal{width:min(900px,100%);max-height:calc(100vh - 24px);overflow:auto}.modal.narrow{width:min(620px,100%)}.modal.tiny{width:min(380px,100%)}.modal.wide{width:min(980px,100%)}#amountPopup,#amountPopup.amountPopup--popover{padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}#amountPopup.amountPopup--quick{z-index:220}#amountPopup .modal.tiny{position:absolute;display:grid;grid-template-rows:minmax(0,auto) minmax(0,1fr) auto auto;max-width:var(--amount-popup-width, calc(100vw - 24px) );max-height:var(--amount-popup-height, calc(100dvh - 24px) );min-width:0;border-radius:14px;overscroll-behavior:contain}#amountPopupTitle{overflow:hidden;overflow-wrap:anywhere}#amountPopupHint{min-height:0;overflow:auto;overscroll-behavior:contain}#amountPopup #amountInput{font-size:16px;min-height:44px}#amountPopup .buttonRow{flex-wrap:nowrap;margin:12px 0 0}#amountPopup .buttonRow button{min-height:44px;min-width:0}#amountPopup.amountPopup--popover{display:block;background:transparent;place-items:initial}#amountPopup.amountPopup--popover .modal.tiny{position:absolute;width:max-content;min-width:min(220px,var(--amount-popup-width, calc(100vw - 24px) ));max-width:min(320px,var(--amount-popup-width, calc(100vw - 24px) ));max-height:var(--amount-popup-height, calc(100dvh - 24px) );padding:12px;border-radius:14px;overflow:auto}#amountPopup.amountPopup--popover h2{margin-bottom:6px}#amountPopup.amountPopup--popover p{margin-bottom:10px}#amountPopup.amountPopup--popover #amountInput{width:7rem;padding:10px}#amountPopup.amountPopup--popover .buttonRow{gap:8px;margin:12px 0 0}#amountPopup.amountPopup--popover .buttonRow button{padding:10px 12px}.amountStepper{display:grid;grid-template-columns:1fr 1.5fr 1fr;gap:6px}.amountStepper button{min-width:44px;min-height:44px;padding:8px;touch-action:manipulation}.amountStepperValue{display:grid;place-items:center}.amountStepperValue strong{font-size:1.3rem}.amountStepperValue small{font-size:.65rem}.closeModalButton{display:inline-grid;place-items:center;flex:0 0 auto;width:42px;height:42px;min-width:42px;padding:0;border-radius:999px;font-size:1.35rem;line-height:1}.modalHeader>div{min-width:0}@media(max-width:800px){.card,.panel,.subPanel,.modal,.floatingPanel{border-radius:14px;padding:12px}.modalHeader{align-items:flex-start;flex-direction:row}.modalHeader>div{flex:1 1 auto}.closeModalButton{align-self:flex-start}}@media(max-width:560px){.modalBackdrop{padding:0;align-items:stretch}.modal{width:100%;max-height:100vh;border-radius:0}.modal.wide{height:100vh;display:grid;grid-template-rows:auto 1fr auto}#amountPopup.amountPopup--popover .modal.tiny{width:max-content;max-width:var(--amount-popup-width, calc(100vw - 24px) );max-height:var(--amount-popup-height, calc(100dvh - 24px) );border-radius:14px}.compactGrid{grid-template-columns:1fr;gap:6px}.list li{align-items:flex-start}.badge{padding:3px 6px}}#loginView{display:none}#loginView.loginView--ready{display:block}.accountRecoveryNotice{margin:16px 0;padding:16px;border:1px solid #ad883b;border-radius:12px;background:#302819;color:#f8e6b7}.accountRecoveryNotice[hidden]{display:none}#gameView:has(#profileTab:not(.hidden))>#accountRecoveryNotice{display:none}.accountRecoveryNotice p{margin:6px 0 10px}.accountRecoveryNotice a{color:#f8e6b7;font-weight:700;text-decoration:underline}.gameVersionBadge{position:fixed;top:6px;left:8px;z-index:100;padding:4px 5px;border-radius:6px;background:#0003;color:var(--muted);font-size:.68rem;line-height:1;text-decoration:none;opacity:.46}.gameVersionBadge:hover,.gameVersionBadge:focus-visible{opacity:.85;color:var(--text)}.versionHistoryPage{padding-top:10px;padding-bottom:18px}.versionHistoryHeader,.versionEntryHeader{display:flex;gap:14px;justify-content:space-between;align-items:flex-start}.versionHistoryHomeLink{flex:0 0 auto;border:1px solid var(--line-soft);border-radius:10px;padding:9px 12px;color:var(--text);background:var(--surface);font-weight:700;text-decoration:none}.versionHistoryHomeLink:hover,.versionHistoryHomeLink:focus-visible{border-color:var(--warning)}.versionHistoryList{display:grid;gap:12px;margin-top:16px}.versionEntry{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:14px}.versionNumber{margin:0;font-size:1.05rem}.versionCurrentLabel{display:inline-block;border:1px solid var(--line-soft);border-radius:999px;padding:2px 7px;color:var(--good);font-size:.72rem;font-weight:700;vertical-align:middle}.versionDate{margin:0;color:var(--muted);font-size:.84rem;white-space:nowrap}.versionCategory{margin-top:12px}.versionCategoryTitle{margin:0 0 7px;color:var(--muted);font-size:.86rem}.versionChangeList{display:grid;gap:7px;margin:0;padding-left:20px;color:var(--text)}.versionChangeList li::marker{color:var(--warning)}.versionChangeText{overflow-wrap:anywhere}.versionSmallMarker{display:inline-block;margin-left:4px;color:var(--muted);font-size:.72rem;font-weight:700;font-variant-numeric:tabular-nums;opacity:.72;white-space:nowrap}@media(max-width:560px){.gameVersionBadge{top:4px;left:5px;font-size:.62rem;opacity:.42}.versionHistoryHeader,.versionEntryHeader{display:grid;gap:8px}.versionHistoryHomeLink{justify-self:start}}
