:root{--footer-h:76px;--of-bg:#091326;--of-panel:#111f37;--of-line:#30415e;--of-gold:#f4c75d;--of-text:#edf3ff;--of-muted:#a7b5cc}
[hidden]{display:none!important}
.of-footer,.of-footer *{box-sizing:border-box}
.of-footer{position:fixed;inset:auto 0 0;z-index:15000;display:grid;grid-template-columns:max-content minmax(0,1fr) max-content;align-items:center;gap:14px;min-height:72px;padding:10px max(16px,env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));background:var(--of-bg);border-top:1px solid #425170;box-shadow:0 -8px 25px #0003;color:var(--of-text);font:14px/1.45 'Segoe UI',Arial,sans-serif}
.of-nav,.of-wallet,.of-game-tools{display:flex;align-items:center;gap:7px;min-width:0}
.of-game-tools{justify-content:center}.of-wallet{justify-content:flex-end}
.of-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex-shrink:0;min-height:42px;padding:0 11px;border:1px solid var(--of-line);border-radius:10px;background:#17243b;color:var(--of-text);font:600 13px/1.2 'Segoe UI',Arial,sans-serif;white-space:nowrap;cursor:pointer;touch-action:manipulation;text-decoration:none}
.of-button:hover,.of-button[aria-expanded=true]{background:#233650;border-color:#7286a6}
.of-button:focus-visible,.of-panel :focus-visible{outline:2px solid var(--of-gold);outline-offset:3px}
.of-games-button,.of-new{color:var(--of-gold)}.of-energy{border-color:#775036;color:#ffd5a0}.of-coins{border-color:#726036;color:#ffe4a2}
.of-icon{display:block!important;width:28px!important;height:28px!important;min-width:28px;object-fit:contain;flex:none}
.of-profile>span:first-child{font-size:23px;line-height:1}
.of-brand{font-size:16px;font-weight:800;letter-spacing:.1em;color:var(--of-gold);text-decoration:none;white-space:nowrap;text-align:center}.of-brand small{display:block;font-size:10px;letter-spacing:.06em;color:var(--of-muted);font-weight:500}
.of-footer .paticka-stred{display:block;min-width:0;text-align:center;margin:0;padding:0;position:static;width:auto;color:var(--of-text)}
.of-footer .stat-row{display:flex;align-items:center;justify-content:center;gap:12px;white-space:nowrap}
.of-footer .stat-item{display:flex;flex-direction:column;align-items:center;gap:1px;min-width:42px}
.of-footer .stat-label{font-size:9px;letter-spacing:.04em;text-transform:uppercase;color:var(--of-muted);line-height:1.3;font-weight:500}
.of-footer .stat-value{font-size:14px;line-height:1.3;color:var(--of-text);font-weight:700;font-variant-numeric:tabular-nums}
.of-footer .stat-sep{height:22px;width:1px;background:var(--of-line)}
.of-panel{position:fixed;z-index:15002;width:390px;max-width:calc(100vw - 16px);max-height:calc(100dvh - var(--footer-h) - 22px);overflow:auto;overscroll-behavior:contain;padding:21px;background:var(--of-panel);border:1px solid #475b7b;border-radius:16px;box-shadow:0 15px 60px #0009;color:var(--of-text);text-align:left;line-height:1.55}
.of-panel h2{display:flex;align-items:center;gap:9px;margin:0 0 15px;font-size:19px;color:var(--of-gold);line-height:1.3;letter-spacing:0}
.of-panel h3{font-size:14px;margin:18px 0 5px;color:#fff}.of-panel p{margin:8px 0 12px;font-size:14px;white-space:pre-line}.of-panel a{color:#dce9ff}
.of-panel-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.of-eyebrow,.of-local-label{font-size:9px;letter-spacing:.07em;color:var(--of-muted);font-weight:600}
.of-menu-row{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #ffffff12;text-decoration:none;border-radius:0;min-height:45px}
.of-menu-row>span{flex:1;min-width:0;font-size:14px;font-weight:600}.of-menu-row small{font-size:10px;color:var(--of-muted);white-space:nowrap}.of-menu-row strong{font-size:12px;color:var(--of-gold);min-width:40px;text-align:right;white-space:nowrap}
.of-menu-row:hover>span,.of-menu-row[aria-current=page]>span{color:var(--of-gold)}.of-menu-row[aria-current=page]>span::before{content:'• ';color:var(--of-gold)}
.of-total{display:flex;justify-content:space-between;align-items:center;margin-top:16px;padding-top:12px;border-top:1px solid #58627a;font-size:13px}.of-total strong{font-size:18px;color:var(--of-gold)}
.of-panel .of-note{font-size:11px;color:var(--of-muted);line-height:1.6}.of-highlight{color:#ffd5a0;font-variant-numeric:tabular-nums}
.of-primary,.result-ok{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:10px 16px;border:1px solid #bba053;border-radius:9px;background:#f4c75d;color:#1b2031;font:700 14px/1.3 'Segoe UI',Arial,sans-serif;text-decoration:none;cursor:pointer}
.of-primary:disabled{opacity:.5;cursor:default}.of-panel .of-action-link{color:#172039}.of-link-button{background:transparent;color:#cbdfff;border:1px solid var(--of-line);border-radius:8px;padding:8px 10px;font:600 12px 'Segoe UI',Arial;cursor:pointer}
.of-mobile-links{display:none}.of-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px}.of-summary>div{border:1px solid var(--of-line);border-radius:10px;padding:12px;background:#0b172b}.of-summary small{display:block;font-size:11px;color:var(--of-muted)}.of-summary strong{display:block;margin-top:4px;font-size:21px;color:var(--of-gold)}
.of-personal-row{display:flex;justify-content:space-between;gap:12px;padding:7px 0;font-size:12px;border-bottom:1px solid #ffffff0d}.of-personal-row>span:last-child{color:#c2d1e8;font-variant-numeric:tabular-nums}
.of-backup-actions{display:flex;gap:8px;margin:17px 0}.of-test-option{display:block;border-top:1px solid var(--of-line);padding:15px 0;font-size:12px;cursor:pointer}.of-test-option small{display:block;color:var(--of-muted);font-size:10px;margin:5px 0 0 22px}.of-danger{border:0;background:transparent;color:#ffb5b5;font:12px 'Segoe UI',Arial;text-decoration:underline;cursor:pointer;padding:5px 0}
.of-test-badge{position:absolute;right:12px;bottom:calc(100% + 6px);background:#f4c75d;color:#172039;padding:4px 9px;border-radius:7px;font-size:10px;pointer-events:none}
#settings-popup>button,#settings-popup .settings-button,#settings-popup .settings-link{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;border:0;border-bottom:1px solid var(--of-line);padding:12px 2px;border-radius:0;background:transparent;color:var(--of-text);font:14px 'Segoe UI',Arial;cursor:pointer}
#settings-popup button:hover{color:var(--of-gold)}#settings-popup button.mode-active{color:var(--of-gold)}#settings-popup select{background:#142139;color:white;border:1px solid var(--of-line);padding:7px;border-radius:6px}
.osli-dialog{background:#101e35;color:#edf3ff;border:1px solid #657491;border-radius:16px;padding:26px;width:min(480px,calc(100vw - 24px));max-height:calc(100dvh - 30px);overflow:auto;font:15px/1.6 'Segoe UI',Arial}
.osli-dialog::backdrop{background:#000a;backdrop-filter:blur(3px)}.osli-dialog h2{color:var(--of-gold);font-size:22px}.osli-dialog form{margin-top:20px;text-align:right}.of-result-image{display:block;float:none;object-fit:contain;width:min(240px,100%);height:240px;margin:0 auto 12px}
#game-toast{position:fixed;z-index:30000;bottom:calc(var(--footer-h) + 14px);left:50%;transform:translate(-50%,10px);opacity:0;pointer-events:none;max-width:calc(100vw - 24px);width:max-content;padding:12px 18px;border:1px solid #596e92;border-radius:10px;background:#102442;color:#eef5ff;box-shadow:0 6px 20px #0008;font:14px/1.4 'Segoe UI',Arial;transition:opacity .15s,transform .15s}
#game-toast.visible{opacity:1;transform:translate(-50%,0)}
@media(max-width:1200px){.of-footer{gap:8px;padding-left:10px;padding-right:10px}.of-button{padding:0 9px}.of-profile-label{display:none}.of-footer .stat-row{gap:8px}.of-secondary{font-size:12px}.of-footer .stat-value{font-size:13px}}
@media(max-width:1000px){.of-footer{grid-template-columns:1fr 1fr;gap:7px;padding-top:7px;padding-bottom:calc(7px + env(safe-area-inset-bottom))}.of-game-tools{grid-row:1;grid-column:1 / -1;min-height:34px}.of-game-tools .of-button{min-height:30px;font-size:16px;padding:0 10px}.of-nav{grid-row:2;grid-column:1}.of-wallet{grid-row:2;grid-column:2}.of-footer .stat-row{gap:18px}.of-brand small{display:none}.of-brand{font-size:12px}}
@media(max-width:640px){.of-secondary{display:none}.of-mobile-links{display:flex;gap:8px;border-top:1px solid var(--of-line);padding-top:12px;margin-top:10px}.of-footer{padding-left:8px;padding-right:8px;gap:6px}.of-nav{gap:4px}.of-wallet{gap:5px}.of-button{min-height:39px;padding:0 8px;font-size:12px;gap:5px}.of-icon{width:25px!important;height:25px!important;min-width:25px}.of-footer .stat-row{gap:12px}.of-footer .stat-item{min-width:38px}.of-footer .stat-label{font-size:8px}.of-panel{padding:18px}.of-eyebrow{font-size:8px}}
@media(max-width:360px){.of-games-button span{font-size:0}.of-games-button span::after{content:'Hry';font-size:12px}.of-footer .stat-row{gap:7px}.of-footer .stat-item{min-width:31px}.of-game-tools{gap:5px}}
@media(prefers-reduced-motion:reduce){#game-toast{transition:none}}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.of-footer #menu-popup{width:390px;max-width:calc(100vw - 16px)}

@media(max-width:1200px){.of-new-label{display:none}}

/* Pirátské stříbro and the port exchange share one wallet across all pages. */
.of-silver{border-color:#66788d;color:#e0ebf5}
.of-exchange{margin:16px 0;padding:15px;border:1px solid #566b87;border-radius:12px;background:#0b172b}
.of-exchange h3{margin-top:12px}.of-exchange p{font-size:13px;margin:7px 0 12px}
.of-silver-balance{display:flex;align-items:center;gap:10px}.of-silver-balance small{display:block;color:var(--of-muted);font-size:11px}.of-silver-balance strong{font-size:24px;color:#e3edf7}
.of-legal{display:grid;gap:2px}.of-legal a{display:block;padding:8px 0;border-bottom:1px solid #ffffff12;text-decoration:none;font-size:13px}.of-legal a:hover{color:var(--of-gold)}
#pending-chest{display:block;margin-top:12px;color:var(--of-gold);font-size:13px}
#coin-count,#silver-count{max-width:11ch;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
@media(max-width:1350px) and (min-width:1001px){.of-footer .stat-row{gap:6px}.of-profile-label{display:none}.of-nav,.of-wallet{gap:5px}.of-button{padding:0 8px}.of-secondary{font-size:11px}}
@media(max-width:640px){.of-games-button span{display:none}.of-games-button{width:38px;padding:0}.of-footer{grid-template-columns:38px minmax(0,1fr)}.of-wallet{gap:4px}.of-wallet .of-button{padding:0 6px;gap:4px}.of-profile{width:34px}.of-footer .of-icon{width:23px!important;height:23px!important;min-width:23px}#coin-count,#silver-count{max-width:7ch;font-size:11px}.of-energy{font-size:11px}}
@media(max-width:370px){.of-wallet .of-button{padding:0 4px;gap:2px}.of-wallet{gap:3px}#coin-count,#silver-count{max-width:6ch}}

/* Personal overview: currencies, naval record and controls are independent columns. */
.of-profile-panel { width:960px; overflow:hidden; }
.of-profile-panel>h2 { padding-right:25px; }
.of-panel-close { position:absolute; right:13px; top:12px; width:28px; height:28px; border:1px solid #ffffff30; border-radius:50%; color:#d7e4f9; background:#12233d; font-size:20px; cursor:pointer; }
.of-profile-grid { display:grid; grid-template-columns:1.08fr 1fr 1.08fr; gap:20px; }
.of-profile-grid>section { min-width:0; border-right:1px solid #ffffff17; padding-right:19px; }
.of-profile-grid>section:last-child { border:0; padding:0; }
.of-profile-grid h3 { display:flex; align-items:center; gap:7px; margin:0 0 8px; color:#e8d0a0; font-size:14px; }
.of-profile-grid h3 .of-icon { width:23px!important; height:23px!important; min-width:23px; }
.of-profile-grid h3:not(:first-child) { margin-top:18px; }
.of-profile-values { margin:0 0 17px; }
.of-profile-values>div { display:flex; align-items:baseline; justify-content:space-between; gap:8px; padding:5px 0; border-bottom:1px solid #ffffff0e; }
.of-profile-values dt { font-size:12px; color:#a9bbd3; }
.of-profile-values dd { font-size:14px; font-weight:650; color:#edf2fa; margin:0; font-variant-numeric:tabular-nums; text-align:right; overflow-wrap:anywhere; }
.of-profile-values>div:first-child dd { color:#f1cf80; font-size:18px; }
.of-games-total { display:flex; align-items:center; justify-content:space-between; gap:9px; margin:10px 0 7px; font-size:12px; color:#b5c7df; }
.of-games-total strong { font-size:21px; color:#f1cf80; }
.of-personal-row { padding:5px 0; font-size:11px; }
.of-personal-row>span:last-child { white-space:nowrap; }
.of-naval-treasure { border:1px solid #3a526c; border-radius:9px; padding:12px; background:#0b172b; }
.of-naval-treasure small { display:block; font-size:11px; color:#b2c1d7; }
.of-naval-treasure strong { display:block; font-size:20px; color:#ebd5a7; margin-top:4px; overflow-wrap:anywhere; }
.of-last-battle { margin-top:19px; }
.of-last-battle p { font-size:12px; color:#b6c6dc; }
.of-last-battle>strong { font-size:19px; }
.of-last-battle .win { color:#a8d8b9; }.of-last-battle .loss { color:#f0a0a0; }
.of-profile-grid .of-exchange { margin:0 0 20px; padding:12px; }
.of-profile-grid .of-exchange h3 { margin:0 0 8px; }
.of-profile-grid .of-primary { width:100%; padding:10px 8px; font-size:12px; }
.of-profile-grid .of-backup-actions { margin:12px 0; flex-wrap:wrap; gap:5px; }
.of-profile-grid .of-link-button { font-size:11px; padding:8px; }
.of-profile-grid .of-test-option { padding:12px 0; }
.of-profile-grid .of-note { font-size:10px; }
.of-profile-grid .of-note:empty { display:none; }
.of-profile-tabs { display:none; }
@media(max-width:720px),(max-height:540px) {
  .of-profile-panel { width:420px; }
  .of-profile-tabs { display:flex; gap:5px; margin-bottom:16px; }
  .of-profile-tabs button { flex:1; border:1px solid #3a506e; border-radius:7px; background:#15283f; color:#afc1db; font:600 11px 'Segoe UI',Arial; padding:8px 5px; cursor:pointer; }
  .of-profile-tabs button[aria-pressed=true] { background:#31405a; color:#f4d590; border-color:#8e784d; }
  .of-profile-grid { display:block; }
  .of-profile-grid>section { padding:0; border:0; display:none; }
  .of-profile-panel[data-profile-view=wallet] [data-profile-section=wallet],.of-profile-panel[data-profile-view=naval] [data-profile-section=naval],.of-profile-panel[data-profile-view=tools] [data-profile-section=tools] { display:block; }
  .of-profile-grid h3:not(:first-child) { margin-top:13px; }
  .of-profile-values { margin-bottom:10px; }
  .of-profile-values>div { padding:4px 0; }
  .of-profile-grid .of-note { font-size:11px; }
}
@media(max-width:430px) {
  .of-profile-panel { padding:16px; }
  .of-profile-panel>h2 { font-size:18px; }
  .of-profile-panel .of-local-label { font-size:8px; }
}
/* Footers never overflow when a currency grows to a long number. */
.of-wallet { flex-shrink:1; }
#coin-count,#silver-count { max-width:8ch; }

/* Two quiet, shared information rows below the existing game controls. */
.of-footnotes { grid-column:1/-1; grid-row:2; display:grid; gap:3px; padding-top:7px; border-top:1px solid #ffffff12; }
.of-footnotes nav { display:flex; align-items:center; justify-content:center; gap:8px; flex-wrap:wrap; line-height:1.25; }
.of-footnotes a,.of-footnotes button { color:#9eafc7; font:11px/1.25 'Segoe UI',Arial,sans-serif; text-decoration:none; white-space:nowrap; padding:0; border:0; background:none; cursor:pointer; }
.of-footnotes a:hover,.of-footnotes button:hover { color:var(--of-gold); }
.of-footnotes span { font-size:10px; color:#536781; }
.of-dialog-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:20px; }
.of-operator-links { display:flex; flex-wrap:wrap; gap:12px; font-size:12px; }
.osli-dialog a { color:#cfe1ff; }
.osli-dialog h3 { font-size:15px; color:#f0d295; }
.of-profile-grid hr { border:0; border-top:1px solid #52627b; margin:17px 0; }
.of-profile-grid { grid-template-columns:1fr 1.2fr 1fr; }
.of-profile-values>div:first-child dd { font-size:17px; }
.of-panel { overflow:auto; scrollbar-gutter:stable; }
.of-about-panel{width:470px}
.of-about-panel .of-profile-values dd { white-space:pre-line; }
@media(max-width:1000px){.of-footnotes{grid-row:3}}
@media(max-width:640px){.of-footnotes{gap:4px;padding-top:5px}.of-footnotes nav{gap:4px}.of-footnotes a,.of-footnotes button{font-size:9px}.of-footnotes span{font-size:9px}}
@media(max-width:380px){.of-footnotes a,.of-footnotes button{font-size:8px}.of-footnotes nav{gap:3px}}
@media(max-height:500px) and (min-width:761px){.of-footnotes{grid-row:2;gap:2px;padding-top:3px}.of-footnotes a,.of-footnotes button{font-size:9px}.of-footnotes nav{gap:7px}.of-footer{row-gap:5px}}

/* v3.4.2 — Compact site-wide footer: one row, no footnote rows. */
:root{--footer-h:62px}
.of-footer{
  grid-template-columns:max-content minmax(180px,1fr) max-content;
  gap:10px;
  min-height:58px;
  padding:7px max(12px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));
}
.of-nav{gap:5px}
.of-nav .of-button{min-height:40px;padding:0 9px}
.of-nav-link{font-weight:650}
.of-map-link,.of-games-button,.of-shop-link,.of-about-button{color:#e9f1ff}
.of-map-link:hover,.of-games-button:hover,.of-shop-link:hover,.of-about-button:hover{color:var(--of-gold)}
.of-games-button{color:var(--of-gold)}
.of-about-intro{color:#c6d4e8;font-size:13px!important;margin-bottom:16px!important}
.of-operator-values{margin-bottom:14px}
.of-legal{display:grid;grid-template-columns:1fr 1fr;gap:0 14px;margin-bottom:14px}
.of-legal a{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 0;border-bottom:1px solid #ffffff12;text-decoration:none;font-size:12px}
.of-legal a span{color:#7f93af}
.of-operator-links{display:flex;flex-wrap:wrap;gap:8px 14px;margin-bottom:15px}
.of-operator-links a{font-size:12px;text-decoration:none}
.of-about-panel hr{border:0;border-top:1px solid #52627b;margin:16px 0}

/* Legacy second-row footer links are removed from markup; keep this hidden for cached HTML/CSS combinations. */
.of-footnotes{display:none!important}

@media(max-width:1280px) and (min-width:1001px){
  .of-nav-label{font-size:11px}
  .of-nav .of-button{padding:0 7px;gap:5px}
  .of-footer{gap:7px;padding-left:8px;padding-right:8px}
}
@media(max-width:1000px){
  .of-footer{grid-template-columns:1fr max-content;gap:6px 8px;padding-top:6px;padding-bottom:calc(6px + env(safe-area-inset-bottom))}
  .of-game-tools{grid-row:1;grid-column:1/-1;min-height:32px}
  .of-nav{grid-row:2;grid-column:1;overflow:hidden}
  .of-wallet{grid-row:2;grid-column:2}
  .of-nav .of-button{min-height:38px}
}
@media(max-width:760px){
  .of-nav-label{display:none}
  .of-nav .of-button{width:36px;padding:0;font-size:16px}
  .of-nav{gap:4px}
  .of-legal{grid-template-columns:1fr}
}
@media(max-width:640px){
  .of-footer{grid-template-columns:max-content minmax(0,1fr);padding-left:6px;padding-right:6px;column-gap:5px}
  .of-nav{grid-column:1;gap:3px}
  .of-wallet{grid-column:2;gap:3px}
  .of-nav .of-button{width:26px;min-height:37px;font-size:15px}
  .of-wallet .of-button{min-height:37px;min-width:0;flex-shrink:1;padding:0 4px;gap:3px}
  .of-wallet .of-icon{width:20px!important;height:20px!important;min-width:20px}
  .of-wallet .of-profile{width:28px;flex-shrink:0}
  .of-games-button{width:26px!important}
}
/* v3.4.3 — Royal daily quests shortcut. */
.of-quests-link{color:#f6d477!important;border-color:#69562d;background:linear-gradient(180deg,#1d2a43,#17243b)}
.of-quests-link:hover{color:#fff0ad!important;border-color:#a88c49}
@media(max-width:1120px) and (min-width:1001px){.of-nav-label{display:none}.of-nav .of-button{width:38px;padding:0}}

/* ==========================================================
   KNIHA VĚDĚNÍ / BATOH – 4 × 5, větší ikony a počty vpravo dole
   ========================================================== */
.of-backpack{margin:17px 0 2px;border-top:1px solid var(--of-line,#53617a);padding-top:14px;max-width:380px}
.of-backpack h3{font-family:Georgia,serif;font-style:italic;color:#efd68d;font-size:20px!important;display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.of-backpack h3 small{font:11px 'Segoe UI',sans-serif;color:#b3c3db}
.of-backpack-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;width:100%;touch-action:pan-y}
.of-bag-slot{position:relative;aspect-ratio:1/1;width:100%;min-width:0;border-radius:7px;border:1px solid #4d6385;box-shadow:inset 0 2px 6px #070e1c80;background:linear-gradient(140deg,#1e3556,#0b1728);padding:2px;cursor:pointer;display:flex;align-items:center;justify-content:center;overflow:hidden;user-select:none;-webkit-user-select:none}
.of-bag-slot img{display:block;width:94%;height:94%;object-fit:contain;pointer-events:none}
.of-bag-slot .of-bag-qty{position:absolute;bottom:1px;right:2px;pointer-events:none;display:block;max-width:97%;overflow:hidden;text-overflow:ellipsis;background:#071426e6;border:1px solid #354b68;border-radius:4px;padding:1px 3px;font:bold clamp(10px,1.1vw,13px) 'Segoe UI',sans-serif;white-space:nowrap;color:#fff;text-shadow:1px 1px #000}
.of-bag-slot.is-picked{outline:2px solid #f1d073;outline-offset:-2px;background:#38466a}
.of-bag-slot:hover{border-color:#dcba72}
.of-bag-slot:focus-visible{outline:2px solid #f0d48d;outline-offset:1px}
.of-backpack>#of-backpack-info{margin:9px 0 4px;font-size:11px!important;color:#bfd1e8;min-height:26px}
@media(max-width:1024px){.of-backpack{margin-top:14px;max-width:none}.of-bag-slot .of-bag-qty{font-size:10px}}
@media(max-width:430px){.of-backpack-grid{gap:4px}.of-bag-slot{border-radius:6px}.of-bag-slot .of-bag-qty{font-size:10px;padding:1px 3px}}

/* Přístup do lokálního testovacího účtu – heslo se zadává do maskovaného pole. */
#osli-test-login{max-width:min(410px,calc(100vw - 24px));width:100%;padding:22px;border:1px solid #77663f;border-radius:16px;background:#12233d;color:#edf3ff;box-shadow:0 18px 60px #0008}
#osli-test-login::backdrop{background:#050a17bc}
#osli-test-login h2{font:italic bold 24px Georgia,serif;color:#f4d28c;margin:0 0 12px}
#osli-test-login p{font-size:14px;line-height:1.4;color:#c6d6e9}
#osli-test-login label{display:block;font-weight:700;margin:10px 0 7px}
#osli-test-password{width:100%;min-height:46px;box-sizing:border-box;font-size:18px;letter-spacing:.06em;padding:9px 12px;background:#09182c;color:white;border:1px solid #7991b2;border-radius:9px}
#osli-test-login-error{color:#ffc0b5!important;font-weight:700}
#osli-test-login .of-dialog-actions{align-items:center;flex-wrap:wrap}
#osli-test-login .of-dialog-actions button{min-height:40px;padding:9px 13px;border-radius:8px;cursor:pointer}
#osli-test-login .of-dialog-actions button:disabled{opacity:.5;cursor:wait}

/* Tajemná truhla: kompaktní obrázek a ploché tlačítko v panelu OslíCoin */
.of-mystery-chest{display:flex;flex-direction:column;align-items:center;gap:5px;margin:10px 0 8px;}
.of-mystery-chest[hidden],.of-mystery-rewards li[hidden]{display:none!important;}
.of-mystery-chest img{display:block;width:min(180px,72%);height:auto;max-height:155px;object-fit:contain;}
#oslicoin-popup .of-mystery-buy{width:100%;min-height:40px;border:1px solid #bda05b;border-radius:8px;background:#203b5c;color:#ffe3a0;box-shadow:none;font-weight:800;}
#oslicoin-popup .of-mystery-buy:hover:not(:disabled){background:#2e527c;}
#oslicoin-popup .of-mystery-buy:disabled{opacity:.55;}
#mystery-chest-reward{text-align:center;width:min(440px,calc(100vw - 24px));}
#mystery-chest-reward .of-mystery-reward-art{display:block;width:145px;height:145px;object-fit:contain;margin:2px auto;}
#mystery-chest-reward .of-mystery-reward-lead{margin:3px 0 8px;font-weight:800;}
#mystery-chest-reward .of-mystery-rewards{padding:0;list-style:none;margin:5px 0 10px;text-align:left;}
#mystery-chest-reward .of-mystery-rewards li{display:flex;align-items:center;gap:9px;padding:7px 5px;border-bottom:1px solid #4b607d55;font-size:14px;}
#mystery-chest-reward .of-mystery-rewards img{width:32px;height:32px;object-fit:contain;flex:none;}
#mystery-chest-reward .of-mystery-rewards strong{flex:1;}
#mystery-chest-reward .of-mystery-rewards span{color:#f4c75d;font-weight:800;}
#mystery-chest-reward form{margin-top:12px;}
#mystery-chest-reward form .of-primary{width:100%;background:#203b5c;color:#ffe3a0;box-shadow:none;}
