/* Hello World — the site update of Nov 3: menu, window bar, own dropdowns, switches, scrollbars,
   roles, "forever", account, shop, the HTML HUD and the Lyrics demo. Loaded after main.css. */

/* The window bar: only the (HW) icon and the three buttons, rounded at the bottom. */
.cmdbar { height: 34px; padding-left: 14px; }
.cmdbar .t { display: block; flex: 1; }
.cmdbar .ico-img { width: 22px; height: 22px; border-radius: 6px; margin-right: 0; }
.cmdbar .caps { align-self: stretch; height: auto; padding: 0 6px 0 0; gap: 4px; align-items: flex-start; }
.cmdbar .caps span { height: 28px; width: 44px; border-radius: 0 0 10px 10px; }
.nav { top: 34px; }

/* A much larger HELLO WORLD in the menu bar. */
.nav .bar { padding: 8px 8px 8px 18px; min-height: 58px; }
.nav .brand { margin-right: 18px; }
.nav .brand svg { height: 27px; }
.nav .links { align-items: center; }
.drop-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 9px; color: var(--text-2); font-size: 14px; transition: background .2s, color .2s; cursor: pointer; }
.drop-btn i { font-size: 12px; transition: transform .3s var(--ease); }
.drop.open .drop-btn { background: var(--fill); color: var(--text); }
.drop.open .drop-btn i { transform: rotate(180deg); }
.drop-btn:hover { background: var(--fill); color: var(--text); }
.drop.left .list { left: 0; right: auto; transform-origin: top left; }
.drop .list .none { display: block; padding: 8px 10px; font-size: 13px; color: var(--text-3); }
.drop .list.partner { width: 290px; padding: 16px; display: grid; gap: 10px; }
.drop .list.partner p { margin: 0; font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
.drop .list.partner a.btn { width: auto; justify-content: center; color: var(--on-primary); }
.drop .list.partner a.btn:hover { background: var(--primary); color: var(--on-primary); }
.nav .links .iconbtn { width: 34px; height: 34px; font-size: 16px; margin: 0 2px; }
.me-btn { height: 38px; padding: 0 10px 0 5px; gap: 8px; }
.me-btn .head-av { width: 28px; height: 28px; border-radius: 8px; }
@media (max-width: 760px) {
  .nav .brand svg { height: clamp(0px, calc((100vw - 230px) * 0.2), 26px); }
  .nav .links .drop .list { position: static; opacity: 1; transform: none; pointer-events: auto; display: none; box-shadow: none; border: 0; background: none; padding: 0 0 0 8px; }
  .nav .links .drop.open .list { display: grid; }
  .drop .list.partner { width: auto; }
}
@media (max-width: 310px) { .nav .brand { display: none; } }

/* Footer: "Contact us" and the icons that are set. */
footer .links { align-items: center; }
footer .contact { color: var(--text-3); font-size: 13px; }
footer .soc { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--fill); border: 1px solid var(--line); font-size: 18px; transition: background .2s, color .2s; }
footer .soc:hover { background: var(--fill-2); color: var(--text); }
footer .sep { width: 1px; height: 18px; background: var(--line-2); margin: 0 4px; }

/* No small dashes before the headings. */
.kicker::before { display: none; }
.kicker { margin-bottom: 6px; }

/* Our own dropdown in place of the system one. */
.sel { position: relative; width: 100%; }
.sel > select { display: none; }
.sel-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; text-align: left; }
.sel-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sel-btn i { font-size: 13px; color: var(--text-3); transition: transform .3s var(--ease); }
.sel.open .sel-btn { border-color: var(--line-3); background: var(--fill-2); }
.sel.open .sel-btn i { transform: rotate(180deg); }
.sel-btn:disabled { opacity: .6; cursor: default; }
.sel-list { position: fixed; z-index: 200; max-height: 280px; overflow: auto; padding: 6px; border-radius: 14px; background: var(--win-solid); border: 1px solid var(--line-2); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(-4px) scale(.98); pointer-events: none; transition: opacity .16s, transform .25s var(--ease); }
.sel.open .sel-list { opacity: 1; transform: none; pointer-events: auto; }
.sel-list button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 8px 10px; border: 0; border-radius: 9px; background: none; color: var(--text-2); font-size: 14px; text-align: left; cursor: pointer; transition: background .15s, color .15s; }
.sel-list button:hover { background: var(--fill-2); color: var(--text); }
.sel-list button.on { color: var(--text); font-weight: 600; }
.sel-list button i { font-size: 14px; }

/* Switch: the knob goes all the way to both ends. */
.switch { width: 40px; height: 22px; }
.switch span { border: 0; border-radius: 999px; background: var(--fill-3); box-shadow: inset 0 0 0 1px var(--line-2); }
.switch span::after { left: 3px; top: 3px; width: 16px; height: 16px; }
.switch input:checked + span { background: var(--text); box-shadow: none; }
.switch input:checked + span::after { transform: translateX(18px); background: var(--win-solid); }
.switch input:disabled + span { opacity: .5; }

/* Scrollbars in the site's look: thin, rounded, no arrows. */
* { scrollbar-width: thin; scrollbar-color: var(--fill-3) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--fill-3); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--line-3); background-clip: padding-box; border: 3px solid transparent; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-corner { background: transparent; }
/* Tables never show a sideways bar. */
.table-wrap { scrollbar-width: none; border-radius: 12px; }
.table-wrap::-webkit-scrollbar { display: none; }

/* The owner: white pill, black crown and word. */
.role[data-r="owner"] { background: #fff; color: #0c0c0c; border-color: #fff; }
.role[data-r="owner"] i { color: #0c0c0c; }
:root[data-theme="light"] .role[data-r="owner"] { background: #18181a; color: #fff; border-color: #18181a; }
:root[data-theme="light"] .role[data-r="owner"] i { color: #fff; }
:root { --role-manager: #ffb454; --role-youtube: #ff7a7a; --role-user: #3fd16b; --ok: #8fd6a8; }

/* "Forever": mark, word and beta at even gaps, all centred on one line. */
.forever { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; vertical-align: middle; }
.forever > i { font-size: 13px; color: var(--text-2); }
.forever .role { margin-left: 2px; }
.badge { display: inline-flex; align-items: center; justify-content: center; line-height: 1.35; vertical-align: middle; }
.badge.beta { color: var(--role-beta); border-color: color-mix(in srgb, var(--role-beta) 45%, transparent); background: color-mix(in srgb, var(--role-beta) 10%, transparent); padding: 2px 9px; }
.badge.soft { color: var(--text-2); background: var(--fill-2); border-color: var(--line-2); gap: 6px; }
.badge.soft i { font-size: 13px; }
.badge.st-pending { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.badge.st-paid { color: var(--text); background: var(--fill-2); }
.badge.st-cancelled, .badge.st-expired, .badge.st-created { color: var(--text-3); }
.toast.ok i { color: var(--text); }
.big .forever > i { font-size: .7em; }
.big .forever .badge { font-size: 12px; }

/* Buttons: a red confirm, a cancel that turns red on hover, rows with room. */
.btn.danger-solid { background: #d64545; color: #fff; border-color: transparent; }
.btn.danger-solid:hover { background: #e05252; }
.btn.cancel:hover { background: rgba(232, 72, 72, .14); border-color: rgba(232, 72, 72, .4); color: #ff8f87; }
.act-row { display: flex; gap: 8px; justify-content: flex-end; align-items: center; flex-wrap: nowrap; padding-right: 4px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row-gap { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row-gap .btn:not(.sm) { height: 42px; }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.dev, .who { display: inline-flex; gap: 8px; align-items: center; }
.sm-line { font-size: 12px; margin-top: 2px; }
table.orders td { vertical-align: middle; }
table.orders td:last-child { width: 1%; white-space: nowrap; }
.stat small { font-size: 12px; }
.stat small a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.seg button i { font-size: 13px; vertical-align: -1px; }
.seg button.beta-term { display: inline-flex; align-items: center; gap: 6px; }
.seg button.beta-term.on { background: color-mix(in srgb, var(--role-beta) 28%, transparent); color: var(--text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--role-beta) 65%, transparent); }
.days-row .input:disabled { opacity: .35; }

/* "History · Sessions": a turning chevron instead of the system triangle. */
details.more summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--text-2); font-size: 14px; padding: 6px 10px 6px 6px; border-radius: 9px; transition: background .2s, color .2s; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary:hover { background: var(--fill); color: var(--text); }
details.more summary i { transition: transform .3s var(--ease); font-size: 13px; }
details.more[open] summary i { transform: rotate(90deg); }

/* FAQ opens smoothly (the height is animated in app.js). */
.faq details .faq-a { overflow: hidden; }
.faq details .faq-a p { margin: 0; padding: 0 18px 18px; color: var(--text-2); }

/* Account: the avatar lights up and can be changed. */
.head-av.big { width: 64px; height: 64px; border-radius: 16px; }
img.avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; image-rendering: auto; }
.av-edit { position: relative; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 16px; flex: none; }
.av-edit .av-over { position: absolute; inset: 0; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, 0); color: transparent; font-size: 22px; transition: background .25s, color .25s; }
.av-edit:hover .av-over { background: rgba(255, 255, 255, .55); color: #0c0c0c; }
.av-edit .head-av { transition: transform .3s var(--ease); }
.av-edit:hover .head-av { transform: scale(1.04); }
.crop { display: grid; gap: 14px; justify-items: center; }
.crop-stage { position: relative; width: min(300px, 100%); aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: repeating-conic-gradient(var(--fill-2) 0 25%, transparent 0 50%) 0 0 / 20px 20px; cursor: grab; touch-action: none; }
.crop-stage canvas { width: 100%; height: 100%; display: block; }
.crop-ring { position: absolute; inset: 0; border-radius: 18px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7); pointer-events: none; }
.crop-zoom { display: flex; align-items: center; gap: 10px; width: min(300px, 100%); color: var(--text-3); }
.crop-zoom input { flex: 1; accent-color: var(--text); }
.modal-bg .acts { align-items: center; }

/* Wardrobe and shop. */
.acc-grid { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.acc-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--fill); color: var(--text-2); font: 600 13px var(--ui); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.acc-chip:hover { background: var(--fill-2); color: var(--text); }
.acc-chip.on { background: var(--primary); color: var(--on-primary); border-color: transparent; }
.acc-chip.locked { opacity: .6; }
.viewer { position: relative; }
.viewer-hint { position: absolute; left: 10px; bottom: 10px; z-index: 2; display: flex; gap: 5px; align-items: center; padding: 5px 9px; border-radius: 8px; background: var(--fill-2); color: var(--text-3); font-size: 11.5px; pointer-events: none; backdrop-filter: blur(8px); }
.shop { display: grid; grid-template-columns: 340px 1fr; gap: 16px; align-items: start; margin-top: 10px; }
.shop-side { position: sticky; top: 112px; }
.shop-side .win > .bd { padding: 14px; display: grid; gap: 12px; }
.shop-view { height: 360px; border-radius: 12px; background: radial-gradient(80% 70% at 50% 40%, var(--fill-2), transparent); }
.shop-pick { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.shop-card { display: grid; gap: 6px; padding: 10px 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--win); backdrop-filter: blur(18px); color: var(--text); cursor: pointer; text-align: left; font: inherit; transition: border-color .2s, transform .25s var(--ease), background .2s; }
.shop-card:hover { border-color: var(--line-3); transform: translateY(-2px); }
.shop-card.sel { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.shop-card img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 10px; background: radial-gradient(70% 70% at 50% 45%, var(--fill-2), transparent); }
.shop-card .nm { font-weight: 600; font-size: 14px; }
.shop-card .pr { font-size: 13px; color: var(--text-2); display: inline-flex; gap: 5px; align-items: center; }
.shop-card .pr.own { color: var(--text-3); }
@media (max-width: 860px) { .shop { grid-template-columns: 1fr; } .shop-side { position: static; } }

/* Launcher tab: the small console. */
.term { border-radius: 14px; background: #0c0c0c; padding: 22px; display: grid; gap: 14px; color: #cccccc; font: 13px/1.5 var(--mono); }

/* Media numbers. */
.chart.months { height: 150px; gap: 10px; margin-bottom: 22px; }
.chart.months div span { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--text-3); }

/* ---- the preview: unfolds from its own edge, never seen through the GUI ---- */
.preview { clip-path: inset(0 100% 0 0 round 16px); transform: translateX(-16px); opacity: 0; transition: clip-path .7s var(--ease), transform .7s var(--ease), opacity .35s ease; }
.split .preview { clip-path: inset(0 0 0 0 round 16px); transform: none; opacity: 1; transition: clip-path .7s var(--ease), transform .7s var(--ease), opacity .35s ease; }
.preview.below { clip-path: inset(0 0 100% 0 round 16px); transform: translateY(-12px); }
.split .preview.below { clip-path: inset(0 0 0 0 round 16px); transform: none; }
.preview:not(.below) .pv .info { max-height: 48%; overflow: auto; }
.preview .pv .info p.desc { display: block; -webkit-line-clamp: unset; overflow: visible; margin: 0; font-size: 13.5px; line-height: 1.5; }
.preview .pv .info .chips span:nth-child(n+5) { display: inline-flex; }
.preview .media { container-type: size; }
.preview.below .media { container-type: inline-size; }
.preview .media .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter .35s ease, opacity .45s ease; }

/* ---- the HUD in HTML: glass widgets like the new in-game HUD ---- */
.hwg { position: absolute; font: 600 calc(var(--hud-k, 2.35cqw) * var(--scale, 1) * var(--zoom, 1)) / 1.25 var(--ui); color: #f2f2f2; width: max-content; cursor: grab; user-select: none; touch-action: none;
  padding: .55em .7em; border-radius: .75em; background: rgba(18, 18, 19, calc(.86 * var(--o, .82))); border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 .4em 1.2em rgba(0, 0, 0, .28); backdrop-filter: blur(10px); transition: box-shadow .2s; }
.hwg.no-border { border-color: transparent; }
.hwg.bare { box-shadow: none; backdrop-filter: none; }
.hwg:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, .55); }
.hwg.drag { cursor: grabbing; box-shadow: 0 0 0 1.5px #fff; }
.hwg.sel { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .9); }
.hwg i { font-size: 1.05em; }
.hwg .title { display: flex; gap: .4em; align-items: center; font-size: .8em; color: #b9b9bb; margin-bottom: .35em; letter-spacing: .02em; }
.hwg .rows { display: grid; gap: .22em; }
.hwg .r { display: flex; gap: .5em; align-items: center; font-size: .85em; }
.hwg .r span { color: #b9b9bb; font-weight: 500; }
.hwg .r b { margin-left: auto; padding-left: .8em; font-weight: 600; }
.hwg .r i { color: #8c8c8f; }
.hwg .r .off { opacity: .45; }
.hwg kbd { font: 600 .78em var(--mono); padding: .12em .4em; border-radius: .35em; background: rgba(255, 255, 255, .1); margin-left: auto; }
.w-watermark .wm { display: flex; align-items: center; gap: .7em; }
.w-watermark .wm-logo { font: 700 1em var(--mono); letter-spacing: .06em; }
.w-watermark .wm span { display: inline-flex; gap: .3em; align-items: center; color: #b9b9bb; font-size: .82em; font-weight: 500; padding-left: .7em; border-left: 1px solid rgba(255, 255, 255, .14); }
.w-armor_hud .armor { display: grid; gap: .3em; }
.w-armor_hud .armor.row { grid-auto-flow: column; }
.w-armor_hud .a { display: grid; grid-template-columns: auto 1fr auto; gap: .2em .5em; align-items: center; font-size: .82em; }
.w-armor_hud .a i { font-size: 1.2em; color: #cfd6e0; }
.w-armor_hud .a em { grid-column: 1 / -1; height: .22em; border-radius: 1em; background: rgba(255, 255, 255, .15); overflow: hidden; }
.w-armor_hud .a em u { display: block; height: 100%; background: #f2f2f2; border-radius: 1em; text-decoration: none; }
.w-keystrokes .keys { display: grid; grid-template-columns: repeat(3, 2.1em); gap: .25em; }
.w-keystrokes kbd { margin: 0; display: grid; place-items: center; height: 2.1em; padding: 0; border-radius: .45em; background: rgba(18, 18, 19, .7); border: 1px solid rgba(255, 255, 255, .14); font: 600 .9em var(--ui); transition: background .08s, color .08s; }
.w-keystrokes kbd small { font-size: .62em; color: #8c8c8f; font-weight: 500; }
.w-keystrokes kbd.m { line-height: 1.05; font-size: .7em; height: 2.6em; }
.w-keystrokes kbd.m[data-k="l"] { grid-column: 1 / span 1; }
.w-keystrokes kbd.m[data-k="r"] { grid-column: 2 / span 2; }
.w-keystrokes kbd.sp { grid-column: 1 / -1; height: 1.1em; }
.w-keystrokes kbd.sp u { width: 40%; height: .12em; background: currentColor; border-radius: 1em; }
.w-keystrokes kbd.on { background: rgba(255, 255, 255, .92); color: #0c0c0c; }
.w-potions .pot i { font-size: 1.1em; }
.w-notifications .notes { display: grid; gap: .35em; }
.w-notifications .note { display: flex; gap: .55em; align-items: center; padding: .5em .7em; border-radius: .6em; background: rgba(18, 18, 19, .78); border: 1px solid rgba(255, 255, 255, .12); min-width: 9em; animation: noteIn .45s var(--ease); }
.w-notifications .note i { font-size: 1.4em; }
.w-notifications .note.off i { color: #8c8c8f; }
.w-notifications .note b { display: block; font-size: .85em; }
.w-notifications .note span { display: block; font-size: .72em; color: #b9b9bb; font-weight: 500; }
@keyframes noteIn { from { opacity: 0; transform: translateX(1em); } }
.w-media_player .mp { display: flex; gap: .6em; align-items: center; }
.w-media_player .cover { width: 2.8em; height: 2.8em; border-radius: .55em; display: grid; place-items: center; background: linear-gradient(135deg, #5b8cff, #c792ff); font-size: 1em; }
.w-media_player .mp-main { display: grid; gap: .15em; min-width: 9em; }
.w-media_player .mp-main b { font-size: .88em; }
.w-media_player .mp-main span { font-size: .72em; color: #b9b9bb; font-weight: 500; }
.w-media_player em { height: .2em; border-radius: 1em; background: rgba(255, 255, 255, .15); overflow: hidden; margin-top: .2em; }
.w-media_player em u { display: block; height: 100%; background: #f2f2f2; text-decoration: none; }
.w-media_player .btns { display: flex; gap: .8em; justify-content: center; font-size: .85em; margin-top: .15em; }
.w-array_list .al { display: grid; gap: .08em; }
.w-array_list .al div { display: flex; gap: .35em; padding: .12em .45em; font-size: .85em; border-radius: .3em; }
.w-array_list .al.right { justify-items: end; }
.w-array_list .al.edge div { box-shadow: inset -.18em 0 0 #f2f2f2; }
.w-array_list .al:not(.right).edge div { box-shadow: inset .18em 0 0 #f2f2f2; }
.w-array_list .al em { font-style: normal; color: #8c8c8f; font-weight: 500; }
.thud .th-head img { width: 100%; height: 100%; image-rendering: pixelated; display: block; }

/* ---- Lyrics demo ---- */
.lyr { position: absolute; inset: 0; display: grid; grid-template-rows: 1fr auto; padding: 4%; color: #fff; }
.lyr-text { align-self: center; text-align: center; display: grid; gap: .5em; text-shadow: 0 2px 12px rgba(0, 0, 0, .55); font-family: var(--mono); }
.lyr-title { font-size: 2.4cqw; color: rgba(255, 255, 255, .7); letter-spacing: .04em; }
.lyr-line { font-size: calc(4.6cqw * var(--ls, 1)); font-weight: 700; letter-spacing: .03em; opacity: var(--lo, .92); line-height: 1.2; }
.lyr-line span { opacity: .35; transition: opacity .2s; }
.lyr-line span.on { opacity: 1; }
.lyr-next { font-size: calc(2.8cqw * var(--ls, 1)); opacity: .5; }
.lyr-form { display: flex; gap: 6px; align-items: center; padding: 5px 5px 5px 12px; border-radius: 12px; background: rgba(12, 12, 14, .72); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(10px); }
.lyr-form i { color: #ff4646; font-size: 18px; }
.lyr-form .btn i { color: inherit; font-size: 14px; }
.lyr-form input { flex: 1; min-width: 0; height: 32px; border: 0; background: none; outline: none; color: #fff; font: 13px var(--ui); }
.lyr-yt { position: absolute; top: 4%; right: 3%; border-radius: 10px; overflow: hidden; box-shadow: 0 6px 18px rgba(0, 0, 0, .4); }
.lyr-yt:empty { display: none; }
.lyr-yt iframe { display: block; width: 30cqw; height: calc(30cqw * .5625); }
.lyr-timer { position: absolute; top: 4%; left: 3%; padding: 4px 10px; border-radius: 8px; background: rgba(12, 12, 14, .7); font: 600 12px var(--mono); }
.faq details.closing summary i { transform: none; color: var(--text-3); }

/* Phones: the logo keeps its shape and grows into the free room; language and theme move into the menu. */
.nav .brand { flex: none; }
.nav .brand svg { max-width: none; }
.mob-only { display: none; }
@media (max-width: 760px) {
  .nav .brand svg { height: clamp(0px, calc((100vw - 228px) / 6.6), 26px); }
  .mob-tools { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 4px 2px; border-top: 1px solid var(--line); margin-top: 6px; }
  .mob-tools button { height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--fill); color: var(--text-2); font: 600 12.5px var(--ui); cursor: pointer; }
  .mob-tools button.on { background: var(--primary); color: var(--on-primary); }
  .nav .side .desk-only { display: none; }
}
@media (max-width: 290px) { .nav .brand { display: none; } }
.err:empty, [data-2fa-setup]:empty, [data-mail-err]:empty { display: none; }
.preview .pv .info p.hint { display: block; -webkit-line-clamp: unset; overflow: visible; }

/* ClickGUI switch: the knob sits the same distance from the edge when off as when on. */
/* Whole-pixel gaps (1px all round): half pixels rounded differently made the knob sit low. */
.hg .sw::after { left: 1px; top: 1px; width: 11px; height: 11px; }
.hg .sw.on::after { transform: translateX(14px); }

/* ======================= Nov 3, second pass ======================= */
@font-face { font-family: "HW Lyrics"; src: url("../fonts/lyrics_banner.ttf") format("truetype"); font-display: swap; }

/* The preview's card scrolls by hand, without a bar. */
.preview .pv .info { scrollbar-width: none; }
.preview .pv .info::-webkit-scrollbar { display: none; }

/* A function that is off: the picture dims and says so; turning it on shows it. */
.pv-off { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 8px; color: #f2f2f2; font: 600 14px var(--ui);
  background: rgba(8, 8, 10, .55); backdrop-filter: blur(2px); text-align: center; padding: 20px; pointer-events: none; }
.pv-off i { font-size: 26px; opacity: .8; }

/* HUD over a picture: widgets keep a rounded outline; the picked one glows, the rest step back. */
.preview .media .hwg, .cmp-hud .hwg { border-radius: .8em; }
.preview .media .hwg:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); }
.media.focus .hwg:not(.sel), .media.focus .thud:not(.sel) { opacity: .28; filter: saturate(.6); transition: opacity .35s, filter .35s; }
.media .hwg.sel, .media .thud.sel { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .95), 0 0 18px 2px rgba(255, 255, 255, .28) !important; }
.media .hwg.bare.sel { background: rgba(255, 255, 255, .06); }
.thud { transition: opacity .5s ease, transform .5s ease; }
.thud.gone { opacity: 0; pointer-events: none; }
.thud { transform: scale(calc(var(--scale, 1) * var(--zoom, 1) * .5)); }
.preview .media .hud-hint { z-index: 4; }
.media.cam-on .hud-hint { opacity: 0; }

/* The comparison: the new HUD lies on the Hello World half only. */
.cmp-hud { position: absolute; inset: 0; container-type: size; pointer-events: none; --hud-k: 1.05cqw; }
.cmp-hud .hwg { cursor: default; }

/* Widget looks. */
.hwg .it { width: 1.7em; height: 1.7em; image-rendering: pixelated; display: block; }
.w-watermark .wm-logo { display: inline-flex; align-items: center; color: #f2f2f2; }
.w-watermark .wm-logo svg { height: 1.25em; width: auto; max-width: none; }
.w-watermark .wm span:not(.wm-logo) { display: inline-flex; color: #b9b9bb; font-size: .82em; font-weight: 500; padding-left: .7em; border-left: 1px solid rgba(255, 255, 255, .16); }
.w-info_panel .r span { min-width: 3.6em; }
.w-armor_hud .armor { display: grid; gap: .35em; }
.w-armor_hud .armor.row { grid-auto-flow: column; }
.w-armor_hud .a { display: grid; justify-items: center; gap: .2em; grid-template-columns: none; }
.w-armor_hud .a em { width: 1.7em; height: .2em; border-radius: 1em; background: rgba(255, 255, 255, .15); overflow: hidden; }
.w-armor_hud .a em u { display: block; height: 100%; border-radius: 1em; }
.w-armor_hud .a b { font-size: .7em; }
.hwg .dot { width: .55em; height: .55em; border-radius: 50%; display: inline-block; flex: none; }
.w-array_list .al div { padding: .08em .2em; text-shadow: 0 1px 3px rgba(0, 0, 0, .65); font-size: .9em; }
.w-array_list .al.edge div { box-shadow: none; border-right: 2px solid rgba(255, 255, 255, .9); padding-right: .45em; border-radius: 0; }
.w-array_list .al:not(.right).edge div { border-right: 0; border-left: 2px solid rgba(255, 255, 255, .9); padding: .08em .2em .08em .45em; }
.w-array_list .al em { color: rgba(255, 255, 255, .55); }
.hb { display: flex; gap: .2em; padding: .25em; border-radius: 1em; background: rgba(14, 14, 16, .72); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(8px); }
.hb span { position: relative; width: 2.3em; height: 2.3em; border-radius: .7em; display: grid; place-items: center; background: rgba(255, 255, 255, .04); }
.hb span.on { background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .85); }
.hb em { position: absolute; left: .25em; top: .1em; font: 600 .5em var(--ui); font-style: normal; color: rgba(255, 255, 255, .6); }
.hb b { position: absolute; right: .25em; bottom: .05em; font-size: .6em; text-shadow: 0 1px 2px #000; }
.bars { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .5em; width: 20em; }
.bar { display: flex; align-items: center; gap: .35em; font-size: .8em; }
.bar em { flex: 1; height: .45em; border-radius: 1em; background: rgba(0, 0, 0, .4); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.bar em u { display: block; height: 100%; border-radius: 1em; }
.bar.hp i, .bar.hp b { color: #ff5c6c; } .bar.hp u { background: linear-gradient(90deg, #ff4d5e, #ff8a8a); }
.bar.food i, .bar.food b { color: #f2b45c; } .bar.food u { background: linear-gradient(90deg, #e8963c, #f6c46d); }
.bar.armor i, .bar.armor b { color: #b9c6d8; } .bar.armor u { background: linear-gradient(90deg, #8fa3bd, #dfe7f2); }
.xp { display: grid; justify-items: center; gap: .15em; width: 20em; }
.xp b { font-size: .75em; color: #b6ff6a; text-shadow: 0 1px 2px #000; }
.xp em { width: 100%; height: .3em; border-radius: 1em; background: rgba(0, 0, 0, .45); overflow: hidden; }
.xp em u { display: block; height: 100%; background: linear-gradient(90deg, #7dd34c, #c4ff7a); }
.boss { display: grid; justify-items: center; gap: .3em; width: 18em; }
.boss b { font-size: .8em; text-shadow: 0 1px 3px #000; }
.boss em { width: 100%; height: .42em; border-radius: 1em; background: rgba(0, 0, 0, .45); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.boss em u { display: block; height: 100%; background: linear-gradient(90deg, #b44dff, #e39bff); }
.sight { display: flex; align-items: center; gap: .6em; }
.sight .ring { width: 2.2em; height: 2.2em; border-radius: 50%; border: 2px solid #ff5c6c; position: relative; animation: lockOn 1.6s cubic-bezier(.22, 1, .36, 1) infinite; }
.sight .ring::after { content: ""; position: absolute; inset: 40%; border-radius: 50%; background: #ff5c6c; }
.sight b { display: block; font-size: .9em; } .sight div span { font-size: .72em; color: #ffb3b9; }
@keyframes lockOn { 0% { transform: scale(1.8); opacity: 0; } 45% { transform: scale(1); opacity: 1; } 80% { transform: scale(1); opacity: 1; } 100% { transform: scale(.9); opacity: 0; } }
.w-event_log .log { font: 500 .78em var(--mono); display: grid; gap: .15em; }
.w-event_log .log i { color: #8c8c8f; font-style: normal; margin-right: .4em; }
.w-event_log .log b.on { color: #8fd6a8; } .w-event_log .log b.off { color: #8c8c8f; }

/* Lyrics: the game's own banner font, the field folds away while the song plays. */
.lyr-text { font-family: "HW Lyrics", var(--mono); }
.lyr[data-font="Montserrat"] .lyr-text, .lyr[data-font="Unbounded"] .lyr-text { font-family: var(--ui); }
.lyr[data-font="Console"] .lyr-text { font-family: var(--mono); }
.lyr-line { font-weight: 400; letter-spacing: .02em; }
.lyr-form { padding: 5px 5px 5px 14px; transition: transform .45s cubic-bezier(.22, 1, .36, 1), opacity .3s; }
.lyr-form i:not(.ph-fill) { display: none; }
.lyr.playing .lyr-form { transform: translateY(140%); opacity: 0; pointer-events: none; }
.lyr-again { position: absolute; right: 3%; bottom: 4%; width: 30px; height: 30px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(12, 12, 14, .7); color: #f2f2f2; display: grid; place-items: center; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s; }
.lyr.playing .lyr-again { opacity: 1; pointer-events: auto; }

/* Window bar: no icon, a rounded strip with round, centred buttons. */
.cmdbar { margin: 6px 10px 0; border: 1px solid var(--line); border-radius: 12px; height: 34px; top: 6px; }
.cmdbar .caps { align-self: center; align-items: center; height: 100%; padding: 0 4px 0 0; gap: 4px; }
.cmdbar .caps span { height: 26px; width: 40px; border-radius: 9px; display: grid; place-items: center; }
.nav { top: 40px; }

/* Menu: every item a tab of one height; the light behind the open one slides. */
.nav .links { position: relative; }
.nav .links > a, .drop-btn { white-space: nowrap; position: relative; z-index: 1; height: 36px; display: inline-flex; align-items: center; }
.nav .links > a.on { background: none; }
.nav-pill { position: absolute; left: 0; top: 50%; height: 36px; margin-top: -18px; width: 0; border-radius: 9px; background: var(--fill-2); opacity: 0; pointer-events: none; z-index: 0;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1), width .45s cubic-bezier(.22, 1, .36, 1), opacity .3s; }
.nav .links > a { transition: color .3s, background-color .3s; }
.nav-gap { width: 14px; flex: none; }
.nav .side .iconbtn, .me-btn { height: 38px; }
.nav .side .iconbtn { width: 38px; }
.me-btn { padding: 0 12px 0 5px; }
.me-btn .hide-sm { line-height: 1; display: inline-flex; align-items: center; }
.me-btn .head-av { width: 28px; height: 28px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; }
.me-btn .head-av canvas, .me-btn .head-av img { width: 100% !important; height: 100% !important; }
@media (max-width: 760px) { .nav-pill, .nav-gap { display: none; } .nav .links > a.on { background: var(--fill-2); } }

/* Dropdown lists live in <body> while open. */
.sel-list.open { opacity: 1; transform: none; pointer-events: auto; }

/* Avatars: rounded everywhere, the hover layer too. */
.head-av { border-radius: 10px; overflow: hidden; }
.av-edit { overflow: hidden; clip-path: inset(0 round 16px); }
.av-edit .head-av, .av-edit .head-av canvas, .av-edit .head-av img { border-radius: 16px; }

/* Roles: a tinted glass pill with a ring; quiet roles stay readable. */
.role { background: color-mix(in srgb, var(--rc) 16%, rgba(255, 255, 255, .03)); border-color: color-mix(in srgb, var(--rc) 48%, transparent); color: color-mix(in srgb, var(--rc) 78%, #fff); backdrop-filter: blur(6px); }
:root { --role-guest: #c4c4c8; --role-user: #5fe08a; }
:root[data-theme="light"] { --role-guest: #5c5c64; }
:root[data-theme="light"] .role { color: color-mix(in srgb, var(--rc) 85%, #000); }
.role[data-r="owner"] { background: rgba(255, 255, 255, .86); color: #0c0c0c; border-color: rgba(255, 255, 255, .6); box-shadow: 0 0 0 3px rgba(255, 255, 255, .1); }

/* The profile card stretches as tall as the page beside it. */
.app { align-items: stretch; }
.app > .side > .win { height: 100%; }

/* Sign-up: a checkbox that ticks itself in. */
label.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
label.check input[type=checkbox] { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0; border-radius: 6px; border: 1.5px solid var(--line-3); background: var(--fill);
  display: grid; place-items: center; cursor: pointer; transition: background .25s, border-color .25s, transform .15s; }
label.check input[type=checkbox]::after { content: ""; width: 10px; height: 6px; border: 2px solid var(--on-primary); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
label.check input[type=checkbox]:checked { background: var(--primary); border-color: var(--primary); }
label.check input[type=checkbox]:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
label.check input[type=checkbox]:active { transform: scale(.92); }

/* Authenticator codes: the same digits everywhere, mono, centred, evenly spaced. */
input[placeholder="000000"] { font-family: "Cascadia HW", "Cascadia Mono", Consolas, monospace !important; font-size: 18px !important; letter-spacing: .38em; text-align: center; font-variant-numeric: tabular-nums; padding-left: calc(14px + .38em) !important; }
input[placeholder="000000"]::placeholder { letter-spacing: .38em; color: var(--text-3); opacity: .7; }
.input-icon:has(input[placeholder="000000"]) > i { display: none; }

/* Plans: "Forever" is a wide card (price left, contents right); the HWID reset sits beside it. */
.plan.lifetime { grid-column: span 2; background: linear-gradient(135deg, color-mix(in srgb, var(--role-beta) 16%, var(--win)), var(--win) 55%); }
.plan.lifetime .price { font-size: 42px; }
.plan.lifetime .bd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: center; }
.plan.lifetime .fv-left { display: grid; gap: 16px; align-content: start; }
.plan.lifetime .fv-right ul { margin: 0; }
/* The card is as tall as the HWID card beside it: its contents fill all of it, top to bottom
   (name at the top, a bigger price in the middle, the button at the bottom, the list spread out). */
.plan.lifetime .bd { align-items: stretch; padding: 26px 28px; }
.plan.lifetime .fv-left { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.plan.lifetime .nm { font-size: 17px; }
.plan.lifetime .price { font-size: 56px; }
.plan.lifetime .per { font-size: 14.5px; margin-top: 6px; }
.plan.lifetime .btn { margin-top: 0; padding-top: 13px; padding-bottom: 13px; font-size: 15px; }
.plan.lifetime .fv-right { display: flex; }
.plan.lifetime .fv-right ul { flex: 1; align-content: space-between; gap: 10px; font-size: 15.5px; }
.plan.lifetime .fv-right li i { font-size: 15px; }
.plan.hwid .bd { display: grid; gap: 14px; align-content: start; }
.plan.hwid .bd .btn { margin-top: auto; }
.refund { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 16px 0 0; font-size: 13px; color: var(--text-3); }
@media (max-width: 1000px) { .plan.lifetime { grid-column: span 2; } }
@media (max-width: 760px) { .plan.lifetime { grid-column: auto; } .plan.lifetime .bd { grid-template-columns: 1fr; padding: 22px; } .plan.lifetime .price { font-size: 46px; } .plan.lifetime .fv-right ul { gap: 9px; } }
.cmp-hud { top: 8%; }

/* ClickGUI colour settings: a swatch that opens a palette and a hue strip. */
.hg .cswatch { position: absolute; width: 29px; height: 15px; border-radius: 7.5px; border: 1px solid rgba(255, 255, 255, .28); cursor: pointer; transition: box-shadow .2s, transform .2s; }
.hg .cswatch:hover, .hg .cswatch.on { box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); }
.hg .cdot { position: absolute; width: 15px; height: 15px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); cursor: pointer; transition: transform .2s cubic-bezier(.22, 1, .36, 1), box-shadow .2s; }
.hg .cdot:hover { transform: scale(1.18); }
.hg .cdot.on { box-shadow: 0 0 0 2px #0c0c0c, 0 0 0 3.5px #fff; }
.hg .chue { position: absolute; height: 10px; border-radius: 5px; cursor: crosshair; border: 1px solid rgba(255, 255, 255, .2);
  background: linear-gradient(90deg, #f33, #fa3, #ff3, #3f6, #3ff, #38f, #a3f, #f3a, #f33); }

/* Target HUD: as compact as in the game. */
.thud .th-main { min-width: 84px; }
.thud { padding: 6px 9px 6px 6px; gap: 7px; }

/* Header: language, theme and the profile button share one height. */
.nav .side .iconbtn { width: 40px; height: 40px; }
.me-btn { height: 40px; }
.nav .side .btn.sm { height: 40px; }
/* Phones: the logo shrinks with the room left, so the menu button always stays inside the bar. */
@media (max-width: 760px) {
  .nav .bar { gap: 8px; padding: 8px 8px 8px 14px; }
  .nav .brand { margin-right: auto; }
  .nav .brand svg { height: clamp(0px, calc((100vw - 250px) / 6.6), 24px); }
  .nav .side { flex: none; }
  .nav .side .btn.sm { padding: 0 12px; }
}
.thud { transform: scale(calc(var(--scale, 1) * var(--zoom, 1) * .8)); }

/* Item pictures in the HUD keep their size (the preview's full-size rule for pictures is not for them). */
.preview .media .hwg img.it, .cmp-hud .hwg img.it { width: 1.7em; height: 1.7em; object-fit: contain; }

/* The window bar scrolls away with the page; only the menu stays at the top. */
.cmdbar { position: relative; top: 0; }
.nav { top: 8px; }

/* The Custom Hotbar as the mod draws it: 1 GUI unit = .125em (the hotbar is 182 wide). */
.hbw { width: 22.75em; display: grid; font-family: var(--ui); }
.hbw .hb { width: 22.75em; box-sizing: border-box; justify-content: space-between; }
.hbw .sb { display: flex; justify-content: space-between; align-items: flex-end; }
.hbw .col { display: grid; width: 11.125em; }
.srow { height: 1.25em; display: flex; align-items: center; gap: 0; padding: 0 .375em; box-sizing: border-box; border-radius: .19em; background: rgba(12, 12, 12, .85); }
.srow em { width: 1.76em; font: 500 .85em/1 var(--ui); color: #8c8c8c; }
.srow.r em { text-align: right; }
.srow .segs { display: flex; gap: .125em; flex: 0 0 auto; }
.srow .segs i { position: relative; display: flex; width: .575em; height: .75em; border-radius: .15em; overflow: hidden; background: rgba(90, 90, 90, .55); }
.srow .segs u { display: block; height: 100%; background: #cccccc; }
.srow.ar .segs u { background: #8c8c8c; }
.srow .segs s { position: absolute; left: 0; bottom: 0; height: .25em; background: #f9f1a5; text-decoration: none; }
.srow b { flex: 1; text-align: center; font: 600 .75em/1 var(--ui); color: #f2f2f2; }
.srow .segs { margin: 0 .25em 0 .6em; }
.srow.r .segs { margin: 0 .6em 0 .25em; }
.sxp { position: relative; height: .5em; margin: .25em 0; border-radius: .25em; background: rgba(12, 12, 12, .85); }
.sxp em { position: absolute; inset: .125em; border-radius: .125em; background: rgba(90, 90, 90, .5); overflow: hidden; }
.sxp em u { display: block; height: 100%; background: #16c60c; border-radius: .125em; }
.sxp b { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 0 .54em; height: 1.25em; display: grid; place-items: center; border-radius: .54em;
  background: rgba(12, 12, 12, .95); box-shadow: inset 0 0 0 1px rgba(22, 198, 12, .8); font: 600 .7em/1 var(--ui); color: #16c60c; }

/* A picked widget keeps its own size (the dropdown rule .sel stretched it to the full width). */
.preview .media .thud.sel, .preview .media .hudw.sel { position: absolute; width: max-content; }

/* Free Look: the player model the camera swings around (third person, from behind). */
.preview .media .fl-player { position: absolute; left: 50%; bottom: 4%; width: 46%; height: 72%; pointer-events: none; opacity: 0; transform-origin: 50% 100%; z-index: 2; }
.preview .media .fl-player canvas { width: 100% !important; height: 100% !important; display: block; }
.preview .media .fl-clean { position: absolute; inset: 0; opacity: 0; pointer-events: none; z-index: 1; }

/* Watermark as in the mod (1 GUI unit = .125em): dark glass, the banner, the dim info line. */
.w-watermark { background: none !important; border: 0 !important; padding: 0 !important; box-shadow: none; }
.wmg { display: grid; justify-items: start; padding: .56em .75em .5em; border-radius: .5em; background: rgba(12, 12, 12, .7); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); width: max-content; }
.wmg-b { display: block; width: 21.625em; height: auto; image-rendering: auto; }
.wmg-i { margin-top: .45em; font: 500 1em/1 var(--ui); color: #8c8c8c; white-space: nowrap; }

/* The media player a little smaller on the site, at the level of the other widgets. */
.w-media_player .mp { font-size: .82em; }


/* Header: every item in one text size, with clear air between them. On narrower desktop screens
   whole items step aside instead of the text shrinking: the theme switch first, then the
   account link (the account stays one click away under the avatar / Войти). */
.nav .links { gap: 5px; }
.nav .links > a, .nav .links .drop-btn { font-size: 14px; font-weight: 500; padding: 7px 10px; }
.nav .bar .btn.sm { font-size: 14px; }
@media (min-width: 1001px) {
  .nav .brand svg { max-width: 150px; height: auto; }
}


/* Account overview: role, beta, registration and the last game start in one row. */
.status-card .grid3 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 700px) { .status-card .grid3 { grid-template-columns: 1fr 1fr; } }

/* Plans: as many columns as the cards fill exactly (set by the page), gaps filled from below. */
.plans { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); grid-auto-flow: dense; }
@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .plans { grid-template-columns: minmax(0, 1fr); } }

/* Pricing header: the title with its note on one line right under it, the currency on the right. */
.price-head { align-items: flex-end; }
.price-head .price-sub { max-width: none; margin: 10px 0 0; }
@media (min-width: 1000px) { .price-head .price-sub { white-space: nowrap; } }
/* Prices: the same weight and spacing on every card; "Forever" a little bigger, not stretched. */
.plan .price { letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.plan.lifetime .price { font-size: 36px; letter-spacing: -0.02em; }
@media (max-width: 760px) { .plan.lifetime .price { font-size: 34px; } }
