
:root {
  --bg: #0b1830;
  --panel: #101c38;
  --panel-2: #16264a;
  --line: #2b3f70;
  --line-2: #3d5592;
  --ink: #e9eefc;
  --dim: #93a3c8;
  --gold: #ffd34a;
  --gold-2: #e0a92a;
  --red: #e0523f;
  --green: #5bd46a;
  --paper: #efe1bd;
  --paper-2: #e3d1a4;
  --paper-ink: #2c2216;
  --paper-dim: #7a6648;
  --shadow: 0 4px 0 rgba(0, 0, 0, 0.35);
  
  --font: "Nunito", "Segoe UI", system-ui, sans-serif;
  --font-pixel: "Pixelify Sans", ui-monospace, monospace;
  --font-paper: "Lora", Georgia, "Times New Roman", serif;
  --font-mast: "Playfair Display", Georgia, serif;
  --top: 54px;
  --gap: 10px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--ink); font: 600 16px/1.38 var(--font); font-variant-numeric: tabular-nums; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
#map { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; touch-action: none; cursor: grab; image-rendering: pixelated; }
#map:active { cursor: grabbing; }


.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--top); z-index: 10;
  display: flex; align-items: center; gap: 14px; padding: 0 12px;
  background: linear-gradient(#13234a, #0e1a37); border-bottom: 2px solid var(--line); box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 24px; letter-spacing: 1px; color: var(--paper); }
.flag { width: 16px; height: 16px; background:
  linear-gradient(var(--paper), var(--paper)) 6px 0/2px 13px no-repeat,
  linear-gradient(var(--red), var(--red)) 8px 1px/7px 6px no-repeat,
  linear-gradient(#845228, #845228) 0 13px/16px 3px no-repeat; image-rendering: pixelated; }
.clock { display: flex; align-items: center; gap: 8px; font-size: 19px; }
.sun { width: 14px; height: 14px; background: var(--gold); box-shadow: 0 0 0 2px #b4801c inset; }
.sun.moon { background: #cfd8f2; box-shadow: -4px -2px 0 0 #6e7ca8 inset; }
.stat { color: var(--dim); }
.stat span { color: var(--ink); }
.discord { display: flex; align-items: center; margin-left: 2px; }
.discord img { width: 24px; height: 24px; display: block; transition: transform .12s; }
.discord:hover img { transform: scale(1.15); }
.spacer { flex: 1; }
.conn { display: flex; align-items: center; gap: 6px; color: var(--dim); font-size: 16px; }
.conn i { width: 8px; height: 8px; background: var(--green); display: inline-block; }
.conn.off i { background: var(--red); animation: blink 0.8s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }

.btn {
  background: var(--panel-2); border: 2px solid var(--line-2); color: var(--ink); padding: 5px 12px; cursor: pointer;
  box-shadow: 0 3px 0 #08112a; transition: transform 0.05s;
}
.btn:hover { border-color: #6d86c8; background: #1d3160; }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #08112a; }
.btn:focus-visible, .tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.btn.primary { background: var(--gold-2); border-color: var(--gold); color: #2a1b05; font-weight: 600; }
.btn.primary:hover { background: var(--gold); }
.btn.danger { border-color: #9a3a33; }
.btn:disabled { opacity: 0.45; cursor: default; transform: none; }


.panel { position: fixed; top: calc(var(--top) + var(--gap)); bottom: var(--gap); z-index: 5; display: flex; flex-direction: column; gap: var(--gap); pointer-events: none; }
.panel > * { pointer-events: auto; }
.panel.left { left: var(--gap); width: 330px; }
.panel.right { right: var(--gap); width: 360px; bottom: auto; height: calc((100% - var(--top) - var(--gap) * 2) / 2); gap: 0; }
.card { background: var(--panel); border: 2px solid var(--line); box-shadow: var(--shadow); padding: 10px 12px; }
.card h2, .paper h2 { margin: 0; font-size: 20px; font-weight: 700; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 8px; }
.tabs { display: flex; gap: 2px; }
.tab { background: transparent; border: 2px solid var(--line); padding: 1px 6px; font-size: 16px; color: var(--dim); cursor: pointer; }
.tab.on { background: var(--line); color: var(--ink); }
.list-card { flex: 1; min-height: 0; display: flex; flex-direction: column; }
#search { width: 100%; background: #0a1430; border: 2px solid var(--line); padding: 5px 8px; margin-bottom: 6px; outline: none; }
#search:focus { border-color: var(--line-2); }
.plist { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; min-height: 0; scrollbar-width: thin; }
.plist li { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 8px; padding: 4px 4px; cursor: pointer; border-bottom: 1px solid #1a2a52; }
.plist li:hover { background: var(--panel-2); }
.plist li.mine { background: rgba(255, 211, 74, 0.1); }
.plist canvas { width: 18px; height: 26px; image-rendering: pixelated; }
.plist .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plist .sub { display: block; font-size: 14px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plist .bnt { font-size: 16px; color: var(--gold); text-align: right; }
.plist .lv { font-size: 14px; color: var(--dim); text-align: right; display: block; }


#me .empty { color: var(--dim); font-size: 17px; }
#me .empty b { color: var(--ink); }
.me-top { display: grid; grid-template-columns: 54px 1fr; gap: 10px; align-items: center; cursor: pointer; }
.me-top canvas { width: 54px; height: 78px; image-rendering: pixelated; background: #0a1430; border: 2px solid var(--line); }
.me-name { font-weight: 700; font-size: 19px; color: var(--gold); }
.me-sub { font-size: 16px; color: var(--dim); }
.bar { height: 8px; background: #0a1430; border: 1px solid #22355f; margin-top: 4px; }
.bar > i { display: block; height: 100%; background: var(--green); }
.bar.xp > i { background: #6fa8ff; }
.orders-head { display: flex; justify-content: space-between; align-items: center; margin: 10px 0 6px; font-size: 17px; }
.pips { display: inline-flex; gap: 3px; }
.pips i { width: 9px; height: 9px; background: var(--gold); display: inline-block; }
.pips i.used { background: #2a385e; }
.orders { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.orders .btn { padding: 4px 6px; font-size: 17px; text-align: left; }
.travel { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 6px; }
.travel .btn { font-size: 16px; padding: 3px 6px; }
.me-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.me-actions .btn { flex: 1; font-size: 16px; padding: 3px 6px; }


.paper {
  flex: 1; min-height: 0; display: flex; flex-direction: column;
  background: var(--paper); color: var(--paper-ink); border: 2px solid #8b7448; box-shadow: var(--shadow);
}
.paper-head { padding: 10px 12px 8px; border-bottom: 3px double #8b7448; display: flex; justify-content: space-between; align-items: baseline; }
.paper h2 { font-size: 24px; letter-spacing: 1px; }
.only-unused { font-size: 14px; color: var(--paper-dim); display: flex; gap: 4px; align-items: center; cursor: pointer; }
.only input { accent-color: #8b5a2b; }
.news { list-style: none; margin: 0; padding: 0 12px; overflow-y: auto; flex: 1; min-height: 0; scrollbar-width: thin; scrollbar-color: #b49c6a transparent; }
.news li { padding: 7px 0; border-bottom: 1px solid #cdb886; font-size: 17px; }
.news li.big { font-weight: 600; font-size: 18px; }
.news li.big::before { content: "◆ "; color: #a8352b; }
.news li.click { cursor: pointer; }
.news li.click:hover { background: var(--paper-2); }
.news .when { display: block; font-size: 13px; color: var(--paper-dim); font-weight: 400; }
.news li.fresh { animation: fresh 1.6s ease-out; }
@keyframes fresh { from { background: #f8d77a; } to { background: transparent; } }


.rtabs { display: flex; gap: 4px; }
.rtab { flex: 1; font: 700 15px var(--font); color: var(--dim); background: var(--panel); border: 2px solid var(--line); border-bottom: none;
  padding: 5px 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
.rtab.on { color: var(--ink); background: var(--panel-2); border-color: var(--line-2); }
.rtab[data-r="paper"].on { background: var(--paper); color: var(--paper-ink); border-color: #8b7448; }
.cbadge { background: var(--red); color: #fff; font-size: 12px; min-width: 18px; padding: 0 5px; line-height: 18px; border-radius: 9px; }


:root { --c-gen: #eef2ff; --c-com: #ffc14d; --c-ban: #5fe08a; }
.chat { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--panel); border: 2px solid var(--line-2); box-shadow: var(--shadow); }
.chat[hidden], .paper[hidden] { display: none; }
.ctabs { display: flex; gap: 3px; padding: 6px 6px 4px; border-bottom: 1px solid var(--line); }
.ctab { flex: 1; font: 700 13px var(--font); background: transparent; color: var(--dim); border: 1px solid var(--line); padding: 3px 2px; cursor: pointer; }
.ctab.on { background: var(--panel-2); color: var(--ink); border-color: var(--line-2); }
.ctab.c-gen.on { color: var(--c-gen); box-shadow: inset 0 -2px 0 var(--c-gen); }
.ctab.c-com.on { color: var(--c-com); box-shadow: inset 0 -2px 0 var(--c-com); }
.ctab.c-ban.on { color: var(--c-ban); box-shadow: inset 0 -2px 0 var(--c-ban); }
.chat-log { list-style: none; margin: 0; padding: 4px 8px; overflow-y: auto; flex: 1; min-height: 0; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.chat-log .empty { color: var(--dim); font-size: 14px; padding: 10px 0; }
.cm { padding: 3px 0 3px 7px; font-size: 15px; line-height: 1.35; border-left: 3px solid transparent; margin: 2px 0; word-wrap: break-word; }
.cm .ch { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; margin-right: 5px; padding: 0 3px; border: 1px solid currentColor; vertical-align: 1px; }
.cm .who { cursor: pointer; margin-right: 5px; }
.cm .who:hover { text-decoration: underline; }
.cm .t { font-size: 11px; color: var(--dim); font-variant-numeric: tabular-nums; }
.cm .txt { display: block; color: var(--ink); }
.cm.c-gen { border-left-color: #6d7aa0; } .cm.c-gen .ch, .cm.c-gen .who { color: var(--c-gen); }
.cm.c-com { border-left-color: var(--c-com); background: rgba(255, 193, 77, 0.06); } .cm.c-com .ch, .cm.c-com .who { color: var(--c-com); } .cm.c-com .txt { color: #ffe3a6; }
.cm.c-ban { border-left-color: var(--c-ban); background: rgba(95, 224, 138, 0.06); } .cm.c-ban .ch, .cm.c-ban .who { color: var(--c-ban); } .cm.c-ban .txt { color: #c9f5d6; }
.cm.mine .who::after { content: " (tú)"; color: var(--dim); font-weight: 400; }
.chat-in { display: flex; gap: 4px; padding: 6px; border-top: 1px solid var(--line); }
.chat-in select { font: 700 13px var(--font); background: var(--panel-2); color: var(--ink); border: 1px solid var(--line-2); padding: 2px; }
.chat-in input { flex: 1; min-width: 0; font: 15px var(--font); background: #0a1430; color: var(--ink); border: 1px solid var(--line-2); padding: 4px 6px; }
.chat-in[data-c="com"] select, .chat-in[data-c="com"] input { border-color: var(--c-com); color: var(--c-com); }
.chat-in[data-c="ban"] select, .chat-in[data-c="ban"] input { border-color: var(--c-ban); color: var(--c-ban); }


.sheet {
  position: fixed; z-index: 8; top: calc(var(--top) + var(--gap)); left: calc(330px + var(--gap) * 2); width: 400px; max-height: calc(100% - var(--top) - var(--gap) * 2);
  overflow-y: auto; background: var(--panel); border: 2px solid var(--line-2); box-shadow: var(--shadow); padding: 12px 14px; scrollbar-width: thin;
}
.sheet-close { position: absolute; top: 6px; right: 8px; background: none; border: 0; color: var(--dim); font-size: 24px; cursor: pointer; padding: 2px 6px; }
.sheet-close:hover { color: var(--ink); }
.sheet-top { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; }
.sheet-top canvas { width: 72px; height: 104px; image-rendering: pixelated; background: #0a1430; border: 2px solid var(--line); }
.sheet h3 { margin: 0 24px 2px 0; font-size: 23px; }
.badge { display: inline-block; padding: 0 6px; font-size: 14px; border: 2px solid; margin: 2px 4px 2px 0; }
.title-badge { color: var(--gold); border-color: var(--gold-2); }
.label { color: var(--dim); font-size: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; margin: 10px 0; font-size: 17px; }
.grid2 b { float: right; font-weight: 600; }
.sheet h4 { margin: 12px 0 4px; font-size: 17px; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; }
.trait { display: grid; grid-template-columns: 82px 1fr 30px; gap: 8px; align-items: center; font-size: 16px; }
.trait .bar { margin: 0; }
.trait .bar > i { background: #c98bff; }
.equip { list-style: none; padding: 0; margin: 0; font-size: 16px; }
.equip li { display: flex; justify-content: space-between; padding: 2px 0; border-bottom: 1px solid #1a2a52; }
.equip .slot { color: var(--dim); }

ul.equip .slot { position: static; aspect-ratio: auto; background: none; border: 0; display: inline; min-height: 0; cursor: default; }
.equip .none { color: #56688f; }
.log { list-style: none; padding: 0; margin: 0; font-size: 14px; color: var(--dim); }
.log li { padding: 2px 0; }
.sheet-actions { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.sheet-actions .btn { flex: 1; }
.fruit { color: #ff9f6b; }


.globe-wrap {
  position: fixed; z-index: 9; right: calc(360px + var(--gap) * 2); bottom: var(--gap); padding: 10px;
  background: radial-gradient(circle at 50% 45%, #1a2e5c 0, #08112a 70%); border: 2px solid var(--line-2); box-shadow: var(--shadow); text-align: center;
}
.globe-canvas { width: 280px; height: 280px; image-rendering: pixelated; cursor: grab; display: block; touch-action: none; }
.globe-title { font-size: 14px; color: var(--dim); margin-bottom: 6px; }
.tip { position: fixed; z-index: 12; pointer-events: none; background: rgba(10, 16, 34, 0.92); border: 2px solid var(--line-2); padding: 3px 8px; font-size: 16px; white-space: nowrap; }
.toasts { position: fixed; z-index: 20; left: 50%; top: calc(var(--top) + 12px); transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none; }
.toast { background: var(--panel); border: 2px solid var(--line-2); box-shadow: var(--shadow); padding: 7px 14px; font-size: 17px; max-width: min(90vw, 520px); animation: toast 0.2s steps(3); }
.toast.ok { border-color: var(--green); }
.toast.bad { border-color: var(--red); }
@keyframes toast { from { transform: translateY(-8px); opacity: 0; } }
.dim { color: var(--dim); }

.modal { position: fixed; inset: 0; z-index: 30; background: rgba(4, 8, 20, 0.7); display: grid; place-items: center; padding: 16px; }
.modal-box { background: var(--panel); border: 2px solid var(--line-2); box-shadow: var(--shadow); padding: 18px 20px; max-width: 520px; }
.modal-box h2 { margin: 0 0 8px; color: var(--gold); }
.modal-box ul { padding-left: 18px; }
.modal-box li { margin: 4px 0; }

.loading { position: fixed; inset: 0; z-index: 40; background: var(--bg); display: grid; place-items: center; transition: opacity 0.4s; }
.loading.gone { opacity: 0; pointer-events: none; }
.loading-box { text-align: center; color: var(--dim); }
.ship-anim { width: 64px; height: 48px; margin: 0 auto 12px; image-rendering: pixelated; animation: bob 0.9s steps(2) infinite;
  background:
    linear-gradient(var(--paper), var(--paper)) 26px 4px/18px 24px no-repeat,
    linear-gradient(#5a3a1c, #5a3a1c) 34px 0/4px 32px no-repeat,
    linear-gradient(var(--red), var(--red)) 38px 0/8px 6px no-repeat,
    linear-gradient(#845228, #845228) 4px 32px/56px 8px no-repeat,
    linear-gradient(#5a3a1c, #5a3a1c) 12px 40px/40px 6px no-repeat; }
@keyframes bob { 50% { transform: translateY(3px); } }

.mobile-tabs { display: none; }


@media (max-width: 1180px) {
  .panel.right { width: 310px; }
  .globe-wrap { right: calc(310px + var(--gap) * 2); }
}


@media (max-width: 820px) {
  :root { --top: 44px; --gap: 8px; }
  .topbar { gap: 8px; padding: 0 8px; }
  .brand { font-size: 20px; }
  .stat, .conn span { display: none; }
  .clock { font-size: 17px; }
  .panel { top: var(--top); bottom: 56px; left: 0 !important; right: 0 !important; width: auto !important; padding: var(--gap); background: rgba(8, 14, 32, 0.6); display: none; }
  .panel.show { display: flex; }
  .panel.right { height: auto; bottom: 56px; }
  .sheet { left: var(--gap); right: var(--gap); width: auto; top: auto; bottom: 64px; max-height: 62vh; }
  .globe-wrap { left: 50%; right: auto; transform: translateX(-50%); bottom: 64px; }
  .globe-canvas { width: min(72vw, 300px); height: min(72vw, 300px); }
  .mobile-tabs {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; height: 56px; z-index: 11; background: #0e1a37; border-top: 2px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-tabs button { flex: 1; background: none; border: 0; color: var(--dim); font-size: 18px; cursor: pointer; }
  .mobile-tabs button.on { color: var(--gold); box-shadow: inset 0 3px 0 var(--gold); }
  .toasts { top: calc(var(--top) + 8px); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }


.acct { position: relative; }
.acct-name { background: none; border: 2px solid transparent; color: var(--gold); cursor: pointer; padding: 4px 8px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-name:hover { border-color: var(--line-2); }
.acct-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 230px; background: var(--panel); border: 2px solid var(--line-2); box-shadow: var(--shadow); padding: 6px; z-index: 25; }
.acct-menu button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 7px 8px; cursor: pointer; }
.acct-menu button:hover { background: var(--panel-2); }
.acct-menu p { margin: 2px 8px 6px; }
.btn.small { padding: 3px 9px; font-size: 16px; }
.btn.wide { width: 100%; margin-top: 8px; }
.small { font-size: 14px; }
.link { background: none; border: 0; color: var(--dim); text-decoration: underline; cursor: pointer; padding: 6px 0 0; font-size: 16px; }
.link:hover { color: var(--ink); }
.modal-box { position: relative; max-height: calc(100vh - 32px); overflow-y: auto; }
.modal-box.wide { max-width: 640px; width: 100%; }
.modal-x { position: absolute; top: 8px; right: 10px; background: none; border: 0; color: var(--dim); font-size: 24px; cursor: pointer; }
.modal-x:hover { color: var(--ink); }
.welcome-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin: 14px 0 6px; }
.welcome-actions:has(.google-btn) { grid-template-columns: 1.3fr 1fr; }
.btn.google-btn { background: #fff; border-color: #dadce0; color: #1f1f1f; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn.google-btn:hover { background: #f1f3f4; }
.g-logo { vertical-align: -4px; flex: none; }
.form { display: grid; gap: 10px; margin-top: 10px; }
.form label, .field { display: grid; gap: 4px; font-size: 17px; color: var(--dim); margin-top: 10px; }
.form input, .field input, .field select {
  background: #0a1430; border: 2px solid var(--line); color: var(--ink); padding: 7px 9px; outline: none; font-size: 18px;
}
.form input:focus, .field input:focus, .field select:focus { border-color: var(--gold-2); }
.form-error { color: #ff8f80; min-height: 1.2em; margin: 6px 0 0; font-size: 17px; }
.creator { display: grid; grid-template-columns: 130px 1fr; gap: 16px; align-items: start; margin-top: 8px; }
.creator-preview { display: grid; gap: 8px; justify-items: center; background: radial-gradient(circle at 50% 40%, #1d3160, #0a1430 70%); border: 2px solid var(--line); padding: 10px; }
.creator-preview canvas { width: 90px; height: 130px; image-rendering: pixelated; }
.creator-parts { display: grid; gap: 4px; }
.part { display: grid; grid-template-columns: 80px 28px 1fr 28px; align-items: center; gap: 6px; font-size: 17px; }
.part-label { color: var(--dim); }
.part-val { text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; justify-content: center; gap: 6px; }
.arrow { background: var(--panel-2); border: 2px solid var(--line-2); cursor: pointer; height: 26px; padding: 0; font-size: 13px; }
.arrow:hover { border-color: var(--gold-2); }
.swatch { display: inline-block; width: 14px; height: 14px; border: 2px solid #0a1430; outline: 1px solid var(--line-2); }
.facs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.fac { text-align: left; background: var(--panel-2); border: 2px solid var(--line); padding: 7px 9px; cursor: pointer; display: grid; gap: 3px; color: var(--ink); }
.fac b { color: var(--fc); }
.fac span { font-size: 14px; color: var(--dim); }
.fac.on { border-color: var(--fc); box-shadow: inset 0 0 0 1px var(--fc); background: #1b2c55; }
.modal-box > .btn.primary { margin-top: 14px; }
.away { padding-left: 18px; max-height: 50vh; overflow-y: auto; }
.away li { margin: 5px 0; }
.away li.big { color: var(--gold); }
@media (max-width: 820px) {
  .welcome-actions { grid-template-columns: 1fr; }
  .creator { grid-template-columns: 1fr; }
  .facs { grid-template-columns: 1fr; }
  .acct-name { max-width: 110px; }
}
.tab { padding: 1px 5px; font-size: 14px; }
@media (max-width: 820px) {
  .creator-preview { grid-auto-flow: column; justify-content: center; align-items: center; gap: 16px; }
  .creator-preview canvas { width: 60px; height: 87px; }
}


.me-actions { display: grid; grid-template-columns: repeat(3, 1fr); }
kbd { font: inherit; font-size: 12px; color: var(--dim); border: 1px solid var(--line-2); padding: 0 3px; margin-left: 4px; }
.cost { display: inline-block; min-width: 16px; padding: 0 4px; font-size: 13px; background: #2d4fa0; color: #dfe8ff; text-align: center; }
.cost::before { content: "⚡"; font-size: 11px; margin-right: 1px; }
.good { color: var(--green); }
.inv-box { max-width: 760px !important; }
.inv-grid { display: grid; grid-template-columns: 280px 1fr; gap: 18px; }
.inv h4 { margin: 10px 0 6px; font-size: 16px; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; }
.slots { display: grid; gap: 5px; }
.slots.equip { grid-template-columns: repeat(3, 1fr); }
.slots.bag, .slots.chest { grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); }
.slot { position: relative; aspect-ratio: 1; background: #0a1430; border: 2px solid var(--line); padding: 0; cursor: pointer; display: grid; place-items: center; min-height: 44px; }
.slot img { width: 36px; height: 36px; image-rendering: pixelated; }
.slot span { position: absolute; bottom: 1px; left: 0; right: 0; font-size: 11px; color: var(--dim); text-align: center; white-space: nowrap; overflow: hidden; }
.slots.equip .slot { aspect-ratio: auto; height: 62px; }
.slots.equip .slot img { margin-bottom: 10px; }
.slot.empty { cursor: default; opacity: 0.55; }
.slot:disabled { cursor: default; opacity: 0.35; }
.slot[aria-pressed="true"] { outline: 2px solid var(--gold); outline-offset: 1px; }
.slot.r-ryo { border-color: #5a96f0; } .slot.r-o { border-color: #aa64eb; } .slot.r-saijo { border-color: #f5c842; } .slot.r-fruta { border-color: #f078be; }
.r-ryo-t { color: #8db7ff; } .r-o-t { color: #cf9bff; } .r-saijo-t { color: #ffd76a; } .r-fruta-t { color: #ff9fd2; }
.inv-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 10px; font-size: 16px; margin-top: 8px; }
.inv-stats b { float: right; }
.ship-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 16px; flex-wrap: wrap; }
.inv-detail { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 10px; background: #0a1430; border: 2px solid var(--line); min-height: 64px; }
.inv-detail img { width: 48px; height: 48px; image-rendering: pixelated; }
.inv-detail .acts, .challenge .acts { display: flex; gap: 6px; margin-top: 6px; }

.duel { position: fixed; inset: 0; z-index: 28; background: rgba(4, 8, 20, 0.72); display: grid; place-items: center; padding: 12px; }
.duel-box { width: min(720px, 100%); max-height: calc(100vh - 24px); overflow-y: auto; background: var(--panel); border: 2px solid var(--gold-2); box-shadow: var(--shadow); padding: 12px 14px; }
.duel-head { display: flex; align-items: center; gap: 10px; }
.duel-timer { flex: 1; height: 6px; background: #0a1430; border: 1px solid #22355f; }
.duel-timer > i { display: block; height: 100%; background: var(--gold); transition: width 0.25s linear; }
.duel-sides { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 12px 0; }
.vs { font-weight: 700; color: var(--red); font-size: 24px; }
.dside { display: grid; grid-template-columns: 60px 1fr; gap: 10px; align-items: center; background: #0a1430; border: 2px solid var(--line); padding: 8px; }
.dside.foe { grid-template-columns: 1fr 60px; text-align: right; }
.dside.foe canvas { order: 2; }
.dside canvas { width: 54px; height: 78px; image-rendering: pixelated; }
.bar.big { height: 12px; }
.energy { display: flex; gap: 3px; margin-top: 4px; }
.energy i { width: 12px; height: 8px; background: #22355f; display: inline-block; }
.energy i.on { background: #6fa8ff; box-shadow: inset 0 -2px 0 #2d4fa0; }

.duel-tf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 2px; }
.tf-orbs { display: flex; gap: 4px; }
.tf-orbs i { width: 14px; height: 14px; border-radius: 50%; background: #3a1c22; display: inline-block; box-shadow: inset 0 0 0 2px #5a2a32; }
.tf-orbs i.on { background: radial-gradient(circle at 35% 35%, #ff9a8a, #e0303a 55%, #8a1018); box-shadow: 0 0 6px rgba(240,60,60,0.6); }
.tf-btn .tf-cost { color: #ff6a6a; letter-spacing: -2px; margin-left: 2px; }
.duel-kit .btn.src-forma { border-color: #e0303a; }
.fx { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; min-height: 18px; }
.dside.foe .fx { justify-content: flex-end; }
.fx span { font-size: 12px; padding: 0 4px; border: 1px solid var(--line-2); color: #ffcf8a; }
.duel-log { height: 140px; overflow-y: auto; background: #070e22; border: 2px solid var(--line); padding: 6px 10px; font-size: 16px; }
.duel-log p { margin: 2px 0; animation: toast 0.2s steps(2); }
.duel-log p.hot { color: var(--gold); }
.duel-cmds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.duel-kit { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 5px; margin-top: 6px; }
.btn.skill { display: flex; align-items: center; gap: 4px; justify-content: space-between; font-size: 16px; padding: 5px 7px; text-align: left; }
.btn.skill > span:first-child { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn.skill.src-fruta { border-color: #b46ad8; } .btn.skill.src-arma { border-color: #8aa0c8; } .btn.skill.src-espiritu { border-color: var(--gold-2); }
.cd { font-size: 12px; color: #ffb38a; } .cd::before { content: "⏳"; }
.duel-end { text-align: center; padding: 12px; }
.duel-end h3 { margin: 4px 0; font-size: 29px; color: #ff8f80; }
.duel-end.win h3 { color: var(--gold); }
.challenge { position: fixed; z-index: 29; left: 50%; top: calc(var(--top) + 60px); transform: translateX(-50%); display: flex; gap: 12px; align-items: center;
  background: var(--panel); border: 2px solid var(--red); box-shadow: var(--shadow); padding: 10px 14px; max-width: 92vw; }
.challenge canvas { width: 36px; height: 52px; image-rendering: pixelated; }
.countdown { position: fixed; z-index: 27; left: 50%; top: calc(var(--top) + 60px); transform: translateX(-50%); background: var(--panel); border: 2px solid var(--gold-2); padding: 8px 16px; box-shadow: var(--shadow); }
.big-n { font-size: 26px; color: var(--gold); font-weight: 700; margin-left: 4px; }
.tabs.big .tab { font-size: 17px; padding: 4px 12px; }
.sk { list-style: none; padding: 0; margin: 6px 0; }
.sk li { display: grid; grid-template-columns: 48px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid #1a2a52; }
.sk li.locked { opacity: 0.45; }
.sk .lv { color: var(--gold); font-size: 16px; }
@media (max-width: 820px) {
  .inv-grid { grid-template-columns: 1fr; }
  .duel-cmds { grid-template-columns: 1fr 1fr; }
  .duel-sides { grid-template-columns: 1fr; }
  .vs { text-align: center; }
  .dside.foe { grid-template-columns: 60px 1fr; text-align: left; }
  .dside.foe canvas { order: 0; }
  .dside.foe .fx { justify-content: flex-start; }
  kbd { display: none; }
}
@media (max-width: 820px) { .duel-log { height: 96px; } .dside canvas { width: 40px; height: 58px; } .dside { grid-template-columns: 44px 1fr !important; } }


.me-title { font-size: 14px; color: #e8c97a; }
.gold { color: var(--gold); }
.bad { color: #ff8f80; }
.jail { margin: 6px 0; padding: 6px 8px; border: 2px solid #6b6f80; background: repeating-linear-gradient(90deg, #1b2236 0 10px, #232c45 10px 12px); font-size: 16px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.boss-tag { color: #ff8f80; }
.missions .pane { margin-top: 8px; }
.quests, .bosses, .titles { list-style: none; padding: 0; margin: 6px 0; }
.quests li, .bosses li { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid #1a2a52; }
.bosses li { grid-template-columns: 40px 1fr auto; }
.bosses li.done b { color: var(--green); }
.bosses .lv { color: var(--gold); font-size: 16px; }
.missions h4 { margin: 12px 0 2px; color: var(--gold); font-size: 16px; text-transform: uppercase; letter-spacing: 1px; }
.titles { display: flex; flex-wrap: wrap; gap: 6px; }
.titles li { border: 2px solid var(--line); padding: 2px 8px; font-size: 16px; }
.titles li.on { border-color: var(--gold-2); color: var(--gold); }
.titles.pick li { border: 0; padding: 0; }
.title-opt { font: inherit; font-size: 16px; color: var(--ink); background: transparent; border: 2px solid var(--line); padding: 2px 8px; cursor: pointer; }
.title-opt:hover { border-color: var(--ink-dim, #9aa); }
.title-opt.on { border-color: var(--gold-2); color: var(--gold); }
.title-opt.sel { border-color: #5fd068; background: rgba(95,208,104,0.15); }
.titles.pick + .btn { margin-top: 8px; }
.quest-offer { border-color: var(--gold-2); max-width: min(92vw, 520px); }
.relay { position: fixed; z-index: 26; right: calc(320px + var(--gap) * 2); top: calc(var(--top) + var(--gap)); width: 330px; background: var(--panel); border: 2px solid var(--red); box-shadow: var(--shadow); padding: 10px 12px; font-size: 16px; }
.relay-head { display: flex; justify-content: space-between; align-items: center; position: relative; }
.relay-head .sheet-close { position: static; }
.relay-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.relay h4 { margin: 8px 0 4px; font-size: 14px; color: var(--gold); }
.relay ul { list-style: none; margin: 0; padding: 0; }
.relay li { display: grid; gap: 2px; margin-bottom: 5px; }
.relay li.down { opacity: 0.4; text-decoration: line-through; }
.relay .bar { display: block; margin: 0; }
@media (max-width: 820px) { .relay { left: var(--gap); right: var(--gap); width: auto; top: calc(var(--top) + 6px); } }


.flag-img { image-rendering: pixelated; vertical-align: middle; border: 1px solid rgba(0,0,0,0.5); }
.clan .pane { margin-top: 8px; }
.clan h4 { margin: 12px 0 4px; color: var(--gold); font-size: 16px; text-transform: uppercase; letter-spacing: 1px; }
.clan-head { display: flex; gap: 12px; align-items: center; }
.clan-head h2 { margin: 0; }
.tabs.wrap { flex-wrap: wrap; margin-top: 10px; }
.small { font-size: 14px; }
.good { color: var(--green); }
.scroll-x { overflow-x: auto; max-width: 100%; }
.tbl { width: 100%; border-collapse: collapse; font-size: 16px; }
.tbl th { text-align: left; color: var(--dim); font-weight: 400; border-bottom: 2px solid var(--line); padding: 4px; }
.tbl td { border-bottom: 1px solid #1a2a52; padding: 4px; vertical-align: middle; }
.tbl tr.mine td { background: rgba(255, 211, 74, 0.08); }
.tbl select, .clan select { background: #0a1430; color: var(--ink); border: 2px solid var(--line); font: inherit; font-size: 14px; padding: 1px 2px; }
.plain { list-style: none; padding: 0; margin: 4px 0; }
.plain li { padding: 3px 0; }
.reqs li, .wars li { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid #1a2a52; flex-wrap: wrap; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.clan .acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0; justify-content: space-between; }
.clan input:not([type=checkbox]) { background: #0a1430; border: 2px solid var(--line); color: var(--ink); font: inherit; padding: 4px 8px; }
.clan .grow { flex: 1; min-width: 160px; }
.clan .num { width: 110px; }
.dot { display: inline-block; width: 7px; height: 7px; background: #5a6582; vertical-align: middle; }
.dot.on { background: var(--green); }
.flag-edit { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.flag-edit .flag-img { border: 2px solid var(--line-2); }
.models { display: flex; flex-wrap: wrap; gap: 4px; }
.swatches { display: flex; flex-wrap: wrap; gap: 3px; max-width: 320px; }
.sw { width: 20px; height: 20px; border: 2px solid #0a1430; cursor: pointer; padding: 0; }
.sw.on { border-color: #fff; outline: 2px solid var(--gold-2); }
.me-clan { font-size: 14px; color: #c9d6ff; }
.me-clan .flag-img, .clan-line .flag-img { border-width: 1px; }
.rank-box { max-height: 260px; overflow-y: auto; }
@media (max-width: 820px) {
  .two { grid-template-columns: 1fr; }
  .tbl th:nth-child(5), .tbl td:nth-child(5) { display: none; }
  .tbl select { max-width: 96px; }
}


.shop, .trade, .botin { min-width: min(560px, 86vw); }
.shop-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; margin-bottom: 6px; }
.shop-cols, .trade-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 700px) { .shop-cols, .trade-cols { grid-template-columns: 1fr; } }
.shop-list { list-style: none; padding: 0 !important; margin: 0; max-height: 46vh; overflow-y: auto; }
.shop-list li { display: flex; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.shop-list .nm { flex: 1; min-width: 0; }
.qty { font-size: 13px; }
.offer { display: flex; flex-wrap: wrap; gap: 4px; min-height: 28px; padding: 4px; background: #0a1430; border: 1px solid var(--line); }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; background: #14234a; border: 1px solid var(--line-2); font-size: 14px; }
.chip.gold { color: var(--gold); } .chip.fruit { color: #f078be; }
.slot.on { outline: 2px solid var(--gold); outline-offset: 1px; }
.pick-list { list-style: none; padding: 0 !important; max-height: 50vh; overflow-y: auto; }
.pick-list li { display: flex; gap: 8px; align-items: center; padding: 3px 0; }
.botin-notice { z-index: 31; }
.botin-panel { z-index: 12; }
.botin .acts.bet { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 8px; }


.btn.on { background: var(--line); border-color: var(--gold-2); color: var(--gold); }
.win {
  position: fixed; z-index: 9; top: calc(var(--top) + var(--gap)); left: 50%; transform: translateX(-50%);
  width: min(480px, calc(100vw - 2 * var(--gap))); max-height: calc(100vh - var(--top) - 3 * var(--gap));
  display: flex; flex-direction: column; background: var(--panel); border: 2px solid var(--line-2); box-shadow: var(--shadow); padding: 12px 14px;
}
.win.wide { width: min(720px, calc(100vw - 2 * var(--gap))); }
.win .card-head { padding-right: 34px; }
.win-x { position: absolute; top: 8px; right: 10px; background: none; border: 0; color: var(--dim); font-size: 24px; cursor: pointer; line-height: 1; padding: 2px 4px; }
.win-x:hover { color: var(--ink); }
.win .plist { min-height: 120px; }
.plist.rank li { grid-template-columns: 34px 22px 1fr auto; }
.plist .pos { text-align: right; color: var(--dim); font-weight: 700; }
.plist .pos.top { color: var(--gold); }
#rank-note { margin: 0 0 6px; }


.paper-win { background: var(--paper); color: var(--paper-ink); border-color: #8b7448; padding: 0; }
.paper-win .win-x { color: var(--paper-dim); }
.paper-win .paper-head { padding-right: 46px; flex-wrap: wrap; gap: 8px; align-items: center; }
.paper-win .news { padding: 0 16px 10px; }
.paper-win .news li { font-size: 19px; }
.paper-open { background: none; border: 2px solid #b49c6a; color: var(--paper-ink); cursor: pointer; font-size: 18px; line-height: 1; padding: 2px 7px; }
.paper-open:hover { background: var(--paper-2); }


.ntabs { display: flex; gap: 4px; padding: 8px 12px 6px; border-bottom: 1px solid #cdb886; }
.paper-head .ntabs { padding: 0; border: 0; }
.ntab { flex: 1; background: transparent; border: 2px solid #b49c6a; color: var(--paper-dim); padding: 3px 6px; cursor: pointer; font-size: 16px; white-space: nowrap; }
.ntab:hover { background: var(--paper-2); }
.ntab.on { background: #6b4f2a; border-color: #6b4f2a; color: var(--paper); }
.ntab:focus-visible { outline: 2px solid #a8352b; outline-offset: 1px; }


.news li { border-left: 5px solid transparent; padding-left: 8px; margin-left: -8px; }
.news li.c-xp { color: #17703a; border-left-color: #2e9a52; }
.news li.c-mio { color: #a33d0c; border-left-color: #d9661f; }
.news li.c-banda { color: #1d4f99; border-left-color: #3b78d0; }
.news li.c-otros { color: var(--paper-ink); }
.news li.c-xp.big::before, .news li.c-mio.big::before, .news li.c-banda.big::before { color: inherit; }
.news .tag { display: inline-block; font-size: 13px; font-weight: 700; padding: 0 4px; margin-right: 6px; border: 1px solid currentColor; vertical-align: 1px; letter-spacing: 0.5px; }
.news li.empty { color: var(--paper-dim); border: 0; padding: 14px 0; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 6px 16px; font-size: 15px; border-bottom: 1px solid #cdb886; }
.legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 5px; vertical-align: -1px; }
.legend .k-xp { color: #17703a; } .legend .k-xp::before { background: #2e9a52; }
.legend .k-mio { color: #a33d0c; } .legend .k-mio::before { background: #d9661f; }
.legend .k-banda { color: #1d4f99; } .legend .k-banda::before { background: #3b78d0; }
.legend .k-otros { color: var(--paper-ink); } .legend .k-otros::before { background: #8b7448; }

@media (max-width: 1180px) {
  .topbar .btn { padding-left: 8px; padding-right: 8px; }
}
@media (max-width: 820px) {
  .win { top: var(--top); bottom: 56px; max-height: none; width: 100vw; left: 0; transform: none; }
  #btn-news, #btn-globe { display: none; }
}


.shirts { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin-top: 4px; }
.shirt { width: 26px; height: 26px; border: 2px solid #0a1430; outline: 2px solid var(--line); cursor: pointer; padding: 0; }
.shirt:hover { outline-color: var(--line-2); }
.shirt.on, .shirt-custom.on { outline: 3px solid var(--gold); }
.shirt-custom { display: inline-flex; align-items: center; gap: 4px; padding: 1px 6px 1px 1px; outline: 2px solid var(--line); cursor: pointer; color: var(--ink); font-size: 16px; }
.shirt-custom input { width: 26px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; }


@media (min-width: 821px) {
  .toasts { top: auto; bottom: 28px; flex-direction: column-reverse; }
}
.me-actions .btn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 3px 2px; font-size: 14px; }
.short { display: none; }
@media (max-width: 820px) {
  .long, .brand-name { display: none; }
  .short { display: inline; }
  .topbar { gap: 6px; }
  .topbar .btn { padding: 4px 8px; font-size: 16px; }
  .clock { font-size: 15px; white-space: nowrap; }
  .acct-name { max-width: 96px; padding: 4px; }
}
@media (max-width: 820px) {
  .conn { display: none; }
  .topbar { gap: 4px; padding: 0 6px; }
  .topbar .btn { padding: 3px 6px; font-size: 15px; }
  .clock { font-size: 14px; gap: 4px; }
  .acct-name { max-width: 74px; font-size: 15px; }
  .win .card-head { flex-wrap: wrap; }
}

.me-actions { display: flex; flex-wrap: wrap; }
.me-actions .btn { flex: 1 1 auto; overflow: visible; font-size: 15px; padding: 3px 8px; }

.me-rank { font-size: 15px; color: #ff9fe0; font-weight: 700; letter-spacing: 0.5px; }
.plist .sub .rk { color: #ff9fe0; font-weight: 600; }
#rank-note b { color: var(--ink); }

#win-rank { width: min(560px, calc(100vw - 2 * var(--gap))); }
.win .card-head { flex-wrap: wrap; row-gap: 6px; }
.plist li { grid-template-columns: 22px minmax(0, 1fr) auto; }
.plist.rank li { grid-template-columns: 34px 22px minmax(0, 1fr) auto; }
.plist .nm, .plist .sub { min-width: 0; }

.pips i.x { background: #3fd0c9; }
.pips i.x.used { background: transparent; outline: 1px dashed #2f6f78; outline-offset: -1px; }
.orders-next { font-size: 14px; margin: -2px 0 6px; }
.orders-next .xtra { color: #3fd0c9; }
.pip-rows { display: inline-flex; flex-direction: column; gap: 3px; align-items: flex-end; }
.queue { list-style: none; margin: 6px 0 2px; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.queue li { display: flex; justify-content: space-between; align-items: center; background: #14204a; border: 1px solid var(--line); padding: 2px 6px; font-size: 15px; }
.q-x { background: none; border: 0; color: var(--dim); cursor: pointer; font-size: 15px; padding: 0 2px; }
.q-x:hover { color: #ff8a8a; }


.brand, .card h2, .win h2, .modal h2, .me-name, .sheet h2, .sheet-name, h3, h4 { font-family: var(--font-pixel); font-weight: 700; letter-spacing: 0.3px; }
.btn { font-weight: 700; }
b, strong { font-weight: 800; }


.crew { padding: 6px 8px; }
.crew-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; font-size: 14px; margin-bottom: 4px; }
.crew-head .dim { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crew ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.crew li { display: grid; grid-template-columns: 1fr 104px; grid-template-rows: auto auto; column-gap: 6px; cursor: pointer; font-size: 13px; line-height: 1.15; }
.crew li:hover .cn { color: var(--gold); }
.crew .cn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crew .cs { grid-column: 1; font-size: 11px; }
.crew .cb { grid-column: 2; grid-row: 1 / 3; align-self: center; position: relative; height: 14px; background: #2a1a24; border: 1px solid #000; }
.crew .cb i { position: absolute; inset: 0 auto 0 0; background: #3fbf5f; }
.crew .cb.mid i { background: #d8b23a; }
.crew .cb.low i { background: #d8493a; }
.crew .cb em { position: relative; display: block; text-align: center; font-style: normal; font-size: 11px; line-height: 12px; color: #fff; text-shadow: 0 1px 0 #000; }
.crew .ff { font-style: normal; font-size: 10px; color: #0a1430; background: var(--gold); padding: 0 3px; margin-left: 2px; }


.isle { position: fixed; z-index: 5; right: var(--gap); width: 360px; top: calc(var(--top) + var(--gap) * 2 + (100% - var(--top) - var(--gap) * 2) / 2);
  bottom: auto; max-height: calc((100% - var(--top) - var(--gap) * 2) / 2 - var(--gap)); display: flex; flex-direction: column; min-height: 0; padding: 8px 10px; }
.isle[hidden] { display: none; }
@media (max-width: 1180px) { .isle { width: 310px; } }
@media (max-width: 820px) { .isle { left: var(--gap); right: var(--gap); width: auto; top: auto; bottom: 64px; max-height: 45vh; z-index: 9; } }
.isle-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; margin-bottom: 6px; }
.isle-head h2 { font-size: 18px; }
.isle-head .win-x { position: static; }
.isle-list { overflow-y: auto; min-height: 0; }
.isle-list li.boss { background: rgba(170, 40, 40, 0.18); }
.isle-list li.empty { display: block; color: var(--dim); }


.opts { border: 1px solid var(--line); margin: 0 0 10px; padding: 6px 10px 8px; }
.opts legend { padding: 0 4px; font-weight: 800; }
.opts label { display: flex; align-items: center; gap: 8px; padding: 3px 0; cursor: pointer; }
.opts input { width: 16px; height: 16px; accent-color: var(--gold); }


.paper, .paper-win {
  background:
    radial-gradient(ellipse at 30% 0%, rgba(255, 250, 230, 0.55), transparent 60%),
    repeating-linear-gradient(0deg, rgba(120, 90, 40, 0.035) 0 1px, transparent 1px 3px),
    #efe2bf;
  font-family: var(--font-paper); font-weight: 500;
}
.paper-head { align-items: flex-start; border-bottom: 0; padding: 8px 12px 0; }
.mast { flex: 1; text-align: center; border-bottom: 4px double #5c4524; padding-bottom: 4px; }
.mast-sub { display: block; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--paper-dim); border-bottom: 1px solid #b49c6a; padding-bottom: 2px; margin-bottom: 2px; }
.paper .mast h2, .paper-win .mast h2 { font-family: var(--font-mast); font-weight: 900; font-size: 30px; letter-spacing: 0.5px; line-height: 1.05; color: #2a1d0e; }
.mast-date { display: block; font-size: 12px; font-style: italic; color: #5c4524; border-top: 1px solid #b49c6a; margin-top: 3px; padding-top: 2px; }
.paper-open { align-self: flex-start; margin-left: 6px; font-family: var(--font); }
.paper .ntabs, .paper-win .ntabs { font-family: var(--font); }
.ntab { font-weight: 800; font-size: 14px; }
.news { counter-reset: n; }
.news li { font-size: 15.5px; line-height: 1.35; padding: 8px 2px 8px 10px; border-bottom: 1px solid #cdb886; }
.news li .kick { display: block; font-family: var(--font); font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #8b5a2b; margin-bottom: 1px; }
.news li .kick .when { font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--paper-dim); display: inline; font-size: 11px; }
.news li .body { display: block; }
.news li.big .body { font-family: var(--font-mast); font-weight: 700; font-size: 18px; line-height: 1.2; }
.news li.big::before { content: none; }
.news li.big .kick::before { content: "◆ "; color: #a8352b; }
.news li.c-xp .kick, .news li.c-mio .kick, .news li.c-banda .kick { color: inherit; }
.news .tag { font-size: 10px; padding: 0 3px; margin-right: 5px; letter-spacing: 0.5px; vertical-align: 1px; }
.paper-win .news li { font-size: 17px; }
.paper-win .news li.big .body { font-size: 21px; }
.paper-win .legend { font-family: var(--font); }


.modal-box.wide.xwide { max-width: 980px; }
.tbl.members td.bnt { color: var(--gold); font-weight: 800; text-align: right; white-space: nowrap; }
.tbl.members .rk { color: #ff9fe0; font-weight: 700; font-size: 12px; }
.hpb { display: inline-block; width: 70px; height: 10px; background: #2a1a24; border: 1px solid #000; position: relative; vertical-align: middle; }
.hpb i { position: absolute; inset: 0 auto 0 0; background: #3fbf5f; }
.hpb.mid i { background: #d8b23a; }
.hpb.low i { background: #d8493a; }
.clan-total { margin: 4px 0 8px; }
.clan-total b { color: var(--gold); }

.duel-log p.me { color: #6fe08a; }
.duel-log p.foe { color: #ff7b72; }
.duel-log p.miss { color: #c9a2ff; font-style: italic; }
.duel-log p.hot { color: var(--gold); font-weight: 800; }
.duel-watch { margin: 8px 0 0; text-align: center; }


.dd-btn { position: relative; }
.dd-btn .cbadge { position: absolute; top: -7px; right: -7px; }
.dd-btn.ring { animation: purupuru 0.9s ease-in-out 2; }
@keyframes purupuru { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(-9deg); } 30% { transform: rotate(8deg); } 45% { transform: rotate(-6deg); } 60% { transform: rotate(5deg); } 75% { transform: rotate(-2deg); } }

.dm-win {
  display: block; padding: 0; overflow: hidden;
  width: min(880px, calc(100vw - 2 * var(--gap))); height: min(560px, calc(100vh - var(--top) - 3 * var(--gap)));
  border: 2px solid #8b6a3e;
  background:
    linear-gradient(to bottom, transparent calc(100% - 64px), #6b4a2b calc(100% - 64px), #5a3d22 calc(100% - 60px), #6b4a2b calc(100% - 59px)),
    repeating-linear-gradient(90deg, transparent 0 118px, rgba(0, 0, 0, 0.18) 118px 120px),
    radial-gradient(ellipse at 30% 30%, #4a3420, #231609 75%);
}
.dm-win .win-x { color: #f2cf7a; z-index: 5; }
.dm-snail { position: absolute; left: 6px; bottom: 30px; width: 196px; height: 226px; z-index: 1; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.35)); }
.dm-snail svg { width: 100%; height: 100%; display: block; }
.dm-shell {
  position: absolute; z-index: 2; left: 158px; right: 20px; top: 16px; bottom: 26px;
  border-radius: 44% 50% 42% 46% / 46% 50% 46% 50%; padding: 30px 38px;
  border: 6px solid #e2b558; box-shadow: inset 0 0 0 4px #7a5a24, 0 6px 0 rgba(0, 0, 0, 0.45);
  
  background:
    repeating-radial-gradient(circle at 16% 40%, #2c8a85 0 14px, #e2b558 14px 17px, #1d6763 17px 29px, #f0cf7c 29px 31px, #24797a 31px 40px, #b58a36 40px 42px);
}
.dm-screen {
  height: 100%; display: flex; flex-direction: column; overflow: hidden; color: #e6f2ff;
  border-radius: 34px; border: 4px solid #f0cf7c; box-shadow: inset 0 0 28px rgba(120, 200, 255, 0.25), 0 0 0 3px #7a5a24;
  background: radial-gradient(ellipse at 50% 35%, #22578a, #0c2240 72%);
}
.dm-status { display: flex; justify-content: space-between; align-items: center; padding: 7px 26px 5px; font: 13px var(--font-pixel); color: #bfe2ff; border-bottom: 1px solid rgba(191, 226, 255, 0.15); }
.dm-status b { letter-spacing: 2px; color: #f0cf7c; font-weight: 400; }
.dm-signal { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.dm-signal i { width: 3px; background: #bfe2ff; }
.dm-signal i:nth-child(1) { height: 4px; } .dm-signal i:nth-child(2) { height: 6px; } .dm-signal i:nth-child(3) { height: 9px; } .dm-signal i:nth-child(4) { height: 12px; }
.dm-body { flex: 1; min-height: 0; display: flex; }
.dm-contacts { width: 220px; flex: none; border-right: 1px solid rgba(191, 226, 255, 0.15); display: flex; flex-direction: column; min-height: 0; }
.dm-ctitle { font: 700 12px var(--font); text-transform: uppercase; letter-spacing: 1px; color: #8fb6d8; padding: 8px 12px 4px; }
#dm-list { list-style: none; margin: 0; padding: 0 4px 6px; overflow-y: auto; flex: 1; scrollbar-width: thin; scrollbar-color: #3e6d9a transparent; }
#dm-list li { display: flex; align-items: center; gap: 8px; padding: 7px 8px; cursor: pointer; border-radius: 10px; }
#dm-list li:hover { background: rgba(255, 255, 255, 0.06); }
#dm-list li.on { background: rgba(240, 207, 124, 0.16); }
#dm-list li.new b { color: #f0cf7c; }
#dm-list li.blk { opacity: 0.55; }
#dm-list .nm { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 15px; }
#dm-list .lst { font-size: 12px; color: #8fb6d8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#dm-list .tag { font-size: 10px; color: #8fb6d8; font-weight: 400; }
#dm-list .dm-empty { cursor: default; display: block; font-size: 13px; color: #8fb6d8; line-height: 1.4; }
#dm-list .dm-empty:hover { background: none; }
.dm-win .dot { width: 9px; height: 9px; border-radius: 50%; background: #5d6f86; flex: none; }
.dm-win .dot.live { background: #5bd46a; box-shadow: 0 0 6px #5bd46a; }
.dm-thread { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dm-head { display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-bottom: 1px solid rgba(191, 226, 255, 0.15); }
.dm-head .who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.dm-head .who b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-head .dim { color: #8fb6d8; }
.dm-head .btn { font-size: 13px; padding: 2px 7px; }
.dm-back { display: none; background: none; border: 0; color: #f0cf7c; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
.dm-msgs { list-style: none; margin: 0; padding: 10px 14px; overflow-y: auto; flex: 1; min-height: 0; display: flex; flex-direction: column; scrollbar-width: thin; scrollbar-color: #3e6d9a transparent; }
.bub { max-width: 78%; padding: 6px 10px 4px; margin: 3px 0; border-radius: 14px; font-size: 15px; line-height: 1.35; word-wrap: break-word; }
.bub.me { align-self: flex-end; background: #e8bf5e; color: #2c2216; border-bottom-right-radius: 3px; }
.bub.them { align-self: flex-start; background: #2a7f7a; color: #eafffb; border-bottom-left-radius: 3px; }
.bub .at { display: block; text-align: right; font-size: 10px; opacity: 0.7; font-variant-numeric: tabular-nums; }
.dm-day, .dm-first { align-self: center; font-size: 12px; color: #8fb6d8; margin: 6px 0; }
.dm-in { display: flex; gap: 6px; padding: 8px 12px 10px; border-top: 1px solid rgba(191, 226, 255, 0.15); }
.dm-in input { flex: 1; min-width: 0; font: 15px var(--font); color: #e6f2ff; background: rgba(4, 14, 30, 0.6); border: 1px solid #3e6d9a; border-radius: 18px; padding: 6px 12px; }
.dm-in input:focus { outline: 2px solid #f0cf7c; outline-offset: -1px; }
.dm-in .btn { border-radius: 18px; }
.dm-note { margin: 0; padding: 10px 14px; font-size: 14px; color: #f0cf7c; border-top: 1px solid rgba(191, 226, 255, 0.15); }
.dm-idle { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 24px; }
.dm-idle p { margin: 4px 0; }
.dm-idle .dim { color: #8fb6d8; max-width: 340px; }
.dm-rings { position: relative; width: 120px; height: 120px; display: grid; place-items: center; margin-bottom: 10px; }
.dm-rings i { position: absolute; inset: 0; border: 2px solid rgba(240, 207, 124, 0.6); border-radius: 50%; animation: dmring 2.4s ease-out infinite; }
.dm-rings i:nth-child(2) { animation-delay: 0.8s; } .dm-rings i:nth-child(3) { animation-delay: 1.6s; }
.dm-rings span { font-size: 30px; }
@keyframes dmring { from { transform: scale(0.3); opacity: 1; } to { transform: scale(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dm-rings i, .dd-btn.ring { animation: none; } }

@media (max-width: 820px) {
  .dm-win { height: calc(100vh - var(--top) - 56px - 2 * var(--gap)); }
  .dm-snail { display: none; }
  .dm-shell { left: 6px; right: 6px; top: 6px; bottom: 6px; border-radius: 26px; padding: 12px; }
  .dm-screen { border-radius: 18px; }
  .dm-contacts { width: 100%; border-right: 0; }
  .dm-thread { display: none; }
  .dm-win.show-thread .dm-contacts { display: none; }
  .dm-win.show-thread .dm-thread { display: flex; }
  .dm-back { display: block; }
  .dm-head .btn[data-a="block"] { display: none; }
}
@media (max-width: 420px) {
  .topbar { gap: 3px; padding: 0 4px; }
  .topbar .btn { padding: 3px 4px; font-size: 14px; }
  .clock { font-size: 13px; }
  .acct-name { max-width: 58px; font-size: 14px; }
}


.doing-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 2px; font-size: 15px; }
.doing { color: #6fd3ff; font-weight: 700; }
.doing::first-letter { text-transform: uppercase; }
.act-pct { color: #6fd3ff; font-size: 14px; }
.act-bar { height: 4px; background: #0a1430; border: 1px solid #22355f; margin-top: 2px; }
.act-bar > i { display: block; height: 100%; background: #6fd3ff; transition: width 0.5s linear; }
.stat-row { display: grid; grid-template-columns: 34px 1fr 40px; align-items: center; gap: 6px; font-size: 13px; color: var(--dim); margin-top: 3px; }
.stat-row .bar { margin: 0; }
.stat-row b { text-align: right; color: var(--ink); font-weight: 600; }


.guide { position: fixed; z-index: 30; left: 50%; bottom: calc(var(--gap) + 8px); transform: translateX(-50%); width: min(460px, calc(100vw - 2 * var(--gap)));
  background: #f3e6c4; color: #3a2a18; border: 2px solid #8b6a3e; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35); padding: 8px 12px 10px; font-size: 15px; }
.guide.min { width: auto; padding: 0; background: none; border: 0; box-shadow: none; }
.guide-min { font: 700 14px var(--font); background: #f3e6c4; color: #3a2a18; border: 2px solid #8b6a3e; padding: 5px 12px; cursor: pointer; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35); }
.guide-head { display: flex; align-items: center; gap: 8px; }
.guide-head b { flex: 1; font-family: 'Playfair Display', serif; font-size: 17px; }
.guide-x { background: none; border: 1px solid #8b6a3e; color: #3a2a18; width: 24px; height: 22px; cursor: pointer; font-weight: 700; }
.guide-dots { display: flex; gap: 4px; margin: 6px 0 4px; }
.guide-dots i { flex: 1; height: 5px; background: #d8c49a; }
.guide-dots i.ok { background: #5a9a4a; }
.guide-dots i.now { background: #c98a2a; }
.guide-text { margin: 4px 0 6px; line-height: 1.4; font-weight: 600; }
.guide-foot { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.guide-foot .dim { color: #7a6448; font-size: 12px; }
.guide .btn.ghost { background: none; color: #7a6448; border-color: #b49a6e; white-space: nowrap; }
@media (max-width: 820px) { .guide { bottom: 62px; } }


.goals-btn { position: relative; border-color: #3f8f4a; color: #8fe39a; }
.goals-btn .cbadge { position: absolute; top: -7px; right: -7px; }
#win-goals h3 { margin: 12px 0 6px; font-size: 16px; }
#win-goals h3 .dim { font-weight: 400; }
.goal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.goal-list li { border: 1px solid var(--line); background: #0d1a3a; padding: 6px 10px; display: grid; gap: 4px; }
.goal-list li.ready { border-color: #3f8f4a; background: #10301e; }
.goal-list li.claimed { opacity: 0.6; }
.goal-list .gl-text { font-size: 15px; }
.goal-list .stat-row { grid-template-columns: 0 1fr 52px; }
.goal-list .gl-ok { color: #8fe39a; font-size: 13px; }
.goal-list .btn { justify-self: start; }


.flag-tabs { display: flex; gap: 6px; margin-bottom: 6px; }
.art-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 4px; max-height: 260px; overflow-y: auto; padding: 2px; }
.art-pick button { background: #0a1430; border: 2px solid var(--line); padding: 3px; cursor: pointer; display: grid; place-items: center; }
.art-pick button.on { border-color: var(--gold); background: #1b2a50; }
.art-pick button:hover { border-color: var(--line-2); }
.skins { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 4px; max-height: 230px; overflow-y: auto; }
.skin { background: #0a1430; border: 2px solid var(--line); color: var(--ink); padding: 4px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; font: 12px var(--font); text-align: center; }
.skin.on { border-color: var(--gold); background: #1b2a50; }
.skin:disabled { cursor: default; opacity: 0.55; }
.skin canvas { height: 40px; width: auto; }
.skin .sk-none { font-size: 26px; line-height: 40px; }
.skin .lock { font-size: 10px; color: var(--dim); }

.orders .maps { font-size: 12px; color: var(--gold); margin-left: 2px; }


.wanted { position: relative; width: 210px; margin: 10px auto 12px; padding: 10px 14px 8px; text-align: center; color: #3b2a17;
  background: radial-gradient(ellipse at 50% 40%, #f1e1b8, #dcc48f 70%, #c9ac72);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.45), inset 0 0 18px rgba(110, 70, 20, 0.35); transform: rotate(-1.2deg);
  font-family: 'Playfair Display', Georgia, serif; }
.wanted::before { content: ''; position: absolute; top: 4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #6b4a2b; box-shadow: 0 1px 0 #2a1a0c; }
.wt-top { font-size: 34px; font-weight: 900; letter-spacing: 3px; line-height: 1; margin-top: 4px; }
.wt-pic { margin: 6px auto 4px; width: 150px; height: 160px; display: grid; place-items: end center; overflow: hidden;
  background: #e9dcb8; border: 3px solid #4a3420; box-shadow: inset 0 0 12px rgba(80, 50, 20, 0.35); }
.wt-pic canvas { image-rendering: pixelated; width: 136px; height: auto; display: block; }
.wt-dead { font-size: 12px; font-weight: 700; letter-spacing: 4px; }
.wt-name { font-size: 18px; font-weight: 900; margin-top: 2px; line-height: 1.15; text-transform: uppercase; }
.wt-bounty { font-size: 22px; font-weight: 900; margin-top: 2px; font-variant-numeric: tabular-nums; }
.wt-b { font-size: 18px; margin-right: 3px; }
.wt-dash { margin-left: 2px; }
.wt-foot { font-size: 10px; letter-spacing: 3px; margin-top: 4px; opacity: 0.75; }


.gm-grid { display: grid; grid-template-columns: 1fr auto; gap: 6px 8px; align-items: center; }
.gm-grid label { display: flex; align-items: center; gap: 8px; }
.gm-grid input, .gm-grid select { flex: 1; min-width: 0; font: 15px var(--font); background: #0a1430; color: var(--ink); border: 1px solid var(--line-2); padding: 4px 6px; }
.gm-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }


.prize-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 6px 0 10px; }
.prize-it { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px; background: #0a1430; color: var(--ink); border: 2px solid var(--line-2); cursor: pointer; font: 15px var(--font); text-align: center; }
.prize-it:hover, .prize-it:focus-visible { border-color: var(--gold, #f5c842); }
.prize-it img { width: 48px; height: 48px; image-rendering: pixelated; }

body:has(#sheet:not([hidden])) .guide { z-index: 7; }


.poster {
  --ink: #2b1a0c; --dim: #6b5236;
  position: relative; text-align: center; color: var(--ink); padding: 14px 16px 44px;
  background: radial-gradient(ellipse at 50% 40%, #f8eed6 0%, #efe0bb 55%, #dcc38f 100%);
  border: 2px solid #3a2509; box-shadow: inset 0 0 0 7px transparent, inset 0 0 0 9px #c08f36, inset 0 0 0 10px #5a3a10, var(--shadow);
}
.poster .pc { position: absolute; z-index: 1; pointer-events: none; image-rendering: pixelated; }
.poster .pc.tl { top: 4px; left: 4px; } .poster .pc.tr { top: 4px; right: 4px; }
.poster .pc.bl { bottom: 4px; left: 4px; } .poster .pc.br { bottom: 4px; right: 4px; }
.pst-head { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 2px 12px;
  background: linear-gradient(#efdcb0, #e2c993); border: 3px solid #c08f36; outline: 1px solid #5a3a10;
  font: 900 30px/1.15 var(--font-mast); letter-spacing: 1px; color: #2b1a0c; }
.pst-skull { display: inline-block; image-rendering: pixelated; }
.pst-skull.r { transform: scaleX(-1); }
.pst-pic { cursor: pointer; display: flex; justify-content: center; margin: 6px 0 2px; }
.pst-frame { position: relative; }
.pst-hole { position: absolute; overflow: hidden; }
.pst-deco { position: absolute; inset: 0; image-rendering: pixelated; pointer-events: none; }
.face { display: block; background-repeat: no-repeat; image-rendering: pixelated; }
.pst-dead { font: 700 15px var(--font-mast); letter-spacing: 3px; margin-top: 2px; }
.pst-name { font: 900 27px/1.1 var(--font-mast); text-transform: uppercase; overflow-wrap: anywhere; }
.pst-fac { display: inline-block; margin: 3px 0 2px; padding: 0 8px; font: 700 15px var(--font); background: #2a1410; border: 2px solid; }
.pst-line { font-size: 14px; line-height: 1.3; color: #3b2a17; margin-top: 1px; }
.pst-line .dim { color: var(--dim); }
.pst-title { color: #6b3f0a; }
.pst-bounty { font: 900 30px/1.2 var(--font-mast); margin: 4px 0 6px; white-space: nowrap; }
.pst-bounty .b { font-size: 0.9em; }
.pst-stats { position: relative; z-index: 2; display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 1px 8px; text-align: left; font-size: 15px;
  padding: 6px 10px; background: rgba(255, 248, 228, 0.45); border: 2px solid #c08f36; outline: 1px solid #5a3a10; outline-offset: -4px; }
.pst-stats .k { white-space: nowrap; }
.pst-stats .v { text-align: right; font-weight: 700; padding-right: 6px; }
.pst-stats .ic { font-style: normal; margin-right: 3px; font-size: 0.85em; }
.pst-stats .fruit { color: #8e2a8e; }
.pst-bars { position: relative; z-index: 2; text-align: left; margin: 6px 26px 0; }
.poster.compact .pst-bars { margin: 4px 18px 0; }
.poster .stat-row { color: var(--ink); font-size: 14px; }
.poster .stat-row b { color: var(--ink); }
.poster .bar { background: #20301f; border-color: #3a2509; height: 10px; }
.poster .bar > i { background: #63b04a; }
.poster .bar.xp > i { background: #4d8fd8; }
.poster .xp-num { color: var(--dim); }
.pst-stamp { position: absolute; z-index: 3; left: 50%; bottom: 8px; transform: translateX(-50%) rotate(-6deg); padding: 0 6px;
  font: 900 20px var(--font-mast); color: #b3261e; border: 3px solid #b3261e; opacity: 0.82; pointer-events: none; }
.poster .doing-row { display: inline; margin: 0; }
.poster .doing { color: #8a4b00; }
.poster .act-pct { color: #8a4b00; margin-left: 4px; }
.poster .act-bar { display: block; width: 70%; margin: 3px auto 0; height: 5px; background: #d9c08e; border-color: #8b6a3e; }
.poster .act-bar > i { background: #b8862f; }
.poster .me-clan { color: #3b2a17; }


.poster.compact { padding: 10px 12px 30px; }
.poster.compact .pst-head { font-size: 21px; padding: 1px 8px; gap: 5px; }
.poster.compact .pst-pic { margin: 4px 0 0; }
.poster.compact .pst-dead { font-size: 12px; }
.poster.compact .pst-name { font-size: 20px; }
.poster.compact .pst-fac { font-size: 13px; }
.poster.compact .pst-line { font-size: 13px; }
.poster.compact .pst-bounty { font-size: 22px; margin: 2px 0 4px; }
.poster.compact .pst-stats { font-size: 13.5px; padding: 4px 8px; }
.poster.compact .stat-row { font-size: 12px; margin-top: 2px; }
.poster.compact .bar { height: 8px; }
.poster.compact .pst-stamp { font-size: 14px; bottom: 6px; border-width: 2px; }
#me.me-poster { background: none; border: 0; box-shadow: none; padding: 0; display: flex; flex-direction: column; gap: var(--gap); overflow-y: auto; min-height: 0; flex-shrink: 1; }
#me.me-poster > .poster { flex-shrink: 0; }
.me-orders { flex-shrink: 0; }


.sheet.sheet-poster { background: none; border: 0; box-shadow: none; padding: 0; scrollbar-color: #8b6a3e transparent; }
.sheet.sheet-poster .sheet-close { z-index: 5; top: 12px; right: 12px; width: 34px; height: 34px; padding: 0; font-size: 20px; line-height: 1;
  color: #5a3a10; background: linear-gradient(#efdcb0, #d9c08e); border: 2px solid #8b6a3e; outline: 1px solid #3a2509; }
.sheet.sheet-poster .sheet-close:hover { color: #2b1a0c; background: #f3e3bd; }
.sheet-body { --ink: #2b1a0c; --dim: #6b5236; color: var(--ink); padding: 6px 16px 12px; background: #ecdcb6;
  border: 2px solid #3a2509; border-top: 0; box-shadow: inset 0 0 0 7px transparent, inset 0 -9px 0 -7px transparent, var(--shadow); }
.sheet-body h4 { color: #6b3f0a; }
.sheet-body .equip li { border-bottom-color: #d2bb8a; }
.sheet-body .equip .none { color: #a08a64; }
.sheet-body .label { color: var(--dim); }
.sheet-body .sheet-actions { --ink: #e9eefc; --dim: #93a3c8; }
.sheet-poster .poster { box-shadow: inset 0 0 0 7px transparent, inset 0 0 0 9px #c08f36, inset 0 0 0 10px #5a3a10; }


.creator-preview { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cr-poster { padding: 8px; background: radial-gradient(ellipse at 50% 40%, #f8eed6 0%, #e6d2a6 100%); border: 2px solid #3a2509; }
.cr-map { display: flex; align-items: flex-end; gap: 8px; }
.face-tabs { display: flex; flex-wrap: wrap; gap: 2px; margin: 4px 0; }
.face-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)); gap: 4px; max-height: 190px; overflow-y: auto; padding: 4px; background: #0a1430; border: 1px solid var(--line-2); }
.face-pick { padding: 0; border: 2px solid transparent; background: #3a2a18; cursor: pointer; display: flex; justify-content: center; }
.face-pick.on, .face-pick:focus-visible { border-color: var(--gold); }
.face-pick:hover { border-color: #c08f36; }
.creator { grid-template-columns: 262px 1fr; }
.creator-preview .cr-map canvas { width: auto; height: 64px; }
@media (max-width: 640px) { .creator { grid-template-columns: 1fr; } }


.face { position: relative; overflow: hidden; display: block; }
.face-in { position: absolute; top: 0; display: block; background-repeat: no-repeat; image-rendering: pixelated; }
.face-in .av { position: absolute; display: block; background-repeat: no-repeat; image-rendering: pixelated; pointer-events: none; }
.face.has-aura { box-shadow: inset 0 0 14px 4px var(--aura); }
.face .av-aura { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: 0.55;
  background: radial-gradient(ellipse at 50% 55%, transparent 40%, var(--aura) 100%); animation: aura-pulse 2.4s ease-in-out infinite; }
@keyframes aura-pulse { 50% { opacity: 0.9; } }
@media (prefers-reduced-motion: reduce) { .face .av-aura { animation: none; } }
.av-ic { display: inline-block; image-rendering: pixelated; flex-shrink: 0; }

.duel-face { border: 2px solid #c08f36; outline: 1px solid #3a2509; box-shadow: 0 0 0 3px #1a1206; background: #3a2a18; }
.dside .duel-face { justify-self: center; }
.dside.foe .duel-face { order: 2; }
.challenge .duel-face { flex-shrink: 0; }
@media (max-width: 820px) { .dside.foe .duel-face { order: 0; } }
.dside { grid-template-columns: 66px 1fr; }
.dside.foe { grid-template-columns: 1fr 66px; }
@media (max-width: 820px) { .dside { grid-template-columns: 66px 1fr !important; } }


.inv-tabs { display: flex; gap: 4px; margin: -4px 0 10px; }
.av-grid { display: grid; grid-template-columns: 290px 1fr; gap: 16px; align-items: start; }
.av-preview { display: flex; justify-content: center; padding: 8px 0; background: radial-gradient(ellipse at 50% 40%, #f8eed6 0%, #e6d2a6 100%); border: 2px solid #3a2509; }
.av-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 8px 0 6px; }
.av-slot { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 2px; min-height: 66px; justify-content: center;
  background: #0a1430; color: var(--ink); border: 2px solid var(--line-2); cursor: pointer; font: 13px var(--font); }
.av-slot .e { font-size: 22px; opacity: 0.45; height: 40px; line-height: 40px; }
.av-slot.on { border-color: var(--gold); }
.av-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 4px; max-height: 300px; overflow-y: auto; padding: 4px; background: #0a1430; border: 1px solid var(--line-2); }
.av-it { position: relative; display: flex; justify-content: center; align-items: center; padding: 4px; min-height: 54px; background: #16264a; border: 2px solid transparent; cursor: pointer; }
.av-it.prem { background: linear-gradient(#2a2410, #16264a); }
.av-it.own { background: #1d3a2a; }
.av-it.wear { border-color: var(--green); }
.av-it.on, .av-it:focus-visible { border-color: var(--gold); }
.av-it .crown { position: absolute; top: 0; left: 2px; font-size: 11px; }
.av-it .tick { position: absolute; bottom: 0; right: 3px; font-size: 12px; color: var(--green); font-weight: 800; }
.av-detail { display: flex; gap: 10px; align-items: center; margin-top: 8px; min-height: 66px; padding: 6px; background: #0a1430; border: 1px solid var(--line-2); }
.av-detail .acts { margin-top: 4px; display: flex; gap: 6px; }
.av-detail .prem, .prem { color: var(--gold); font-weight: 700; font-size: 13px; }
@media (max-width: 760px) { .av-grid { grid-template-columns: 1fr; } }


#win-rank.board {
  width: min(860px, calc(100vw - 2 * var(--gap))); height: calc(100vh - var(--top) - 3 * var(--gap)); padding: 0; overflow: hidden;
  border: 6px solid #3a2210; outline: 2px solid #1a0e05; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  background:
    repeating-linear-gradient(180deg, transparent 0 58px, rgba(0, 0, 0, 0.35) 58px 60px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 3px, transparent 3px 9px),
    linear-gradient(180deg, #7a4a24, #6a3d1c 40%, #5c3418);
}
#win-rank.board .win-x { z-index: 3; top: 10px; right: 12px; color: #f3dfb4; background: #2a170a; border: 2px solid #8b5a2b; width: 32px; height: 32px; }
.rk { display: flex; flex-direction: column; height: 100%; min-height: 0; color: #f3e5c3; }
.rk-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; padding: 12px 50px 6px; }
.rk-tab { font: 800 15px var(--font); padding: 5px 14px; color: #f3e5c3; background: #1d2c55; border: 2px solid #0e1630; border-radius: 6px; cursor: pointer; box-shadow: 0 2px 0 #0e1630; }
.rk-tab.on { background: #f2b632; color: #2b1a0c; border-color: #9a6a12; }
.rk-tab:focus-visible { outline: 2px solid #fff; }
.rk-banner { position: relative; align-self: center; margin: 4px 0 8px; padding: 6px 48px 8px; text-align: center;
  background: linear-gradient(#6b3f1d, #4e2c12); border: 3px solid #2a170a; box-shadow: inset 0 0 0 2px #8b5a2b, 0 4px 0 rgba(0, 0, 0, 0.35); }
.rk-banner h2 { margin: 0; font: 900 34px/1 var(--font-mast); letter-spacing: 4px; color: #f6e7c4; text-shadow: 0 2px 0 #2a170a; }
.rk-banner p { margin: 4px 0 0; font: 700 11px var(--font); letter-spacing: 2px; text-transform: uppercase; color: #e3c995; }
.rk-banner .nail { position: absolute; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #a5a5a5 60%, #555); }
.rk-banner .nail.l { left: 14px; } .rk-banner .nail.r { right: 14px; }
.rk-search-wrap { align-self: center; display: flex; align-items: center; gap: 8px; width: min(420px, 86%); padding: 6px 14px; margin-bottom: 8px;
  background: #3a210e; border: 2px solid #22130a; border-radius: 999px; box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5); }
.rk-search { flex: 1; min-width: 0; background: none; border: 0; color: #f3e5c3; font: 15px var(--font); outline: none; }
.rk-search::placeholder { color: #b99a6c; }
.rk-seas { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; padding: 0 16px 8px; }
.rk-sea { font: 700 13px var(--font); padding: 3px 10px; color: #3b2612; background: #e9d3a3; border: 2px solid #8b5a2b; cursor: pointer; box-shadow: 0 2px 0 #2a170a; }
.rk-sea.on { background: #f2b632; }
.rk-body { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 20px 20px; scrollbar-color: #b07a3c #3a210e; }
.rk-note { margin: 2px 0 6px; font-size: 13px; color: #e8cfa0; text-align: center; }
.rk-rules { color: #c9ad7d; font-size: 12px; }
.rk-h { display: flex; align-items: center; gap: 10px; margin: 16px 0 10px; font: 900 19px var(--font-mast); letter-spacing: 1px; text-transform: uppercase; color: #f6e7c4; text-shadow: 0 2px 0 #2a170a; }
.rk-h span { font: 600 12px var(--font); letter-spacing: 0; text-transform: none; color: #d9bd8c; text-shadow: none; }
.rk-h::after { content: ''; flex: 1; height: 2px; background: linear-gradient(90deg, #c9a46a, transparent); }
.rk-empty { color: #d9bd8c; font-style: italic; margin: 4px 0 8px; }
.rk-posters { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 16px 12px; }
.rk-posters.big { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 18px 16px; }
.rk-poster { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 12px 8px 6px; cursor: pointer; text-align: center;
  color: #2b1a0c; font-family: var(--font); background: radial-gradient(ellipse at 50% 35%, #f8eed6, #ead7ab 70%, #d6bb83);
  border: 1px solid #8b6a3e; box-shadow: 0 6px 12px rgba(0, 0, 0, 0.45), inset 0 0 0 4px rgba(255, 255, 255, 0.18), inset 0 0 0 5px #c9a873;
  transform: rotate(var(--tilt, -1deg)); transition: transform 0.15s; }
.rk-poster:nth-child(2n) { --tilt: 1.2deg; } .rk-poster:nth-child(3n) { --tilt: -0.4deg; }
.rk-poster:hover, .rk-poster:focus-visible { transform: rotate(0) translateY(-3px) scale(1.03); outline: none; z-index: 1; }
.rk-poster.mine { box-shadow: 0 0 0 3px var(--gold), 0 6px 12px rgba(0, 0, 0, 0.45); }
.rk-poster .pin { position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe7a0, #e0a92a 55%, #7a5208); box-shadow: 0 2px 2px rgba(0, 0, 0, 0.5); }
.rk-posters:not(.big) .rk-poster .pin { background: radial-gradient(circle at 35% 35%, #ff9a8a, #d0392b 55%, #6e140c); }
.rk-tag { position: absolute; top: 4px; right: -6px; padding: 0 5px; font: 800 9px var(--font); color: #fff; background: #c0392b; transform: rotate(12deg); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); }
.rk-wanted { font: 900 17px/1.1 var(--font-mast); letter-spacing: 1px; }
.rk-poster.big .rk-wanted { font-size: 24px; }
.rk-pic { display: block; margin: 3px 0; padding: 3px; background: #d9c39a; border: 2px solid #6b4a24; box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.4); }
.rk-pic.flagpic { padding: 10px 6px; background: #efe0bb; }
.rk-dead { font: 700 9px var(--font-mast); letter-spacing: 1px; color: #4a3419; }
.rk-poster.big .rk-dead { font-size: 11px; }
.rk-name { font: 900 14px/1.1 var(--font-mast); overflow-wrap: anywhere; }
.rk-poster.big .rk-name { font-size: 19px; }
.rk-alias { font: italic 600 11px var(--font-paper); color: #5a4022; }
.rk-poster.big .rk-alias { font-size: 13px; }
.rk-bounty { display: flex; align-items: center; gap: 4px; font: 900 14px var(--font-mast); white-space: nowrap; }
.rk-poster.big .rk-bounty { font-size: 19px; }
.rk-bounty .coin { display: inline-block; width: 0.85em; height: 0.85em; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff2a8, #e0a92a 55%, #8a5d0a); border: 1px solid #6b4508; }
.rk-foot { display: flex; justify-content: space-between; gap: 6px; width: 100%; margin-top: 3px; padding-top: 2px; border-top: 1px solid #b8955f;
  font: 800 8px var(--font); letter-spacing: 0.5px; text-transform: uppercase; color: #5a4022; }
.rk-poster.big .rk-foot { font-size: 10px; }
.rk-rest { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rk-rest li { display: grid; grid-template-columns: 34px auto 1fr auto; gap: 10px; align-items: center; padding: 5px 10px; cursor: pointer;
  color: #2b1a0c; background: linear-gradient(90deg, #f0e0b8, #e5cf9d); border: 1px solid #8b6a3e; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35); }
.rk-rest li:hover { background: #f8ebc8; }
.rk-rest li.mine { outline: 2px solid var(--gold); }
.rk-rest .pos { font: 900 16px var(--font-mast); text-align: center; color: #6b3f0a; }
.rk-rest .face { border: 1px solid #6b4a24; }
.rk-rest .who { display: flex; flex-direction: column; min-width: 0; }
.rk-rest .who b { font: 800 14px var(--font); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-rest small { color: #6b5236; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-rest .amt { display: flex; flex-direction: column; align-items: flex-end; }
.rk-rest .amt b { font: 900 14px var(--font-mast); }
@media (max-width: 640px) {
  .rk-banner h2 { font-size: 26px; } .rk-body { padding: 4px 10px 16px; }
  .rk-posters.big { grid-template-columns: repeat(2, 1fr); } .rk-posters { grid-template-columns: repeat(3, 1fr); gap: 12px 8px; }
}
.rk-foot > span { white-space: nowrap; }
.rk-foot .reg { overflow: hidden; text-overflow: ellipsis; min-width: 0; }


.loading.intro { background: #06101f; overflow: hidden; transition: opacity 0.8s; }
.intro-sea { position: absolute; inset: -40px; background: url(/client/assets/intro-sea.jpg) center / cover no-repeat;
  filter: blur(6px) saturate(1.1); transform: scale(1.06); animation: intro-drift 14s ease-in-out infinite alternate; }
@keyframes intro-drift { to { transform: scale(1.12) translate(-14px, 8px); } }
.intro .loading-box { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 16px; }
.intro-img { width: auto; height: min(68vh, 560px); max-width: 88vw; object-fit: contain; display: block;
  box-shadow: 0 0 0 3px #0b0b0b, 0 0 0 5px #d9d2c2, 0 20px 60px rgba(0, 0, 0, 0.7);
  opacity: 0; transform: scale(0.97); animation: intro-in 1.2s ease-out 0.15s forwards; }
@keyframes intro-in { to { opacity: 1; transform: scale(1); } }
.intro #loading-text { margin: 0; font: 700 15px var(--font); letter-spacing: 1px; color: #dfe8ff; text-shadow: 0 2px 6px #000; }
.intro-skip { font: 800 15px var(--font); padding: 6px 16px; color: #2b1a0c; background: var(--gold); border: 2px solid #8a5d0a; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .intro-sea, .intro-img { animation: none; opacity: 1; transform: none; } }
.trade-pick { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; max-height: 50vh; overflow-y: auto; }
.trade-pick li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 8px; background: #0a1430; border: 1px solid var(--line-2); }
.trade-pick li > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.portrait-grid { max-height: 260px; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); }
.parts-title { display: block; margin-bottom: 2px; }

.gm-fruits { max-height: 320px; overflow: auto; margin-top: 6px; }
.gm-ftable { width: 100%; border-collapse: collapse; font-size: 13px; }
.gm-ftable td { padding: 4px 6px; border-bottom: 1px solid rgba(255, 255, 255, .08); vertical-align: middle; }
.gm-fact { white-space: nowrap; text-align: right; }
.gm-fact .btn { padding: 2px 8px; margin-left: 4px; font-size: 12px; }

.ic-coin { display: inline-block; width: .85em; height: .85em; border-radius: 50%; vertical-align: -.08em;
  background: radial-gradient(circle at 35% 30%, #fff3b0 0 18%, #f2c23a 40%, #b9821a 100%); box-shadow: inset 0 0 0 1.5px #8a5a10; }

.stash { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.stash li { display: grid; grid-template-columns: 40px 1fr auto; gap: 8px; align-items: center; padding: 6px; background: #241238; border: 1px solid #7b3fb0; }
.stash img { image-rendering: auto; }

#announce { position: fixed; left: 50%; top: 32%; transform: translate(-50%, -50%) scale(.6); opacity: 0; pointer-events: none; z-index: 900; transition: opacity .25s, transform .25s; }
#announce.on { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; animation: ann-pop .5s ease-out; }
#announce .ann-card { display: flex; align-items: center; gap: 16px; max-width: min(92vw, 620px); padding: 16px 22px; background: radial-gradient(ellipse at 30% 30%, #4a1d78, #1d0b33 70%);
  border: 3px solid #d38cff; box-shadow: 0 0 0 3px #1d0b33, 0 0 40px rgba(200, 110, 255, .75); color: #fbefff; }
#announce img { flex: none; image-rendering: auto; filter: drop-shadow(0 0 10px rgba(230, 160, 255, .9)); animation: ann-float 1.6s ease-in-out infinite; }
#announce .ann-head { display: block; font: 700 22px "Pixelify Sans", monospace; letter-spacing: .04em; color: #ffd8ff; text-shadow: 0 0 10px #b65cff; }
#announce p { margin: 6px 0 0; font-size: 17px; font-weight: 700; }
@keyframes ann-pop { 0% { transform: translate(-50%, -50%) scale(.5); } 60% { transform: translate(-50%, -50%) scale(1.08); } 100% { transform: translate(-50%, -50%) scale(1); } }
@keyframes ann-float { 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { #announce.on, #announce img { animation: none; } }

.restart-warn { position: fixed; top: 0; left: 0; right: 0; z-index: 950; padding: 6px 12px; text-align: center; font-weight: 700; background: #b8461f; color: #fff4dc; box-shadow: 0 2px 0 #5a1d08; }
.restart-veil { position: fixed; inset: 0; z-index: 960; display: grid; place-items: center; background: rgba(8, 14, 30, .72); color: #fff4dc; text-align: center; }
.restart-veil b { font: 700 24px "Pixelify Sans", monospace; }
.env-badge { position: fixed; left: 50%; bottom: 8px; transform: translateX(-50%); z-index: 940; padding: 3px 10px; font: 700 12px "Pixelify Sans", monospace; letter-spacing: .08em; background: #c0262d; color: #fff; border: 2px solid #ffd2c4; pointer-events: none; }


.tribute-offer .tribute-ico { font-size: 34px; line-height: 1; }
.tribute-panel { position: fixed; right: 16px; bottom: 16px; z-index: 25; width: min(420px, calc(100vw - 32px)); max-height: 60vh; overflow-y: auto; }
.tribute-panel .tribute-fight { color: var(--gold); margin: 4px 0 8px; }
.tribute-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tribute-cols ul { list-style: none; margin: 4px 0 0; padding: 0; }
.tribute-cols li { display: flex; flex-direction: column; gap: 2px; margin-bottom: 5px; font-size: 13px; }
.tribute-cols li.dead { opacity: 0.45; text-decoration: line-through; }
.tribute-cols .bar { display: block; height: 4px; background: rgba(255,255,255,0.12); }
.tribute-cols .bar i { display: block; height: 100%; background: #5fd068; }


.album-top { display: grid; grid-template-columns: 1fr minmax(220px, 300px); gap: 12px; align-items: start; margin-bottom: 6px; }
.album-bar { display: grid; grid-template-columns: 34px 1fr auto; gap: 6px; align-items: center; font-size: 13px; margin-top: 3px; }
.album-bar .bar { height: 8px; }
.album-bar .bar i { background: #b070ff; }
.album-maestro { margin: 6px 0; }
.album-grid { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; max-height: 52vh; overflow-y: auto; }
.album-grid li { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border: 2px solid var(--line); text-align: center; font-size: 12px; min-height: 96px; }
.album-grid li img { image-rendering: pixelated; }
.album-grid li .nm { font-size: 12px; line-height: 1.15; }
.album-grid li .tp { font-size: 11px; color: var(--ink-dim, #9aa); }
.album-grid li.unk { opacity: 0.55; }
.album-grid li.unk .q { width: 48px; height: 48px; display: grid; place-items: center; font-size: 22px; background: rgb(14,22,34); border: 3px solid #2a3550; color: #56627e; }
.album-grid li.done { border-color: var(--gold-2); box-shadow: 0 0 8px rgba(240,200,80,0.25); }
@media (max-width: 640px) { .album-top { grid-template-columns: 1fr; } }

.travel.compass { max-height: 180px; overflow-y: auto; }
.travel.compass p { grid-column: 1 / -1; margin: 4px 0 0; }
.travel.compass .btn { font-size: 14px; }


.pg-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; max-height: 56vh; overflow-y: auto; }
.pg-list li { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: start; padding: 8px; border: 2px solid var(--line); }
.pg-list li img { image-rendering: pixelated; }
.pg-list li.unk b { letter-spacing: 2px; }
.pg-text { margin: 4px 0 0; font-size: 13px; line-height: 1.35; font-style: italic; }
