.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--top);
  display: flex; align-items: center; gap: 28px; padding: 0 16px 0 20px;
  background: var(--bg); border-bottom: 1px solid #222327;
}
.logo { display: flex; align-items: center; gap: 9px; font-family: var(--tek); font-weight: 700; font-size: 18px; letter-spacing: 0.02em; }
.logo img { width: 26px; height: 26px; }
.stats-bar { display: flex; gap: 22px; }
.sb { display: grid; line-height: 1.2; }
.sb span { font-size: 10px; font-weight: 600; color: var(--gray); text-transform: uppercase; letter-spacing: 0.04em; }
.sb b { display: flex; align-items: center; gap: 5px; font-family: var(--tek); font-size: 12px; font-weight: 600; min-width: 64px; }
.sb b .ico { width: 14px; height: 14px; color: var(--y); stroke-width: 2.4; }
.menu { display: flex; gap: 6px; margin: 0 auto; }
.menu a { position: relative; height: var(--top); display: flex; align-items: center; padding: 0 14px; font-family: var(--tek); font-weight: 600; font-size: 12.5px; text-transform: uppercase; color: #8d8e95; transition: color 0.2s; }
.menu a:hover { color: #fff; }
.menu a.on { color: var(--y); }
.menu a.on::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; border-radius: 2px 2px 0 0; background: var(--y); }
.top-end { display: flex; align-items: center; gap: 8px; margin-left: auto; }
@media (min-width: 1101px) { .menu + .top-end { margin-left: 0; } }
.sq { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--card); color: #c9cad0; transition: background 0.2s, color 0.2s; }
.sq:hover { background: var(--card-2); color: #fff; }
.sq.y { background: var(--y-grad); color: #1c1c20; }
.sq.y:hover { filter: brightness(1.08); }
.sq .ico { width: 19px; height: 19px; }
.bal { display: flex; align-items: center; height: 36px; border-radius: 10px; background: var(--card); padding-left: 12px; gap: 10px; }
.bal b { display: flex; align-items: center; gap: 6px; font-family: var(--tek); font-weight: 600; font-size: 13px; }
.bal b .coin { width: 16px; height: 16px; }
.bal button { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--y-grad); color: #1c1c20; }
.bal button .ico { stroke-width: 3; width: 18px; height: 18px; }
.me-btn { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 11px 0 4px; border-radius: 10px; background: var(--card); }
.me-btn .avatar { --s: 28px !important; line-height: 1; }
.me-btn:hover { background: var(--card-2); }
.me-btn > span:not(.avatar) { font-weight: 600; font-size: 13px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.live { position: fixed; top: var(--top); left: 0; bottom: 0; width: var(--side); z-index: 40; padding: 6px 4px 8px 0; display: flex; flex-direction: column; gap: 4px; overflow: hidden; background: var(--bg); }
.live::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.drop { position: relative; flex: none; width: 146px; height: 66px; border-radius: 0 8px 8px 0; background: var(--card); overflow: hidden; display: block; text-align: left; animation: drop-in 0.55s var(--ease) both; }
.drop::before { content: ''; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(35, 35, 37, 0.2) 25%, color-mix(in srgb, var(--rc) 30%, transparent) 100%); }
.drop::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--rc); }
.drop img.sk { position: absolute; right: -2px; top: 50%; transform: translateY(-50%); width: 86px; height: 54px; object-fit: contain; z-index: 1; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5)); transition: transform 0.3s var(--ease); }
.drop:hover img.sk { transform: translateY(-50%) scale(1.08); }
.drop .who { position: absolute; left: 7px; bottom: 6px; z-index: 2; display: grid; max-width: 132px; line-height: 1.15; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8); }
.drop .who b { font-family: var(--exo); font-weight: 700; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop .who i { font-style: normal; font-size: 9px; font-weight: 600; color: var(--gray); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop .ava { position: absolute; right: 5px; top: 5px; z-index: 2; opacity: 0; transition: opacity 0.2s; }
.drop:hover .ava { opacity: 1; }
.drop .pct { position: absolute; left: 6px; top: 5px; z-index: 2; display: flex; align-items: center; gap: 3px; height: 16px; padding: 0 5px; border-radius: 4px; background: rgba(0, 0, 0, 0.45); font-family: var(--tek); font-weight: 700; font-size: 9.5px; }
.drop .pct .ico { width: 9px; height: 9px; color: var(--y); stroke-width: 3; }
.drop:hover { filter: brightness(1.12); }
.live-lbl { flex: none; display: flex; align-items: center; gap: 4px; padding: 2px 6px 0; font-size: 10px; font-weight: 600; color: var(--gray); }
.live-lbl .ico { width: 11px; height: 11px; color: var(--y); }
.drop.best { background: var(--y-grad); height: 66px; margin-bottom: 2px; box-shadow: inset 0 0 0 2px #ffffff; }
.drop.best::before { background: radial-gradient(120% 120% at 100% 50%, rgba(255, 255, 255, 0.35), transparent 60%); }
.drop.best::after { display: none; }
.drop.best .who b, .drop.best .who i { color: #1c1c20; }
.drop.best .pct { background: rgba(0, 0, 0, 0.18); color: #1c1c20; }
.drop.best .pct .ico { color: #1c1c20; }
.drop.best .who { text-shadow: none; }
.drop.best .mk { position: absolute; right: 6px; top: 50%; width: 70px; height: 70px; transform: translateY(-50%); opacity: 0.22; color: #1c1c20; }
@keyframes drop-in { from { opacity: 0; transform: translateY(-30px); } }
.live-empty { padding: 16px 12px; font-size: 12px; color: var(--faint); }

.shell { margin-left: var(--side); padding-top: var(--top); min-height: 100vh; display: flex; flex-direction: column; }
.view { flex: 1; outline: 0; padding: 14px 24px 40px; width: 100%; max-width: 960px; margin: 0 auto; }

.foot { width: calc(100% - 48px); max-width: 912px; margin: 40px auto 0; padding: 28px 24px; border-radius: 16px 16px 0 0; background: #1c1d21; display: grid; grid-template-columns: auto 1fr 1fr 1.3fr; gap: 24px 40px; font-size: 13px; color: var(--gray); }
.foot .logo { font-size: 18px; color: #fff; align-self: start; }
.foot h4 { color: #fff; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.foot a { display: block; color: var(--gray); margin-bottom: 4px; }
.foot a:hover { color: #fff; }
.foot p { font-size: 12px; line-height: 1.5; }

.dock { display: none; }

.btn { --h: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--h); padding: 0 18px; border-radius: 10px; font-weight: 600; font-size: 14px; background: var(--card-2); color: #fff; white-space: nowrap; transition: filter 0.2s, background 0.2s, transform 0.12s, opacity 0.2s; }
.btn:hover { background: #333438; }
.btn:active { transform: scale(0.985); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-y { background: var(--y-grad); color: #1c1c20; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); }
.btn-y:hover { background: var(--y-grad); filter: brightness(1.07); }
.btn-line { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-line:hover { background: rgba(255, 255, 255, 0.04); }
.btn-red { background: rgba(235, 75, 75, 0.15); color: #ff8080; }
.btn-red:hover { background: rgba(235, 75, 75, 0.25); }
.btn-s { --h: 34px; padding: 0 14px; font-size: 13px; border-radius: 9px; }
.btn-l { --h: 46px; font-size: 16px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn .ico { width: 18px; height: 18px; stroke-width: 2.4; }
.btn .spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }

.input { width: 100%; height: 40px; padding: 0 14px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); outline: 0; font-size: 14px; transition: border-color 0.2s; }
.input::placeholder { color: var(--faint); }
.input:focus { border-color: var(--y); }
.input-s { height: 32px; border-radius: 8px; font-size: 13px; padding: 0 10px; }
.with-ico { position: relative; }
.with-ico > .ico, .with-ico > .coin { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--faint); pointer-events: none; }
.with-ico .input { padding-left: 32px; }
.pass { position: relative; }
.pass .input { padding-right: 44px; }
.pass button { position: absolute; right: 0; top: 0; width: 44px; height: 44px; display: grid; place-items: center; color: var(--faint); }
.field { display: grid; gap: 6px; }
.field > label { font-size: 12.5px; font-weight: 600; color: var(--gray); }
.form-error { color: #ff7b7b; font-size: 13px; }
.form-error:empty { display: none; }

.panel { background: var(--card); border-radius: 12px; }
.ph { display: flex; align-items: center; gap: 10px; padding: 10px 12px; min-height: 50px; flex-wrap: wrap; }
.ph-ico { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; background: var(--y-grad); color: #1c1c20; flex: none; }
.ph-ico .ico { width: 17px; height: 17px; stroke-width: 2.6; }
.ph h2 { font-family: var(--exo); font-weight: 600; font-size: 14px; }
.ph .grow { flex: 1; }
.ph .count { color: var(--gray); font-size: 13px; }

.item {
  --rc: var(--r0);
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-width: 0;
  aspect-ratio: 1 / 1.14; padding: 6px 6px 24px; border-radius: 6px; text-align: center; overflow: hidden; isolation: isolate;
  background: var(--bg) url('/img/mark.svg') center 42% / 54% no-repeat;
  transition: transform 0.2s var(--ease), background-color 0.2s;
}
.item::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 50% 46%, color-mix(in srgb, var(--rc) 40%, transparent) 0%, color-mix(in srgb, var(--rc) 20%, transparent) 30%, color-mix(in srgb, var(--rc) 9%, transparent) 45%, transparent 70%); }
.item.sel { background-color: #24262c; }
.item.sel::after { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 1.5px solid var(--y); pointer-events: none; }
.item.off { opacity: 0.35; pointer-events: none; }
.item-p { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; gap: 3px; white-space: nowrap; font-family: var(--tek); font-weight: 600; font-size: 9.5px; z-index: 2; }
.item-p .coin { width: 10px; height: 10px; }
.item-st { position: absolute; top: 6px; right: 6px; min-width: 24px; height: 20px; padding: 0 5px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--exo); font-weight: 700; font-size: 9px; line-height: 1; letter-spacing: .02em; color: #ffc381; background: #452c1c; z-index: 3; }
.item-odds { position: absolute; top: 6px; left: 6px; font-family: var(--tek); font-weight: 700; font-size: 10px; color: var(--gray); z-index: 2; }
.item img { position: absolute; left: 50%; top: 36%; transform: translate(-50%, -50%); width: 82%; max-height: 48%; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.5)); transition: transform 0.25s var(--ease); }
button.item:hover img { transform: translate(-50%, -50%) scale(1.07); }
.item-t { position: relative; font-size: 8px; font-weight: 600; color: var(--gray); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.2; }
.item-n { position: relative; font-family: var(--tek); font-weight: 600; font-size: 10.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.25; }
.item-ok { position: absolute; top: 5px; left: 5px; width: 14px; height: 14px; border-radius: 4px; display: grid; place-items: center; background: var(--y); color: #1c1c20; z-index: 3; transform: scale(0); transition: transform 0.2s var(--ease); }
.item-ok .ico { width: 10px; height: 10px; stroke-width: 3.6; }
.item.sel .item-ok { transform: scale(1); }
.item.sel .item-st { opacity: 1; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 5px; }
.grid .empty { grid-column: 1 / -1; }

.pager { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 12px; }
.pager button { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: var(--bg); color: #fff; transition: background 0.2s, opacity 0.2s; }
.pager button:hover:not([disabled]) { background: var(--card-2); }
.pager button[disabled] { opacity: 0.35; cursor: default; }
.pager span { font-family: var(--tek); font-size: 12px; color: var(--gray); min-width: 56px; text-align: center; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 30px; padding: 0 11px; border-radius: 7px; background: var(--bg); color: var(--gray); font-weight: 600; font-size: 12.5px; transition: all 0.15s; white-space: nowrap; }
.chip:hover { color: #fff; }
.chip.on { background: rgba(252, 215, 17, 0.14); color: var(--y); }

.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--card); width: max-content; max-width: 100%; overflow-x: auto; }
.tab { height: 38px; padding: 0 16px; border-radius: 9px; display: inline-flex; align-items: center; gap: 8px; color: var(--gray); font-weight: 600; white-space: nowrap; transition: all 0.15s; }
.tab:hover { color: #fff; }
.tab.on { background: var(--y-grad); color: #1c1c20; }
.tab .ico { width: 16px; height: 16px; }

.empty { display: grid; justify-items: center; align-content: center; text-align: center; gap: 8px; padding: 36px 16px; }
.empty > .ico { width: 36px; height: 36px; color: #4a4b52; stroke-width: 1.6; }
.empty h3 { font-family: var(--exo); font-weight: 700; font-size: 20px; }
.empty p { color: var(--gray); font-size: 13px; max-width: 34ch; }
.empty .btn { margin-top: 8px; }

.skel { border-radius: 6px; background: linear-gradient(100deg, var(--bg) 30%, #202125 50%, var(--bg) 70%); background-size: 300% 100%; animation: sheen 1.3s linear infinite; }
@keyframes sheen { to { background-position: -100% 0; } }

.avatar { --s: 32px; width: var(--s); height: var(--s); flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-family: var(--exo); font-weight: 500; font-size: calc(var(--s) * 0.48); line-height: 1; color: #fff; }
.avatar img { width: 92%; height: 92%; object-fit: contain; }
.avatar.is-item { background: #2b2b2e; }
.avatar.is-photo { position: relative; }
.avatar.is-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 6px; font-size: 12px; font-weight: 700; background: var(--card-2); color: var(--gray); white-space: nowrap; }
.pill.ok { background: rgba(35, 215, 12, 0.14); color: #4be03a; }
.pill.warn { background: rgba(252, 215, 17, 0.14); color: var(--y); }
.pill.bad { background: rgba(235, 75, 75, 0.15); color: #ff7b7b; }

.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--bg); font-size: 13px; color: var(--gray); }
.notice .ico { width: 18px; height: 18px; color: var(--y); margin-top: 1px; }
.notice.warn { box-shadow: inset 2px 0 0 var(--y); }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--gray); cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border-radius: 6px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); display: grid; place-items: center; cursor: pointer; }
.check input { transition: background-color .22s ease, box-shadow .22s ease, transform .18s cubic-bezier(.34, 1.56, .64, 1); }
.check:hover input:not(:checked) { box-shadow: inset 0 0 0 1px var(--y); }
.check:active input { transform: scale(.88); }
.check input:checked { background: var(--y); box-shadow: inset 0 0 0 1px var(--y), 0 0 0 4px #fcd7111f; }
.check input::after { content: ''; width: 5px; height: 10px; border: solid #1c1c20; border-width: 0 2.5px 2.5px 0; opacity: 0; transform: rotate(45deg) translate(-1px, -1px) scale(.3); transition: opacity .18s ease, transform .28s cubic-bezier(.34, 1.56, .64, 1); }
.check input:checked::after { opacity: 1; transform: rotate(45deg) translate(-1px, -1px) scale(1); }
.check input:focus-visible { outline: 2px solid var(--y); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .check input, .check input::after { transition: none; } }

.toggle { position: relative; display: inline-flex; align-items: center; gap: 9px; min-height: 32px; font-size: 13px; font-weight: 500; color: #b9bac3; cursor: pointer; user-select: none; }
.toggle input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.toggle i { flex: none; width: 38px; height: 22px; border-radius: 99px; background: #35363e; position: relative; transition: background 0.2s ease; }
.toggle i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #999ba6; box-shadow: 0 1px 3px #0003; transition: transform 0.2s ease, background 0.2s ease; }
.toggle input:checked + i { background: var(--y); }
.toggle input:focus-visible + i { outline: 2px solid var(--y); outline-offset: 3px; }
.toggle input:checked + i::after { transform: translateX(16px); background: #25230e; }
.toggle:has(input:checked) { color: #efefef; }
.toggle:has(input:disabled) { opacity: 0.5; cursor: default; }

.layer { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; animation: fade 0.18s ease both; }
.scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal { position: relative; width: min(100%, var(--w, 460px)); max-height: calc(100dvh - 40px); overflow: auto; background: var(--card); border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); animation: pop 0.28s var(--ease) both; }
.modal-head { padding: 22px 56px 0 24px; }
.modal-head h2 { font-size: 19px; text-transform: uppercase; }
.modal-body { padding: 18px 24px 24px; display: grid; gap: 16px; }
.modal-x { position: absolute; top: 14px; right: 14px; z-index: 2; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--gray); background: var(--bg); }
.modal-x:hover { color: #fff; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.98); } }

.toasts { position: fixed; top: calc(var(--top) + 12px); right: 16px; z-index: 200; display: grid; gap: 8px; width: min(360px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; position: relative; display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: #2b2b2e; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); overflow: hidden; animation: toast-in 0.35s var(--ease) both; cursor: pointer; }
.toast.out { animation: toast-out 0.25s ease both; }
.toast .ti { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--card); }
.toast .ti .ico { width: 18px; height: 18px; stroke-width: 2.4; }
.toast b { display: block; font-weight: 700; font-size: 14px; }
.toast span { color: var(--gray); font-size: 12.5px; }
.toast::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--tc, var(--y)); transform-origin: left; animation: bar var(--life, 4500ms) linear both; }
.toast.ok { --tc: var(--ok); } .toast.ok .ti { color: var(--ok); }
.toast.err { --tc: var(--bad); } .toast.err .ti { color: var(--bad); }
.toast.info .ti, .toast.gold .ti { color: var(--y); }
.toast.gold .ti { background: var(--y-grad); color: #1c1c20; }
@keyframes toast-in { from { opacity: 0; transform: translateX(24px); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(24px); } }
@keyframes bar { to { transform: scaleX(0); } }

@media (max-width: 1280px) {
  .stats-bar .sb:nth-child(3) { display: none; }
}

@media (max-width: 1100px) {
  :root { --side: 0px; --top: 56px; }
  .stats-bar, .menu, .hide-m { display: none !important; }
  .top { gap: 10px; padding: 0 12px; }
  .logo span { display: none; }
  .online-m { display: flex !important; }
  .live { position: static; width: auto; flex-direction: row; gap: 6px; padding: 8px 12px; overflow-x: auto; scrollbar-width: none; margin-top: var(--top); }
  .live::-webkit-scrollbar { display: none; }
  .live::after { display: none; }
  .drop { width: 104px; height: 64px; border-radius: 8px; }
  .drop::after { top: auto; right: 0; width: auto; height: 2px; }
  .drop::before { background: linear-gradient(0deg, color-mix(in srgb, var(--rc) 30%, transparent), rgba(35, 35, 37, 0.2) 80%); }
  .drop img.sk { left: 50%; right: auto; top: 44%; transform: translate(-50%, -50%); width: 82px; height: 48px; }
  .drop:hover img.sk { transform: translate(-50%, -50%); }
  .drop .who, .drop .ava, .live-lbl { display: none; }
  .drop .pct { font-size: 8.5px; left: 4px; top: 4px; }
  .drop.best { height: 64px; width: 104px; margin: 0; }
  .drop.best .mk { display: none; }
  .shell { padding-top: 0; }
  .view { padding: 12px 12px calc(var(--dock) + 24px); }
  .foot { margin: 0 12px calc(var(--dock) + 12px); grid-template-columns: 1fr 1fr; border-radius: 16px; }
  .foot .logo { grid-column: 1 / -1; }
  .foot > div:last-child { grid-column: 1 / -1; }
  .dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; height: calc(var(--dock) + env(safe-area-inset-bottom)); padding: 0 8px env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; background: #1c1d21; border-top: 1px solid #26272b; }
  .dock a, .dock button { display: grid; justify-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: #7d7e85; }
  .dock .ico { width: 22px; height: 22px; }
  .dock .on { color: var(--y); }
  .dock .dk-y { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--y-grad); color: #1c1c20; margin: 0 auto; }
  .dock .dk-y .ico { stroke-width: 2.6; }
  .toasts { top: auto; bottom: calc(var(--dock) + 12px + env(safe-area-inset-bottom)); right: 50%; transform: translateX(50%); }
}

@media (max-width: 640px) {
  .layer { padding: 0; align-items: end; }
  .modal { width: 100%; max-height: 92dvh; border-radius: 18px 18px 0 0; animation: sheet 0.35s var(--ease) both; }
  .modal-head { padding: 20px 56px 0 18px; }
  .modal-body { padding: 16px 18px calc(20px + env(safe-area-inset-bottom)); }
  .bal { padding-left: 10px; gap: 8px; }
  .bal b { font-size: 13px; }
  .me-btn > span:not(.avatar) { display: none; }
  .me-btn { padding: 0 4px; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 5px; }
  .foot { grid-template-columns: 1fr; }
}
@keyframes sheet { from { transform: translateY(100%); } }

.item-ok { left: auto; right: 6px; top: 6px; width: 21px; height: 21px; border-radius: 6px; color: #fff; background: linear-gradient(145deg,#ffe27a,#f2ad28); box-shadow: 0 2px 9px #e9b73233; }
.item-ok .ico { width: 14px; height: 14px; stroke-width: 2.7; }
.item.sel { background: linear-gradient(145deg,#3b342655,#202125); }

/* Navigation and page content share the same horizontal center. */
@media (min-width: 1101px) {
  .menu { position: absolute; left: calc(50% + var(--side) / 2); transform: translateX(-50%); margin: 0; }
  .top .top-end { margin-left: auto; }
}
.view { max-width: 1280px; }
.foot { max-width: 1232px; }

/* The upgrade notice shows the actual awarded skin, including a gold bonus reward. */
.toast.has-item > .ti {
  width: 58px; height: 48px; padding: 4px; border-radius: 10px;
  background: radial-gradient(ellipse, #fcd71126, #202125 75%);
}
.toast.has-item > .ti > img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 3px 4px #0008); }
.toast.has-item > div { flex: 1; min-width: 0; }
.toast.has-item > div > span { display: block; margin-top: 2px; overflow-wrap: anywhere; }
