/* Side columns: windows (login, status, shop, top level), the download button and the scroll menu. */

/* ---- window: window blue with a double gold frame ---- */
.win {
  position: relative; color: #e8f2ff; border: 1px solid #000; border-radius: 2px;
  background: var(--window) var(--tex-stone) 0 0 / 96px 96px; background-blend-mode: soft-light;
  box-shadow: inset 0 0 0 1px var(--gold-light), inset 0 0 0 4px var(--window), inset 0 0 0 5px #ffe08a55, 0 14px 28px #0009;
}
.win-h {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 14px 10px;
  background: linear-gradient(90deg, transparent, #ffe08acc, transparent) center bottom / 84% 1px no-repeat;
}
.win-h img { width: 32px; height: 32px; image-rendering: pixelated; }
.win-h h2 { font: 900 13.5px var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); text-shadow: var(--outline), 0 2px 0 #000; }
.win-h a { position: absolute; right: 14px; top: 50%; margin-top: -6px; font: 800 11.5px var(--font-body); color: var(--gold-light); text-decoration: none; }
.win-h a:hover { color: var(--gold); }
.win-b { padding: 12px 16px 14px; }
.win .btn-gold {
  min-height: 40px; border-radius: 2px; border: 1px solid #3a2400; background: linear-gradient(#f6d27a, #d99a1c);
  color: #2a1a00; font: 900 13px var(--font-display); letter-spacing: .12em; text-transform: uppercase; text-shadow: 0 1px 0 #ffe9a8;
  box-shadow: inset 1px 1px 0 #fff2c2, inset -1px -1px 0 var(--gold-dark); transform: none;
}
.win .btn-gold:hover { filter: brightness(1.08); transform: none; color: #2a1a00; }

/* ---- Enter Game ---- */
.field { display: flex; flex-direction: column; margin: 0 0 12px; }
.field label { margin-bottom: 5px; font: 700 11.5px var(--font-display); letter-spacing: .08em; color: #fff; text-shadow: 0 1px 0 var(--night); }
.field input {
  width: 100%; min-height: 36px; padding: 6px 10px; border: 1px solid var(--night); border-radius: 2px;
  background: var(--night-glass); color: #f1e6cc; font: 700 14.5px var(--font-body); box-shadow: inset 0 2px 6px #000;
}
.field input:focus { outline: none; border-color: var(--gold); box-shadow: inset 0 2px 6px #000, 0 0 0 2px #ffc84733; }
.minor { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; font: 800 12.5px var(--font-body); }
.minor a, .linkish { color: var(--gold-light); text-decoration: none; }
.minor a:hover, .linkish:hover { color: var(--gold); }
.linkish { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.account-box { display: flex; flex-direction: column; gap: 10px; }
.acc-tier { align-self: center; margin: 0; padding: 3px 12px; border: 1px solid #ffffff33; border-radius: 999px; background: #0b1d3699; font: 800 12px var(--font-body); color: var(--ice-soft); }
.acc-tier.prem { border-color: #ffe08a99; color: var(--gold-text); }
.acc-chars { display: flex; flex-direction: column; margin: 0 -6px; padding: 0; list-style: none; }
.acc-chars a { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 8px; align-items: center; padding: 3px 6px; border-radius: 2px; text-decoration: none; }
.acc-chars a:hover { background: #ffffff14; }
.acc-chars img { width: 40px; height: 40px; object-fit: contain; image-rendering: pixelated; }
.acc-chars .gt { display: block; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; }
.acc-chars small { display: block; font: 700 11.5px var(--font-body); color: var(--ice-soft); }
.acc-empty { margin: 0; text-align: center; font: 700 13px var(--font-body); color: var(--ice-soft); }
.account-box .minor { margin-top: 0; }
.account-box .minor form { margin: 0; }

/* ---- download: the strongest call in the column, with a slow gold sweep ---- */
.lc .dl {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: flex-start; gap: 12px; min-height: 76px; padding: 8px 16px 8px 10px;
  border-radius: 2px; border: 1px solid #3a2400; background: linear-gradient(#ffe9a0, #ffc23d 55%, #e8920f);
  color: #2a1a00; font: 900 18px var(--font-display); letter-spacing: .06em; text-decoration: none; text-shadow: 0 1px 0 #fff2c2;
  box-shadow: inset 1px 1px 0 #fff6c9, inset -1px -1px 0 var(--gold-dark), 0 0 0 1px #000, 0 0 0 4px #ffc84733, 0 14px 26px #000a;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s;
}
.lc .dl::after {
  content: ''; position: absolute; z-index: -1; top: -20%; bottom: -20%; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, #fffbe6cc 50%, transparent); transform: skewX(-18deg);
  animation: dl-sweep 4.5s var(--ease) infinite;
}
@keyframes dl-sweep { 0%, 55% { left: -60%; } 85%, 100% { left: 130%; } }
.lc .dl:hover, .lc .dl:focus-visible {
  color: #2a1a00; transform: translateY(-2px); filter: brightness(1.05);
  box-shadow: inset 1px 1px 0 #fff6c9, inset -1px -1px 0 var(--gold-dark), 0 0 0 1px #000, 0 0 0 4px #ffc84766, 0 0 26px #ffc84788, 0 18px 30px #000b;
}
.lc .dl:active { transform: translateY(0); }
.lc .dl img { flex: none; width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 1px 0 #633600); }
.lc .dl span { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; line-height: 1.05; }
.lc .dl small { font: 800 12px var(--font-body); letter-spacing: 0; color: #5a3a06; text-shadow: none; }
@media (prefers-reduced-motion: reduce) { .lc .dl::after { animation: none; display: none; } .lc .dl, .lc .dl img { transition: none; } }

/* ---- community links (Discord, WhatsApp): next calls in the column, in each brand colour with a soft pulse ---- */
.lc .dc, .lc .wa {
  --c-hi: #8c95ff; --c-mid: #5865f2; --c-lo: #4049c9; --c-dark: #1e2370; --c-edge: #2c3399; --c-light: #c3c8ff; --c-sub: #e3e6ff;
  position: relative; display: flex; align-items: center; justify-content: flex-start; gap: 12px; min-height: 64px; padding: 8px 16px 8px 12px;
  border-radius: 2px; border: 1px solid var(--c-dark); background: linear-gradient(var(--c-hi), var(--c-mid) 55%, var(--c-lo));
  color: #fff; font: 900 17px var(--font-display); letter-spacing: .06em; text-decoration: none; text-shadow: 0 1px 0 var(--c-dark);
  box-shadow: inset 1px 1px 0 var(--c-light), inset -1px -1px 0 var(--c-edge), 0 0 0 1px #000, 0 0 0 4px color-mix(in srgb, var(--c-mid) 20%, transparent), 0 12px 22px #000a;
  animation: community-pulse 2.8s var(--ease) infinite;
  transition: transform .25s var(--ease), filter .25s;
}
.lc .wa {
  --c-hi: #5fe08f; --c-mid: #25d366; --c-lo: #1aa34f; --c-dark: #0b4d24; --c-edge: #127a3a; --c-light: #b8f5cf; --c-sub: #e6fff0;
  animation-delay: 1.4s;
}
@keyframes community-pulse {
  0%, 100% { box-shadow: inset 1px 1px 0 var(--c-light), inset -1px -1px 0 var(--c-edge), 0 0 0 1px #000, 0 0 0 4px color-mix(in srgb, var(--c-mid) 20%, transparent), 0 12px 22px #000a; }
  50% { box-shadow: inset 1px 1px 0 var(--c-light), inset -1px -1px 0 var(--c-edge), 0 0 0 1px #000, 0 0 0 5px color-mix(in srgb, var(--c-hi) 40%, transparent), 0 0 22px color-mix(in srgb, var(--c-mid) 67%, transparent), 0 12px 22px #000a; }
}
.lc .dc:hover, .lc .dc:focus-visible, .lc .wa:hover, .lc .wa:focus-visible { color: #fff; transform: translateY(-2px); filter: brightness(1.08); }
.lc .dc:active, .lc .wa:active { transform: translateY(0); }
.lc .dc svg, .lc .wa svg { flex: none; width: 40px; height: 40px; filter: drop-shadow(0 1px 0 var(--c-dark)); }
.lc .dc span, .lc .wa span { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; line-height: 1.05; }
.lc .dc small, .lc .wa small { font: 800 12px var(--font-body); letter-spacing: 0; color: var(--c-sub); text-shadow: none; }
@media (prefers-reduced-motion: reduce) { .lc .dc, .lc .wa { animation: none; transition: none; } }

/* ---- scroll menu: parchment between two wooden rollers ---- */
.scroll { position: relative; padding: 18px 0; filter: drop-shadow(0 12px 18px #0009); }
.scroll::before, .scroll::after {
  content: ''; position: absolute; left: -8px; right: -8px; z-index: 2; height: 18px; border-radius: 9px;
  background: linear-gradient(#c9894a, #8a5420 45%, #5a3412); box-shadow: inset 0 2px #e8b27499, 0 3px 4px #0007;
}
.scroll::before { top: 0; }
.scroll::after { bottom: 0; }
.scroll .parch { padding: 10px 0; filter: none; }
.scroll details + details { box-shadow: inset 0 1px #b08a5566; }
.scroll summary { display: flex; align-items: center; gap: 10px; padding: 8px 14px; list-style: none; cursor: pointer; font: 900 15.5px var(--font-display); color: var(--ink-strong); }
.scroll summary::-webkit-details-marker { display: none; }
.scroll summary img { width: 32px; height: 32px; image-rendering: pixelated; }
.scroll summary::after { content: ''; width: 7px; height: 7px; margin-left: auto; border-right: 2px solid #6b4a24; border-bottom: 2px solid #6b4a24; transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.scroll details[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.scroll summary:hover { color: var(--link); }
.scroll .shop summary { color: #8a5a00; }
.ml { display: flex; flex-direction: column; padding: 0 12px 10px 56px; }
.ml a { position: relative; padding: 3px 0; color: #4a3618; text-decoration: none; font-weight: 800; font-size: 14px; }
.ml a::before { content: ''; position: absolute; left: -14px; top: 50%; width: 5px; height: 5px; margin-top: -3px; background: #a3743a; transform: rotate(45deg); }
.ml a:hover, .ml a[aria-current] { color: var(--link); }
.ml a[aria-current]::before { background: var(--link); }

/* ---- server status rows ---- */
.st { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #ffffff22; font-weight: 700; font-size: 14px; color: #fff; text-shadow: 0 1px 0 var(--night); }
.st:last-child { border-bottom: 0; }
.st > span { display: flex; align-items: center; gap: 10px; }
.st > span > img { flex: none; width: 32px; height: 32px; margin: -6px 0; object-fit: contain; image-rendering: pixelated; }
.st > span > .dot { margin: 0 12px; }
.st b { font: 700 13.5px var(--font-game); color: #fff; text-shadow: var(--outline); }
.st b.on { color: var(--life); }
.st b.off { color: var(--damage); }

/* ---- shop card ---- */
.shopmini { display: flex; align-items: center; gap: 12px; margin: 10px 12px 0; padding: 10px 12px; background: #0b1d3699; border: 1px solid #ffe08a66; box-shadow: inset 0 0 18px var(--night); }
.shopmini .sc { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle, #ffc84755, transparent 70%); }
.shopmini img { width: 64px; height: 64px; image-rendering: pixelated; }
.shopmini b { display: block; font: 900 15px var(--font-display); letter-spacing: .04em; color: var(--gold-text); text-shadow: var(--outline); }
.shopmini small { display: block; margin-top: 2px; font: 700 12.5px/1.35 var(--font-body); color: var(--ice); }
.win.gold .win-b { padding: 12px; }
.win.gold .btn-gold { min-height: 36px; font-size: 12px; }

/* ---- top level list ---- */
.vip { padding: 6px 0; }
.vip a { display: grid; grid-template-columns: 18px 46px minmax(0, 1fr) auto; gap: 6px; align-items: center; padding: 2px 10px; text-decoration: none; box-shadow: inset 0 -1px #ffffff1a; }
.vip a:hover { background: #ffffff14; }
.vip .n { font: 700 12px var(--font-game); color: var(--ice-soft); text-align: center; }
.vip .n.first { color: var(--gold); }
.vip img { width: 46px; height: 46px; object-fit: contain; image-rendering: pixelated; }
.vip .gt { display: block; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }
.vip small { display: block; font-size: 11.5px; font-weight: 700; color: var(--ice-soft); }
.vip .lv { font: 700 13px var(--font-game); color: #fff; text-shadow: var(--outline); }
.win .empty { color: var(--ice-soft); }

/* Compact balance: part of the account panel, without a nested card. */
.account-coins { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; padding: 0 0 10px; border-bottom: 1px solid #ffffff26; text-decoration: none; color: #ffda69; }
.account-coins img { image-rendering: pixelated; }
.account-coins strong { font-size: 20px; line-height: 1; }
.account-coins span { font-size: 11px; color: #e4f1ff; }

.win .account-coins, .win .account-coins:hover, .win .account-coins strong { color: #ffda69; }
.win .account-coins img { width: 28px; height: 28px; flex-shrink: 0; }
