/* Yalda: the longest night. Red and black, nothing else. */
@font-face { font-family: "YkDisplay"; src: url("../fonts/Medium.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/SpaceGrotesk-Medium.ttf") format("truetype"); font-display: swap; }
/* Persian in Darvish, as on the rest of the site: only for Persian code points, Latin keeps its faces */
@font-face { font-family: "YkDisplay"; src: url("../fonts/Darvish-Bold.woff2") format("woff2"); font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+066B-066C, U+06F0-06F9, U+0020, U+00A0; size-adjust: 104%; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/Darvish-Regular.woff2") format("woff2"); font-weight: 100 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+066B-066C, U+06F0-06F9; size-adjust: 112%; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/Darvish-Bold.woff2") format("woff2"); font-weight: 600 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+066B-066C, U+06F0-06F9; size-adjust: 112%; }
:root { --red: #e0203f; --red2: #ff3b55; --ink: #050203; --bone: #f3e4e4; --dim: rgba(243, 228, 228, .62); }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--ink); color: var(--bone); overflow: hidden; overscroll-behavior: none;
  font: 15px/1.45 "Space Grotesk", system-ui, -apple-system, sans-serif; }
body { touch-action: none; user-select: none; -webkit-user-select: none; }
#cv { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; }
[hidden] { display: none !important; }
.yk-title, .yk-dawn b { font-family: "YkDisplay", "Space Grotesk", system-ui, sans-serif; }

/* HUD */
.yk-hud { position: fixed; z-index: 5; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 8px;
  padding: calc(env(safe-area-inset-top, 0px) + 8px) 10px 8px; background: linear-gradient(rgba(5, 2, 3, .85), transparent); pointer-events: none; }
.yk-hud > * { pointer-events: auto; }
.yk-ib { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(224, 32, 63, .5); background: rgba(5, 2, 3, .6); color: var(--bone); cursor: pointer; }
.yk-ib svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.yk-ib.off .w { opacity: .15; }
.yk-fire { flex: 1; min-width: 0; display: grid; gap: 4px; }
.yk-fire-k { font: 700 .52rem ui-monospace, monospace; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.yk-fire-k b { color: var(--red2); }
.yk-fire-bar { display: block; height: 8px; border-radius: 4px; background: rgba(224, 32, 63, .15); border: 1px solid rgba(224, 32, 63, .4); overflow: hidden; }
.yk-fire-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #6d0a18, var(--red), #ff9a5a); box-shadow: 0 0 10px var(--red); transition: width .6s; }
.yk-stat { display: grid; justify-items: center; min-width: 44px; padding: 3px 6px; border-radius: 8px; background: rgba(5, 2, 3, .55); border: 1px solid rgba(243, 228, 228, .1); }
.yk-stat span { font: 700 .44rem ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.yk-stat b { font: 700 .82rem ui-monospace, monospace; }
.yk-on b { color: #ff9a9a; }
@media (max-width: 420px) { .yk-stat { min-width: 38px; padding: 3px 4px; } .yk-hud { gap: 5px; padding-left: 6px; padding-right: 6px; } }
.yk-hp { position: fixed; z-index: 5; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 14px); width: min(220px, 50vw); height: 6px; margin-left: min(-110px, -25vw);
  border-radius: 3px; background: rgba(243, 228, 228, .12); overflow: hidden; }
.yk-hp i { display: block; height: 100%; width: 100%; background: var(--bone); transition: width .2s, background .2s; }
.yk-hp.low i { background: var(--red); }
.yk-toast { position: fixed; z-index: 6; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 64px); transform: translateX(-50%); padding: 6px 12px; border-radius: 999px;
  background: rgba(5, 2, 3, .8); border: 1px solid rgba(224, 32, 63, .5); font: 700 .74rem ui-monospace, monospace; letter-spacing: .06em; opacity: 0; transition: opacity .3s; pointer-events: none; white-space: nowrap; }
.yk-toast.on { opacity: 1; }
.yk-hint { position: fixed; z-index: 5; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 34px); transform: translateX(-50%); font: 700 .66rem ui-monospace, monospace;
  letter-spacing: .12em; text-transform: uppercase; color: var(--dim); white-space: nowrap; pointer-events: none; }

/* start */
.yk-start { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; overflow-y: auto; padding: 24px 18px;
  background: radial-gradient(70% 60% at 50% 30%, rgba(224, 32, 63, .22), transparent 70%), rgba(5, 2, 3, .82); backdrop-filter: blur(2px); }
.yk-start-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: 520px; width: 100%; }
.yk-k { margin: 0; font: 700 .58rem ui-monospace, monospace; letter-spacing: .24em; text-transform: uppercase; color: var(--red2); }
.yk-start-in { container-type: inline-size; }
/* sized from its own box: NIGHTFORGE with its tracking is 10em wide in the display face */
.yk-title { margin: 0; font-size: min(clamp(2.2rem, 11vw, 5.6rem), 9.6cqi); line-height: .88; letter-spacing: .04em; text-transform: uppercase; color: #fff;
  text-shadow: 0 0 24px rgba(224, 32, 63, .9), 3px 0 0 rgba(224, 32, 63, .7), -3px 0 0 rgba(120, 0, 20, .7); animation: yk-flick 4s infinite; }
@keyframes yk-flick { 0%, 90%, 100% { opacity: 1; } 92% { opacity: .55; } 94% { opacity: 1; } 96% { opacity: .7; } }
.yk-sub { margin: 0; color: var(--dim); font-size: .92rem; }
.yk-row { display: flex; flex-wrap: wrap; gap: 6px; }
.yk-row span { padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(224, 32, 63, .35); font-size: .76rem; color: var(--dim); }
.yk-row b { color: var(--bone); }
.yk-go { min-height: 58px; border: 0; border-radius: 4px; background: var(--red); color: #fff; font: 800 1rem system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; cursor: pointer;
  box-shadow: 0 0 30px rgba(224, 32, 63, .55), inset 0 -4px 0 rgba(0, 0, 0, .3); }
.yk-go:active { transform: translateY(2px); }
.yk-as { margin: 0; font-size: .82rem; color: var(--dim); } .yk-as b { color: var(--bone); }
.yk-how { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: .8rem; color: var(--dim); }
.yk-how b { display: inline-block; min-width: 46px; color: var(--red2); font: 700 .62rem ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
.yk-board { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; font: 700 .76rem ui-monospace, monospace; }
.yk-board li { display: grid; grid-template-columns: 20px 1fr auto; gap: 8px; padding: 6px 10px; background: rgba(224, 32, 63, .08); border-left: 2px solid var(--red); }
.yk-board span { color: var(--red2); } .yk-board em { font-style: normal; color: var(--dim); }
.yk-fine { margin: 0; font-size: .7rem; color: rgba(243, 228, 228, .4); }

/* dawn */
.yk-dawn { position: fixed; inset: 0; z-index: 8; display: grid; place-content: center; text-align: center; gap: 8px; pointer-events: none;
  background: radial-gradient(80% 60% at 50% 100%, rgba(255, 170, 90, .75), rgba(224, 32, 63, .35) 50%, transparent 80%); animation: yk-dawn 6s ease-out both; }
.yk-dawn b { font-size: clamp(3rem, 16vw, 6rem); letter-spacing: .1em; text-transform: uppercase; color: #fff; text-shadow: 0 0 40px #ffb070; }
.yk-dawn span { font-size: .95rem; }
@keyframes yk-dawn { 0% { opacity: 0; } 15%, 75% { opacity: 1; } 100% { opacity: 0; } }

/* controls */
.yk-stick { position: fixed; z-index: 4; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; border: 2px solid rgba(224, 32, 63, .4); background: rgba(224, 32, 63, .06); pointer-events: none; }
.yk-stick i { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(224, 32, 63, .5); box-shadow: 0 0 16px rgba(224, 32, 63, .6); }
.yk-flare { position: fixed; z-index: 5; right: 16px; bottom: calc(env(safe-area-inset-bottom, 0px) + 30px); width: 82px; height: 82px; border-radius: 50%; overflow: hidden;
  border: 2px solid var(--red); background: radial-gradient(circle, rgba(255, 120, 90, .5), rgba(224, 32, 63, .25) 60%, rgba(5, 2, 3, .7)); color: #fff; cursor: pointer; }
.yk-flare span { position: relative; z-index: 1; font: 800 .66rem ui-monospace, monospace; letter-spacing: .16em; text-transform: uppercase; }
.yk-flare i { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: rgba(5, 2, 3, .75); }
/* the second and third abilities: smaller, stacked above the first */
.yk-ab2, .yk-ab3 { width: 60px; height: 60px; right: 27px; }
.yk-ab2 { bottom: calc(env(safe-area-inset-bottom, 0px) + 122px); }
.yk-ab3 { bottom: calc(env(safe-area-inset-bottom, 0px) + 190px); }
.yk-ab2 span, .yk-ab3 span { font-size: .5rem; letter-spacing: .08em; }
.yk-ab2 { border-color: #6ec1ff; background: radial-gradient(circle, rgba(110, 193, 255, .45), rgba(40, 90, 160, .25) 60%, rgba(5, 2, 3, .7)); }
.yk-ab3 { border-color: #ffc60b; background: radial-gradient(circle, rgba(255, 198, 11, .45), rgba(160, 110, 10, .25) 60%, rgba(5, 2, 3, .7)); }
.yk-flare kbd { position: absolute; z-index: 1; top: 3px; right: 50%; transform: translateX(50%); font: 700 .48rem ui-monospace, monospace; opacity: .7; }
@media (pointer: coarse) { .yk-flare kbd { display: none; } }
.yk-chatbtn { position: fixed; z-index: 5; right: 18px; bottom: calc(env(safe-area-inset-bottom, 0px) + 262px); width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid rgba(224, 32, 63, .5); background: rgba(5, 2, 3, .75); color: var(--bone); display: grid; place-items: center; cursor: pointer; }
.yk-chatbtn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.yk-chatbtn i { position: absolute; top: 6px; right: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--red2); box-shadow: 0 0 8px var(--red2); }

/* chat */
.yk-chat { position: fixed; z-index: 7; right: 10px; left: 10px; bottom: calc(env(safe-area-inset-bottom, 0px) + 10px); max-width: 420px; margin-left: auto;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; height: min(52vh, 440px); border-radius: 14px; background: rgba(8, 3, 5, .94); border: 1px solid rgba(224, 32, 63, .45);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .7); user-select: text; -webkit-user-select: text; touch-action: auto; }
.yk-chat header { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; align-items: center; padding: 10px 12px; border-bottom: 1px solid rgba(224, 32, 63, .25); }
.yk-chat header b { font-size: .9rem; } .yk-chat header small { grid-column: 1; font-size: .66rem; color: var(--dim); }
.yk-chat header button { grid-column: 2; grid-row: 1 / span 2; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(243, 228, 228, .08); color: var(--bone); cursor: pointer; }
.yk-log { margin: 0; padding: 8px 12px; list-style: none; overflow-y: auto; display: grid; gap: 6px; align-content: start; overscroll-behavior: contain; }
.yk-log li { display: grid; gap: 1px; font-size: .86rem; overflow-wrap: anywhere; }
.yk-log li b { font: 700 .62rem ui-monospace, monospace; letter-spacing: .08em; color: var(--red2); }
.yk-log li.mine b { color: #ffb070; }
.yk-log li span { color: var(--bone); unicode-bidi: plaintext; }
.yk-log li button { justify-self: start; padding: 0; border: 0; background: none; color: rgba(243, 228, 228, .35); font-size: .62rem; cursor: pointer; }
.yk-log .sys { color: var(--dim); font-size: .74rem; font-style: italic; }
.yk-say { display: flex; gap: 6px; padding: 8px; border-top: 1px solid rgba(224, 32, 63, .25); }
.yk-say input { flex: 1; min-width: 0; height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(243, 228, 228, .2); background: #0d0507; color: var(--bone); font-size: 16px; }
.yk-say button { height: 42px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--red); color: #fff; font-weight: 800; cursor: pointer; }
.yk-err { margin: 0; padding: 0 12px 8px; font-size: .74rem; color: #ff8a8a; }
.yk-noscript { position: fixed; inset: 0; display: grid; place-items: center; }
@media (prefers-reduced-motion: reduce) { .yk-title { animation: none; } }

/* the wallet */
.yk-ton { display: inline-block; width: 22px; height: 22px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 30%, #6fd0ff, #0098ea 60%, #005c8f);
  -webkit-mask: none; position: relative; }
.yk-ton::after { content: ""; position: absolute; left: 6px; top: 7px; border: 5px solid transparent; border-top: 8px solid #fff; border-bottom: 0; }
.yk-gate { display: grid; gap: 8px; padding: 12px; border: 1px solid rgba(224, 32, 63, .35); border-radius: 8px; background: rgba(0, 0, 0, .35); }
.yk-wline { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .84rem; color: var(--dim); } .yk-wline b { color: var(--bone); }
.yk-go.is-ton { background: linear-gradient(90deg, #0098ea, #e0203f); }
.yk-err { margin: 0; font-size: .8rem; color: #ff8a8a; }
.yk-wchip { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid rgba(0, 152, 234, .6); background: rgba(5, 2, 3, .6);
  color: var(--bone); font: 700 .66rem ui-monospace, monospace; cursor: pointer; max-width: 120px; }
.yk-wchip i { width: 10px; height: 10px; border-radius: 50%; background: #0098ea; box-shadow: 0 0 8px #0098ea; flex: none; }
.yk-wchip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 420px) { .yk-wchip span { display: none; } .yk-wchip { padding: 0 12px; } }
.yk-wallet { position: fixed; z-index: 9; left: 10px; right: 10px; top: calc(env(safe-area-inset-top, 0px) + 56px); max-width: 420px; margin-left: auto; max-height: calc(100dvh - 80px); overflow-y: auto;
  display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: rgba(8, 3, 5, .96); border: 1px solid rgba(0, 152, 234, .45); box-shadow: 0 20px 60px rgba(0, 0, 0, .7);
  user-select: text; -webkit-user-select: text; touch-action: auto; }
.yk-wallet header { display: flex; justify-content: space-between; align-items: center; } .yk-wallet header b { font-size: 1rem; }
.yk-wallet header button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(243, 228, 228, .08); color: var(--bone); cursor: pointer; }
.yk-wcard { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 12px; border-radius: 12px;
  background: linear-gradient(120deg, rgba(0, 152, 234, .25), rgba(224, 32, 63, .15)); }
.yk-wcard .yk-ton { width: 34px; height: 34px; } .yk-wcard .yk-ton::after { left: 10px; top: 11px; border-width: 7px; border-top-width: 11px; }
.yk-wcard div { display: grid; min-width: 0; } .yk-wcard small { font: 700 .5rem ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.yk-wcard b { font: 700 .9rem ui-monospace, monospace; overflow: hidden; text-overflow: ellipsis; } .yk-wcard span { font-size: .8rem; color: var(--dim); }
.yk-mini { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(243, 228, 228, .25); background: none; color: var(--bone);
  font-size: .76rem; text-decoration: none; cursor: pointer; }
.yk-wsess { margin: 0; font-size: .76rem; color: var(--dim); }
.yk-wallet h3 { margin: 4px 0 0; font: 700 .6rem ui-monospace, monospace; letter-spacing: .2em; text-transform: uppercase; color: var(--red2); }
.yk-trophies { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.yk-trophies li { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; border: 1px solid rgba(243, 228, 228, .1); }
.yk-trophies li.on { border-color: rgba(224, 32, 63, .5); background: rgba(224, 32, 63, .08); }
.yk-trophies img { width: 44px; height: 44px; border-radius: 8px; } .yk-trophies li:not(.on) img { filter: grayscale(1) brightness(.5); }
.yk-trophies b { display: block; font-size: .84rem; } .yk-trophies small { font-size: .7rem; color: var(--dim); }
.yk-trophies .bar { display: block; height: 4px; margin-top: 4px; border-radius: 2px; background: rgba(243, 228, 228, .1); overflow: hidden; }
.yk-trophies .bar i { display: block; height: 100%; background: var(--red); }
.yk-trophies button { height: 32px; padding: 0 10px; border-radius: 999px; border: 0; background: #0098ea; color: #fff; font-weight: 800; font-size: .72rem; cursor: pointer; }
.yk-trophies .st { font: 700 .62rem ui-monospace, monospace; color: var(--dim); text-align: end; } .yk-trophies .st.ok { color: #4ade80; }
.yk-wacts { display: flex; gap: 6px; flex-wrap: wrap; }

/* the demo */
.yk-demo { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border-radius: 6px; background: var(--red); color: #fff; text-decoration: none;
  font: 800 .6rem ui-monospace, monospace; letter-spacing: .16em; text-transform: uppercase; }
.yk-tag { padding: 3px 8px; border-radius: 4px; background: var(--red); color: #fff; font: 800 .58rem ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; }
.yk-links { display: flex; flex-wrap: wrap; gap: 6px; }
.yk-mini.is-red { border-color: var(--red); color: #fff; background: rgba(224, 32, 63, .25); }
.yk-as a, .yk-links a { color: var(--bone); }
.yk-end { z-index: 11; }
.yk-title-sm { font-size: clamp(2rem, 11vw, 4rem); }
.yk-end .yk-go { display: grid; place-items: center; text-decoration: none; }

/* ---- the swarm (v3): waves, vitals, ability, level-ups, knights, codex ---- */
.yk-wave { flex: 1; min-width: 0; display: grid; gap: 4px; }
.yk-wave-k { font: 700 .56rem ui-monospace, monospace; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.yk-wave-k b { color: var(--bone); }
.yk-wave-bar { display: block; height: 6px; border-radius: 3px; background: rgba(224, 32, 63, .15); border: 1px solid rgba(224, 32, 63, .4); overflow: hidden; }
.yk-wave-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #6d0a18, var(--red), #ff9a5a); transition: width .3s linear; }
.yk-xp { position: fixed; z-index: 6; left: 0; right: 0; top: 0; height: 4px; background: rgba(110, 170, 255, .12); pointer-events: none; }
.yk-xp i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #5aa0ff, #c8e0ff); box-shadow: 0 0 8px #5aa0ff; transition: width .2s; }
.yk-boss { position: fixed; z-index: 5; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 62px); transform: translateX(-50%); width: min(520px, 86vw); display: grid; gap: 4px; text-align: center; pointer-events: none; }
.yk-boss b { font-family: "YkDisplay", system-ui, sans-serif; font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; text-shadow: 0 0 12px var(--red); }
.yk-boss span { display: block; height: 10px; border-radius: 5px; border: 1px solid rgba(255, 59, 85, .7); background: rgba(5, 2, 3, .7); overflow: hidden; }
.yk-boss i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #8a0018, #ff2a45); box-shadow: 0 0 14px #ff2a45; transition: width .15s; }
.yk-banner { position: fixed; z-index: 6; left: 50%; top: 32%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 2px; text-align: center; pointer-events: none; }
.yk-banner small { font: 700 .66rem ui-monospace, monospace; letter-spacing: .3em; text-transform: uppercase; color: var(--red2); }
.yk-banner b { font-family: "YkDisplay", system-ui, sans-serif; font-size: clamp(2.4rem, 12vw, 5rem); line-height: .9; text-transform: uppercase; color: #fff; text-shadow: 0 0 30px rgba(224, 32, 63, .9), 3px 0 0 rgba(224, 32, 63, .7); }
.yk-banner span { font-size: .86rem; color: var(--bone); max-width: 30ch; }
.yk-banner.go { animation: yk-banner 2.6s ease-out both; }
@keyframes yk-banner { 0% { opacity: 0; transform: translate(-50%, -40%) scale(1.15); } 12%, 70% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -56%); } }
.yk-vitals { position: fixed; z-index: 5; left: 12px; bottom: calc(env(safe-area-inset-bottom, 0px) + 14px); width: min(260px, 52vw); display: grid; gap: 5px; pointer-events: none; }
.yk-bar { position: relative; height: 14px; border-radius: 4px; background: rgba(5, 2, 3, .7); border: 1px solid rgba(243, 228, 228, .18); overflow: hidden; }
.yk-bar i { position: absolute; inset: 0 auto 0 0; width: 100%; transition: width .15s; }
.yk-bar span { position: relative; z-index: 1; display: block; padding: 0 6px; font: 800 .6rem/14px ui-monospace, monospace; color: #fff; text-shadow: 0 1px 2px #000; }
.yk-bar-hp i { background: linear-gradient(90deg, #a3122c, #ff3b55); }
.yk-bar-mp { height: 10px; } .yk-bar-mp span { font-size: .52rem; line-height: 10px; }
.yk-bar-mp i { background: linear-gradient(90deg, #1d4ba8, #5aa0ff); }
.yk-vitals.low .yk-bar-hp { border-color: var(--red2); box-shadow: 0 0 12px rgba(255, 59, 85, .6); }
.yk-weps { display: flex; gap: 4px; margin: 2px 0 0; padding: 0; list-style: none; }
.yk-weps li { position: relative; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; border: 1.5px solid var(--c); background: rgba(5, 2, 3, .75);
  font: 800 .56rem ui-monospace, monospace; color: var(--c); }
.yk-weps b { position: absolute; right: -4px; bottom: -4px; min-width: 14px; height: 14px; padding: 0 2px; border-radius: 7px; background: var(--c); color: #000; font: 800 .5rem/14px ui-monospace, monospace; text-align: center; }
.yk-ability { display: grid; place-content: center; gap: 1px; text-align: center; }
.yk-ability small { position: relative; z-index: 1; font: 700 .52rem ui-monospace, monospace; color: #9fc4ff; }
.yk-ability.dry { filter: grayscale(.7) brightness(.7); }
.yk-pick { align-items: start; }
.yk-pick-in { display: grid; gap: 12px; width: min(980px, 100%); margin: auto; padding-bottom: 20px; }
.yk-pick-h h2 { margin: 2px 0 0; font-family: "YkDisplay", system-ui, sans-serif; font-size: clamp(1.6rem, 6vw, 2.6rem); line-height: .95; text-transform: uppercase; }
.yk-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.yk-kn { position: relative; display: grid; gap: 2px; align-content: start; min-height: 86px; padding: 10px 10px 10px 34px; border-radius: 10px; border: 1px solid rgba(243, 228, 228, .14);
  background: rgba(5, 2, 3, .7); color: var(--bone); text-align: start; cursor: pointer; font: inherit; }
.yk-kn b { font-size: .86rem; line-height: 1.15; } .yk-kn small { font-size: .68rem; color: var(--dim); }
.yk-kn em { margin-top: 4px; font: 700 .54rem ui-monospace, monospace; font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: #ffb070; }
.yk-kn-dot { position: absolute; left: 10px; top: 13px; width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.yk-kn.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 16%, rgba(5, 2, 3, .8)); box-shadow: 0 0 0 1px var(--c), 0 0 22px color-mix(in srgb, var(--c) 40%, transparent); }
.yk-kn.locked { opacity: .55; } .yk-kn.locked .yk-kn-dot { background: #444; box-shadow: none; }
.yk-kn-more { place-content: center; padding-left: 10px; text-align: center; border-style: dashed; cursor: default; }
.yk-pick-foot { position: sticky; bottom: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border-radius: 12px;
  border: 1px solid rgba(224, 32, 63, .45); background: rgba(8, 3, 5, .94); }
.yk-pick-sel { display: grid; gap: 3px; min-width: 0; border-left: 3px solid var(--c); padding-left: 10px; }
.yk-pick-sel b { font-size: .95rem; } .yk-pick-sel span, .yk-pick-sel small { font-size: .74rem; color: var(--dim); }
.yk-kn-kit { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 2px 0 0; font: 700 .62rem ui-monospace, monospace; color: var(--bone); }
.yk-pick-foot .yk-go { min-height: 54px; padding: 0 24px; }
@media (max-width: 560px) { .yk-pick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .yk-pick-foot { grid-template-columns: minmax(0, 1fr); } }
/* level up: a bar at the bottom; the night keeps going while you pick */
.yk-lvl { position: fixed; z-index: 12; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); transform: translateX(-50%); width: min(760px, calc(100vw - 16px));
  pointer-events: none; animation: yk-lvl-in .22s cubic-bezier(.22, 1, .36, 1); }
@keyframes yk-lvl-in { from { opacity: 0; transform: translate(-50%, 24px); } }
@media (pointer: fine) { .yk-lvl { bottom: 92px; } }                              /* above life and mana */
@media (pointer: coarse) { .yk-lvl { bottom: calc(env(safe-area-inset-bottom, 0px) + 124px); left: 8px; right: 98px; width: auto; transform: none; animation-name: yk-lvl-in-m; } }
@keyframes yk-lvl-in-m { from { opacity: 0; transform: translateY(24px); } }
.yk-lvl-in { pointer-events: auto; display: grid; gap: 8px; padding: 10px; border-radius: 16px; border: 1px solid rgba(255, 198, 11, .35);
  background: rgba(8, 3, 5, .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.yk-lvl-top { display: flex; align-items: baseline; gap: 10px; padding: 0 4px; }
.yk-lvl-top .yk-k { margin: 0; }
.yk-lvl-top h2 { margin: 0; font-family: "YkDisplay", system-ui, sans-serif; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .02em; }
.yk-lvl-auto { margin-inline-start: auto; font: 700 .62rem ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.yk-lvl-auto b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #ffc60b; color: #170e02; font-size: .78rem; }
.yk-lvl-bar { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.yk-lvl-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ffc60b, #ff6a4a); transform-origin: left; }
[dir="rtl"] .yk-lvl-bar i { transform-origin: right; }
.yk-cards { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 8px; }
.yk-card { position: relative; display: grid; gap: 4px; align-content: start; min-height: 0; padding: 10px 11px; border-radius: 12px; border: 1.5px solid var(--c); text-align: start; cursor: pointer;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 18%, rgba(8, 3, 5, .95)), rgba(8, 3, 5, .95)); color: var(--bone); font: inherit;
  box-shadow: 0 0 18px color-mix(in srgb, var(--c) 25%, transparent); transition: transform .12s; touch-action: manipulation; }
.yk-card:hover, .yk-card:focus-visible { transform: translateY(-3px); }
.yk-card.auto { box-shadow: 0 0 0 2px #ffc60b, 0 0 22px rgba(255, 198, 11, .35); }
.yk-auto { position: absolute; top: -8px; inset-inline-end: 8px; padding: 1px 7px; border-radius: 999px; background: #ffc60b; color: #170e02; font: 800 .5rem ui-monospace, monospace;
  letter-spacing: .12em; text-transform: uppercase; font-style: normal; }
.yk-card small { font: 700 .54rem ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--c); display: flex; gap: 6px; align-items: center; }
.yk-card b { font-size: .92rem; line-height: 1.15; } .yk-card > span { font-size: .72rem; color: var(--dim); line-height: 1.35; }
@media (max-width: 560px) {
  .yk-card { padding: 8px 8px 9px; } .yk-card b { font-size: .8rem; }
  .yk-card > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .64rem; }
  .yk-card small .yk-key { display: none; }
}
.yk-downed { position: fixed; z-index: 7; left: 50%; top: 40%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 8px; padding: 18px 22px; border-radius: 14px;
  border: 1px solid rgba(120, 230, 220, .5); background: rgba(5, 2, 3, .85); text-align: center; pointer-events: none; }
.yk-downed b { font-family: "YkDisplay", system-ui, sans-serif; font-size: 1.4rem; text-transform: uppercase; }
.yk-downed span { font-size: .84rem; color: var(--dim); }
.yk-lift { display: block; width: 220px; height: 8px; border-radius: 4px; background: rgba(120, 230, 220, .15); overflow: hidden; }
.yk-lift i { display: block; height: 100%; width: 0; background: #78e6dc; transition: width .3s; }
.yk-earned { display: grid; gap: 6px; }
.yk-earned p { display: grid; gap: 1px; margin: 0; padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(255, 198, 11, .45); background: rgba(255, 198, 11, .08); }
.yk-earned b { color: #ffc60b; font-size: .86rem; } .yk-earned span { font-size: .74rem; color: var(--dim); }
.yk-codex { z-index: 13; max-width: 480px; }
.yk-tabs { display: flex; gap: 4px; }
.yk-tabs button { flex: 1; height: 34px; border-radius: 8px; border: 1px solid rgba(243, 228, 228, .18); background: none; color: var(--dim); font: 700 .66rem ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.yk-tabs button.on { border-color: var(--red); color: #fff; background: rgba(224, 32, 63, .16); }
.yk-tab { display: grid; gap: 8px; }
.yk-achs li { grid-template-columns: 14px 1fr auto; }
.yk-ach-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(243, 228, 228, .3); } .yk-achs li.on .yk-ach-dot { background: #ffc60b; border-color: #ffc60b; box-shadow: 0 0 8px #ffc60b; }
.yk-ash { margin: 0; font-family: "YkDisplay", system-ui, sans-serif; font-size: 1.6rem; color: #ffb070; }
.yk-forge { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.yk-forge li { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(243, 228, 228, .1); }
.yk-forge b { display: block; font-size: .84rem; } .yk-forge small { display: block; font-size: .7rem; color: var(--dim); }
.yk-pips { display: flex; gap: 3px; margin-top: 5px; } .yk-pips i { width: 16px; height: 5px; border-radius: 2px; background: rgba(243, 228, 228, .14); } .yk-pips i.on { background: #ffb070; }
.yk-forge .yk-mini:disabled { opacity: .45; cursor: default; }
.yk-codex .yk-board li { grid-template-columns: 20px 1fr auto; }

/* v4: the 3D hall, lobbies, voice, the connection, the roll */
#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; }
#gl:not([hidden]) + #cv { background: transparent; }
.yk-view { width: auto; min-width: 38px; padding: 0 8px; font: 800 .7rem ui-monospace, monospace; letter-spacing: .08em; }
.yk-view[aria-pressed="true"] { background: rgba(224, 32, 63, .35); border-color: var(--red); }
.yk-mic .x { opacity: 0; }
.yk-mic.on { background: rgba(60, 200, 120, .3); border-color: #5fe39a; }
.yk-mic.muted .x { opacity: 1; stroke: var(--red2); }
.yk-net { position: fixed; z-index: 14; top: calc(env(safe-area-inset-top, 0px) + 64px); left: 50%; transform: translateX(-50%); padding: 7px 14px; border-radius: 999px;
  font: 700 .74rem ui-monospace, monospace; letter-spacing: .04em; background: rgba(5, 2, 3, .85); border: 1px solid rgba(243, 228, 228, .25); white-space: nowrap; pointer-events: none; }
.yk-net.down { border-color: var(--red2); color: #ffd0d6; animation: yk-pulse 1.2s ease-in-out infinite; }
.yk-net.up { border-color: #5fe39a; color: #c8ffd9; }
@keyframes yk-pulse { 50% { opacity: .55; } }
.yk-roll { position: fixed; z-index: 5; right: 108px; bottom: calc(env(safe-area-inset-bottom, 0px) + 36px); width: 58px; height: 58px; border-radius: 50%;
  border: 1px solid rgba(243, 228, 228, .35); background: rgba(5, 2, 3, .7); color: var(--bone); display: grid; place-items: center; cursor: pointer; touch-action: none; }
.yk-roll svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (pointer: fine) { .yk-roll { display: none; } }
.yk-lobby-in { display: grid; gap: 12px; max-width: 560px; width: 100%; }
.yk-lb-h { margin: 0; font-size: clamp(1.8rem, 8vw, 3.2rem); line-height: .95; text-transform: uppercase; color: #fff; text-shadow: 0 0 22px rgba(224, 32, 63, .8); overflow-wrap: anywhere; }
.yk-lb-code { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: rgba(224, 32, 63, .1); border: 1px solid rgba(224, 32, 63, .35); }
.yk-lb-code span { font: 700 .6rem ui-monospace, monospace; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.yk-lb-code b { font: 800 1.5rem ui-monospace, monospace; letter-spacing: .3em; color: #fff; direction: ltr; }
.yk-lb-priv { display: inline-flex; align-items: center; gap: 6px; margin-inline-start: auto; font-size: .78rem; color: var(--dim); }
.yk-lb-members { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.yk-lm { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: rgba(243, 228, 228, .05); border: 1px solid rgba(243, 228, 228, .1); }
.yk-lm.off { opacity: .55; }
.yk-lm-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.yk-lm.talk .yk-lm-dot { box-shadow: 0 0 0 3px rgba(95, 227, 154, .9), 0 0 14px #5fe39a; }
.yk-lm b { display: block; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yk-lm small { font-size: .74rem; color: var(--dim); }
.yk-lm-tags { display: flex; gap: 4px; }
.yk-lm-tags em { font-style: normal; font: 700 .56rem ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; padding: 3px 7px; border-radius: 99px; background: rgba(243, 228, 228, .1); }
.yk-lm-tags em.host { background: rgba(255, 198, 11, .2); color: #ffd56a; } .yk-lm-tags em.mic { background: rgba(95, 227, 154, .18); color: #9ff0c0; }
.yk-lm-kick { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(243, 228, 228, .2); background: none; color: var(--dim); cursor: pointer; }
.yk-lb-knight { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: var(--dim); }
.yk-lb-knight b { color: #fff; font-size: 1rem; text-shadow: 0 0 12px var(--c, #e0203f); }
.yk-lb-acts { display: grid; gap: 8px; }
.yk-go.is-ghost { background: rgba(5, 2, 3, .6); border: 1px solid rgba(243, 228, 228, .4); box-shadow: none; }
.yk-go.is-ghost.on { background: rgba(60, 200, 120, .3); border-color: #5fe39a; }
#lbVoice.on { background: rgba(60, 200, 120, .25); border-color: #5fe39a; }
.yk-pick-lobby { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; border: 1px dashed rgba(243, 228, 228, .2); }
.yk-pick-lobby > span { font: 700 .6rem ui-monospace, monospace; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.yk-joinf { display: inline-flex; gap: 6px; }
.yk-joinf input { width: 6.4em; height: 32px; padding: 0 10px; border-radius: 999px; border: 1px solid rgba(243, 228, 228, .25); background: rgba(0, 0, 0, .4); color: #fff;
  font: 800 .9rem ui-monospace, monospace; letter-spacing: .24em; text-transform: uppercase; direction: ltr; }
.yk-resume { position: fixed; z-index: 15; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); transform: translateX(-50%); display: grid; gap: 6px; justify-items: center; text-align: center;
  width: min(420px, calc(100vw - 32px)); padding: 14px 16px; border-radius: 14px; background: rgba(12, 4, 7, .95); border: 1px solid var(--red); box-shadow: 0 0 40px rgba(224, 32, 63, .4); }
.yk-resume span { font-size: .82rem; color: var(--dim); } .yk-resume div { display: flex; gap: 8px; }

/* the codex's 666: a group and a filter */
.yk-achbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 10px; }
.yk-achsel { flex: 1 1 180px; min-width: 0; height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(5, 2, 3, .8); color: var(--bone); font: inherit; font-size: .82rem; }
.yk-achseg { display: inline-flex; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; overflow: hidden; }
.yk-achseg button { height: 34px; padding: 0 12px; border: 0; background: none; color: var(--dim); font: 700 .7rem ui-monospace, monospace; letter-spacing: .06em; cursor: pointer; }
.yk-achseg button.on { background: var(--bone); color: #120a0b; }

/* NightKing x Panjgoosheh: the Energy bar, the Night Rush, the mark on the HUD */
.yk-nklogo { height: 16px; width: auto; opacity: .85; flex: none; pointer-events: none; filter: drop-shadow(0 0 6px rgba(92, 200, 255, .5)); }
@media (max-width: 420px) { .yk-nklogo { height: 12px; } }
.yk-bar-en { height: 12px; overflow: visible; border-color: rgba(92, 200, 255, .35); }
.yk-bar-en i { width: 0; border-radius: 3px; background: linear-gradient(90deg, #1e7fbf, #5cc8ff 60%, #a5e4ff); box-shadow: 0 0 10px rgba(92, 200, 255, .55); }
.yk-bar-en img { position: absolute; z-index: 2; left: -4px; top: 50%; height: 26px; width: auto; transform: translateY(-50%) rotate(-12deg); filter: drop-shadow(0 2px 3px #000); }
.yk-bar-en span { padding-left: 16px; font-size: .52rem; line-height: 12px; letter-spacing: .12em; text-transform: uppercase; }
.yk-bar-en.full { animation: yk-en 0.9s ease-in-out infinite; }
@keyframes yk-en { 50% { box-shadow: 0 0 16px rgba(92, 200, 255, .9); } }
.yk-rush { position: fixed; z-index: 6; right: 108px; bottom: calc(env(safe-area-inset-bottom, 0px) + 112px); display: grid; place-items: center; gap: 1px; width: 66px; height: 66px;
  border-radius: 18px; border: 1px solid rgba(92, 200, 255, .35); background: rgba(6, 5, 11, .78); color: #a5e4ff; cursor: pointer; opacity: .45; touch-action: none;
  transition: opacity .2s, transform .2s, box-shadow .2s; }
.yk-rush img { width: 46px; height: auto; }
.yk-rush b { font: 800 .62rem ui-monospace, monospace; letter-spacing: .18em; text-transform: uppercase; }
.yk-rush kbd { position: absolute; top: 3px; right: 5px; font: 700 .5rem ui-monospace, monospace; opacity: .6; }
@media (pointer: coarse) { .yk-rush kbd { display: none; } }
.yk-rush.ready { opacity: 1; border-color: #5cc8ff; box-shadow: 0 0 0 2px rgba(92, 200, 255, .35), 0 0 28px rgba(92, 200, 255, .6); animation: yk-rushpulse 1s ease-in-out infinite; }
.yk-rush.on { opacity: 1; background: linear-gradient(160deg, #5cc8ff, #4b1c8c); color: #fff; }
@keyframes yk-rushpulse { 50% { transform: scale(1.06); } }
body.yk-rushing::after { content: ""; position: fixed; inset: 0; z-index: 4; pointer-events: none;
  box-shadow: inset 0 0 120px rgba(92, 200, 255, .45), inset 0 0 40px rgba(75, 28, 140, .5); animation: yk-rushglow .5s ease-in-out infinite alternate; }
@keyframes yk-rushglow { to { box-shadow: inset 0 0 160px rgba(92, 200, 255, .6), inset 0 0 60px rgba(75, 28, 140, .6); } }
@media (prefers-reduced-motion: reduce) { .yk-rush.ready, body.yk-rushing::after, .yk-bar-en.full { animation: none; } }

/* the halls, on the knight screen and in the lobby */
.yk-halls { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 0 0 14px; }
.yk-hall { position: relative; display: grid; gap: 2px; text-align: start; padding: 10px 12px 10px 14px; border-radius: 12px; cursor: pointer; overflow: hidden; color: #fff;
  border: 1px solid rgba(243, 228, 228, .14); background: linear-gradient(135deg, var(--hf), rgba(5, 2, 3, .9) 80%); }
.yk-hall::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--hc); }
.yk-hall b { font-size: .86rem; line-height: 1.15; }
.yk-hall small { font-size: .68rem; color: rgba(255, 255, 255, .7); }
.yk-hall em { font-style: normal; font-size: .62rem; letter-spacing: .1em; color: var(--hc); }
.yk-hall.on { border-color: var(--hc); box-shadow: 0 0 0 1px var(--hc), 0 0 22px color-mix(in srgb, var(--hc) 45%, transparent); }
.yk-hall-nk { position: absolute; inset-inline-end: 8px; bottom: 8px; width: 38px; height: auto; opacity: .5; }
.yk-hall-sw { display: none; }
.yk-lb-hall { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: rgba(92, 200, 255, .07); border: 1px solid rgba(92, 200, 255, .25); }
.yk-lb-hall span { font: 700 .6rem ui-monospace, monospace; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.yk-lb-hall b { font-size: .95rem; }
.yk-lb-hall select { margin-inline-start: auto; max-width: 100%; padding: 6px 8px; border-radius: 8px; background: #0a0610; color: #fff; border: 1px solid rgba(243, 228, 228, .2); }
.yk-nkmark { height: 18px; width: auto; flex: none; }
.yk-nkgo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; text-decoration: none; background: linear-gradient(120deg, #5cc8ff, #4b1c8c) !important; border-color: #5cc8ff !important; color: #fff !important; }
.yk-nkgo img { height: 18px; width: auto; }

/* NightForge × NightKing: the two marks, Quick play, and the hall and knight picker */
.yk-cobrand { display: inline-flex; align-items: center; justify-self: start; gap: 10px; padding: 8px 14px; border-radius: 99px; background: rgba(6, 5, 11, .7);
  border: 1px solid rgba(92, 200, 255, .35); box-shadow: 0 0 24px rgba(92, 200, 255, .15); backdrop-filter: blur(8px); }
.yk-cobrand img { display: block; height: 24px; width: auto; }
.yk-cobrand span { font: 800 .7rem system-ui, sans-serif; letter-spacing: .22em; color: #fff; }
.yk-cobrand i { font-style: normal; font-weight: 800; color: #5cc8ff; }
.yk-cobrand.sm { padding: 6px 12px; gap: 8px; } .yk-cobrand.sm img { height: 18px; }
.yk-hudbrand { display: inline-flex; align-items: center; gap: 5px; flex: none; pointer-events: none; }
.yk-hudbrand i { font-style: normal; font-size: .62rem; font-weight: 800; color: #5cc8ff; }
.yk-pglogo { height: 16px; width: auto; opacity: .9; }
@media (max-width: 420px) { .yk-pglogo { height: 12px; } }
.yk-go-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.yk-quick { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; background: linear-gradient(135deg, #5cc8ff, #4b1c8c); box-shadow: 0 0 26px rgba(92, 200, 255, .35); }
.yk-quick svg, .yk-quick-big svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.yk-pick-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.yk-quick-big { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 18px 8px 14px; border: 0; border-radius: 14px; cursor: pointer; color: #fff; text-align: start;
  background: linear-gradient(135deg, #5cc8ff 0%, #4b1c8c 70%); box-shadow: 0 0 30px rgba(92, 200, 255, .35); transition: transform .15s; }
.yk-quick-big:hover { transform: translateY(-2px); }
.yk-quick-big b { display: block; font: 800 .95rem system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.yk-quick-big small { display: block; font-size: .7rem; opacity: .85; }
.yk-step { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; font: 700 .62rem ui-monospace, monospace; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.yk-step b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #5cc8ff; color: #04202e; font-size: .7rem; letter-spacing: 0; }
.yk-halls { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 10px; }
.yk-hall { min-height: 108px; padding-block: 12px; padding-inline: 16px 52px; border: 1px solid color-mix(in srgb, var(--hc) 40%, transparent);
  background: radial-gradient(90% 120% at 100% 100%, color-mix(in srgb, var(--hc) 34%, transparent), transparent 70%), linear-gradient(160deg, var(--hb, #050203), rgba(5, 2, 3, .92)); }
.yk-hall b { font-size: .92rem; }
.yk-hall-can { position: absolute; inset-inline-end: 10px; top: 10px; width: 26px; height: auto; filter: drop-shadow(0 0 12px var(--hc)); transform: rotate(8deg); transition: transform .2s; }
.yk-hall:hover .yk-hall-can, .yk-hall.on .yk-hall-can { transform: rotate(0) translateY(-3px) scale(1.08); }
.yk-hall-nk { inset-inline-end: auto; inset-inline-start: 16px; bottom: 10px; width: 44px; opacity: .65; }
.yk-hall em { margin-top: 2px; margin-bottom: 18px; }
.yk-kn { min-height: 96px; transition: transform .15s, border-color .15s; }
.yk-kn:not(.locked):hover { transform: translateY(-2px); border-color: var(--c); }
@media (max-width: 560px) {
  .yk-halls { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin-inline: -4px; }
  .yk-halls .yk-hall { flex: 0 0 66%; scroll-snap-align: start; }
  .yk-go-row { grid-template-columns: minmax(0, 1fr); }
  .yk-quick-big { width: 100%; }
}

/* ---- v5: a game on any phone ------------------------------------------------
   One short bar on top (leave, wave, level, kills, online, a menu), the thumb
   buttons clear of notches, a title screen to start on and a results screen
   to end on. */
.yk-hud { gap: 6px; padding: calc(env(safe-area-inset-top, 0px) + 6px) max(8px, env(safe-area-inset-right, 0px)) 6px max(8px, env(safe-area-inset-left, 0px)); }
.yk-stat { min-width: 42px; padding: 3px 6px; border-radius: 9px; }
.yk-stat span { font: 700 .54rem/1.2 "Space Grotesk", system-ui, sans-serif; letter-spacing: .04em; text-transform: none; }
.yk-stat b { font: 800 .92rem/1.1 "Space Grotesk", system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.yk-wave-k { font: 700 .62rem "Space Grotesk", system-ui, sans-serif; letter-spacing: .04em; text-transform: none; }
.yk-wave-k b { font-variant-numeric: tabular-nums; }
.yk-more svg { fill: currentColor; stroke: none; }
.yk-more[aria-expanded="true"] { background: rgba(224, 32, 63, .35); border-color: var(--red); }
@media (max-width: 520px) { .yk-hudbrand { display: none; } }
@media (max-width: 340px) { .yk-on { display: none; } }

/* the menu: a short list under the dots on a phone */
.yk-hmenu { position: fixed; z-index: 9; top: calc(env(safe-area-inset-top, 0px) + 52px); inset-inline-end: max(8px, env(safe-area-inset-right, 0px));
  display: none; flex-direction: column; gap: 4px; width: min(240px, calc(100vw - 16px)); padding: 6px; border-radius: 16px;
  background: rgba(8, 3, 5, .95); border: 1px solid rgba(224, 32, 63, .4); box-shadow: 0 18px 50px rgba(0, 0, 0, .6); }
.yk-hmenu.open { display: flex; animation: yk-menu-in .18s cubic-bezier(.22, 1, .36, 1); }
@keyframes yk-menu-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
#hud[hidden] ~ .yk-hmenu { display: none !important; }
.yk-hmenu .yk-ib, .yk-hmenu .yk-wchip { display: flex; align-items: center; justify-content: flex-start; gap: 12px; width: 100%; max-width: none; height: 48px; padding: 0 14px;
  border: 0; border-radius: 11px; background: rgba(243, 228, 228, .05); color: var(--bone); font: 600 .9rem "Space Grotesk", system-ui, sans-serif; letter-spacing: 0; text-align: start; }
.yk-hmenu .yk-ib:active, .yk-hmenu .yk-wchip:active { transform: scale(.98); background: rgba(243, 228, 228, .1); }
.yk-hmenu .yk-wchip span { display: inline !important; }
.yk-hmenu .yk-view { font-weight: 800; letter-spacing: .08em; }
.yk-hmenu .yk-view[aria-pressed="true"] { background: rgba(224, 32, 63, .25); }
.yk-hmenu .yk-ib.off { color: var(--dim); }
/* a computer: the same buttons as a toolbar at the end of the bar */
@media (min-width: 900px) and (pointer: fine) {
  .yk-more { display: none; }
  .yk-hud { padding-inline-end: 330px; }
  .yk-hmenu { display: flex; flex-direction: row; align-items: center; gap: 8px; top: calc(env(safe-area-inset-top, 0px) + 6px); width: auto; padding: 0; border: 0; border-radius: 0;
    background: none; box-shadow: none; animation: none; }
  .yk-hmenu .yk-ib { justify-content: center; width: 38px; height: 38px; padding: 0; border: 1px solid rgba(224, 32, 63, .5); border-radius: 10px; background: rgba(5, 2, 3, .6); }
  .yk-hmenu .yk-view { width: auto; min-width: 38px; padding: 0 8px; font-size: .7rem; }
  .yk-hmenu .yk-wchip { width: auto; max-width: 140px; height: 38px; padding: 0 10px; border: 1px solid rgba(0, 152, 234, .6); border-radius: 10px; background: rgba(5, 2, 3, .6); font: 700 .66rem ui-monospace, monospace; }
  .yk-hmenu .yk-wchip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .yk-ml { display: none; }
}

/* thumbs: clear of rounded corners and notches, sideways too */
.yk-vitals { left: max(12px, calc(env(safe-area-inset-left, 0px) + 8px)); }
.yk-flare { right: max(16px, calc(env(safe-area-inset-right, 0px) + 10px)); }
.yk-ab2, .yk-ab3 { right: max(27px, calc(env(safe-area-inset-right, 0px) + 21px)); }
.yk-roll, .yk-rush { right: max(108px, calc(env(safe-area-inset-right, 0px) + 102px)); }
.yk-chatbtn { right: max(18px, calc(env(safe-area-inset-right, 0px) + 12px)); }
.yk-flare:active, .yk-roll:active, .yk-chatbtn:active { transform: scale(.94); }
.yk-flare, .yk-roll, .yk-chatbtn { transition: transform .1s ease-out; }
@media (max-height: 460px) and (orientation: landscape) {
  .yk-flare { width: 70px; height: 70px; bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); }
  .yk-ab2, .yk-ab3 { width: 52px; height: 52px; }
  .yk-ab2 { bottom: calc(env(safe-area-inset-bottom, 0px) + 96px); right: max(25px, calc(env(safe-area-inset-right, 0px) + 19px)); }
  .yk-ab3 { bottom: calc(env(safe-area-inset-bottom, 0px) + 156px); right: max(25px, calc(env(safe-area-inset-right, 0px) + 19px)); }
  .yk-chatbtn { width: 44px; height: 44px; bottom: calc(env(safe-area-inset-bottom, 0px) + 216px); }
  .yk-roll { bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); right: max(96px, calc(env(safe-area-inset-right, 0px) + 90px)); }
  .yk-rush { bottom: calc(env(safe-area-inset-bottom, 0px) + 88px); right: max(96px, calc(env(safe-area-inset-right, 0px) + 90px)); width: 58px; height: 58px; }
  .yk-vitals { width: min(240px, 34vw); bottom: calc(env(safe-area-inset-bottom, 0px) + 10px); }
  .yk-hmenu { top: calc(env(safe-area-inset-top, 0px) + 50px); max-height: calc(100dvh - 60px); overflow-y: auto; }
}
@media (pointer: coarse) { .yk-mini { min-height: 40px; padding: 0 14px; } }

/* the title screen: the hall behind, the name big, one button to press */
#start { place-items: end center; padding: max(28px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(22px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: linear-gradient(180deg, rgba(5, 2, 3, .2) 0%, rgba(5, 2, 3, .55) 32%, rgba(5, 2, 3, .93) 62%, #050203 100%),
    url("../banners/nightforge-hall.webp") 50% 18% / cover no-repeat, var(--ink); backdrop-filter: none; }
#start .yk-start-in { gap: 14px; }
#start .yk-title { font-size: min(clamp(3rem, 16vw, 7rem), 9.6cqi); }
:root[lang="fa"] #start .yk-title { font-size: min(clamp(3rem, 16vw, 7rem), 22cqi); }
#start .yk-sub { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; color: rgba(243, 228, 228, .78); }
#start .yk-row span { background: rgba(5, 2, 3, .55); }
.yk-go { border-radius: 12px; font-family: "YkDisplay", "Space Grotesk", system-ui, sans-serif; font-weight: 400; letter-spacing: .1em; transition: transform .12s ease-out, filter .15s; }
.yk-go:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .yk-go:hover { filter: brightness(1.12); } }
.yk-gate { border-radius: 16px; background: rgba(5, 2, 3, .62); }
.yk-fold { border-radius: 12px; background: rgba(243, 228, 228, .045); }
.yk-fold > summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 16px; list-style: none; cursor: pointer; font-weight: 700; font-size: .9rem; }
.yk-fold > summary::-webkit-details-marker { display: none; }
.yk-fold > summary::after { content: ""; width: 9px; height: 9px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); transition: transform .2s; opacity: .7; }
.yk-fold[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.yk-fold > :not(summary) { margin: 0 14px 14px; }

/* choosing: the chosen knight in a short bar, the rest of the screen for the knights */
@media (max-width: 560px) {
  .yk-pick { padding: max(14px, env(safe-area-inset-top, 0px)) 12px 0; }
  .yk-pick-in { padding-bottom: max(10px, env(safe-area-inset-bottom, 0px)); }
  .yk-pick-foot { gap: 8px; padding: 10px; border-radius: 16px; }
  .yk-pick-sel { gap: 2px; }
  .yk-pick-sel > span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; }
  .yk-pick-sel .yk-ab-line, .yk-pick-sel .yk-stat-bit { display: none; }
  .yk-pick-foot .yk-go { width: 100%; min-height: 54px; }
  .yk-kn { min-height: 78px; }
}

/* the end of a night: the numbers big, one button to go again */
.yk-end { place-items: center; padding: max(24px, env(safe-area-inset-top, 0px)) 16px max(20px, env(safe-area-inset-bottom, 0px));
  background: radial-gradient(80% 50% at 50% 20%, rgba(224, 32, 63, .28), transparent 70%), rgba(5, 2, 3, .9); }
.yk-end .yk-start-in { gap: 16px; max-width: 560px; }
.yk-end .yk-k, .yk-end .yk-title { text-align: center; }
#overStats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
#overStats span { display: flex; flex-direction: column-reverse; align-items: center; gap: 3px; min-width: 0; padding: 12px 4px; border-radius: 14px;
  border: 1px solid rgba(224, 32, 63, .3); background: rgba(5, 2, 3, .6); font-size: .72rem; color: var(--dim); text-align: center; }
#overStats b { font: 800 1.3rem/1 "Space Grotesk", system-ui, sans-serif; color: #fff; font-variant-numeric: tabular-nums; }
@media (max-width: 440px) {
  #overStats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  #overStats span { grid-column: span 2; } #overStats span:nth-child(n + 4) { grid-column: span 3; }
}
.yk-earned { max-height: min(34vh, 300px); overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; }
.yk-end-acts { display: grid; gap: 10px; }
.yk-end-acts .yk-go { width: 100%; min-height: 60px; }
.yk-end-acts .yk-links { justify-content: center; }

/* the lobby: big buttons for thumbs */
.yk-lb-acts .yk-go { width: 100%; }
@media (max-width: 560px) { .yk-lobby { place-items: end center; padding-bottom: max(18px, env(safe-area-inset-bottom, 0px)); } }
@media (prefers-reduced-motion: reduce) { .yk-hmenu.open { animation: none; } }
/* Persian letters join: no tracking on anything that may be in Farsi, and no
   monospace either (its wide spaces pull the words apart) */
:root[lang="fa"] :is(.yk-title, .yk-banner b, .yk-dawn b, .yk-downed b, .yk-lvl-top h2, .yk-pick-h h2, .yk-lb-h, .yk-boss b, .yk-k, .yk-go, .yk-mini, .yk-banner small,
  .yk-step, .yk-how b, .yk-pick-lobby > span, .yk-lb-code span, .yk-lb-hall span, .yk-lvl-auto, .yk-card small, .yk-quick-big b, .yk-tabs button, .yk-hint, .yk-toast,
  .yk-wallet h3, .yk-kn em, .yk-hall em, .yk-wave-k, .yk-stat span, .yk-tag, .yk-achseg button, .yk-net, .yk-wcard small, .yk-lm-tags em, .yk-rush b, .yk-bar-en span,
  .yk-flare span) { letter-spacing: 0; }
:root[lang="fa"] :is(.yk-k, .yk-step, .yk-how b, .yk-pick-lobby > span, .yk-lb-code span, .yk-lb-hall span, .yk-lvl-auto, .yk-card small, .yk-tabs button, .yk-hint,
  .yk-toast, .yk-wallet h3, .yk-kn em, .yk-hall em, .yk-tag, .yk-achseg button, .yk-banner small, .yk-rush b, .yk-bar-en span, .yk-flare span, .yk-kn-kit, .yk-ab-line,
  .yk-board, .yk-trophies .st, .yk-wsess, .yk-fire-k, .yk-log li b, .yk-net, .yk-wcard small, .yk-lm-tags em) { font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 700; }

/* ------------------------------------------------------------------ the onboarding
   A hall, then a knight, then one big button (templates/yalda_knight.html,
   #pick). Flat red and black, big cards, a press on everything; nothing
   moves by itself. Scoped under .yk-ob so the older picker's rules stay out. */
.yk-ob { --ob-ease: cubic-bezier(.22, 1, .36, 1); position: fixed; inset: 0; z-index: 10; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto;
  background: rgba(5, 2, 3, .92); color: var(--bone); }
.yk-ob-top { display: flex; align-items: center; gap: 12px; padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px 4px; }
.yk-ob-x { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: rgba(243, 228, 228, .08); color: var(--bone); }
.yk-ob-x svg, .yk-ob-back svg, .yk-ob-quick svg, .yk-ob-go svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.yk-ob-brand { display: inline-flex; align-items: center; gap: 8px; } .yk-ob-brand img { display: block; height: 24px; width: auto; }
.yk-ob-brand i { font-style: normal; font-weight: 800; color: var(--red2); }
.yk-ob-who { min-width: 0; margin-inline-start: auto; font-size: .9rem; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yk-ob-who b { color: var(--bone); }
.yk-ob-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; width: 100%; max-width: 1100px; margin: 0 auto; padding: 6px 16px 12px; }
.yk-ob-head .yk-title { margin: 0; font-size: clamp(2.2rem, 9vw, 4.6rem); line-height: .85; letter-spacing: -.01em; text-transform: uppercase; }
.yk-ob-steps { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.yk-ob-steps li { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px 0 6px; border-radius: 999px; background: rgba(243, 228, 228, .07); color: var(--dim); font-weight: 700; font-size: .95rem; }
.yk-ob-steps li b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(243, 228, 228, .12); color: var(--bone); font-size: .85rem; }
.yk-ob-steps li.on { background: var(--bone); color: var(--ink); } .yk-ob-steps li.on b { background: var(--red); color: #fff; }
.yk-ob-steps li.done b { background: var(--red); color: #fff; }
.yk-ob[data-step="2"] .yk-ob-steps li[data-ob="1"] { cursor: default; }
.yk-ob-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; -webkit-overflow-scrolling: touch; padding: 4px 16px 24px; user-select: none; }
.yk-ob-step { display: grid; gap: 14px; width: 100%; max-width: 1100px; margin: 0 auto; }
.yk-ob-h { margin: 4px 0 0; font: 400 clamp(1.6rem, 5vw, 2.6rem)/.95 "YkDisplay", system-ui, sans-serif; text-transform: uppercase; }
.yk-ob-p { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: -4px 0 0; font-size: .95rem; line-height: 1.5; color: var(--dim); }
.yk-ob-p b { color: var(--bone); }
.yk-ob-change { min-height: 34px; padding: 0 14px; border: 1px solid rgba(243, 228, 228, .25); border-radius: 999px; background: none; color: var(--bone); font: 700 .85rem "Space Grotesk", system-ui, sans-serif; cursor: pointer; }

/* step 1: the halls, big cards with their own floor */
.yk-ob .yk-halls { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 0; padding: 0; overflow: visible; }
.yk-ob .yk-hall { position: relative; display: grid; grid-template-rows: 112px auto; gap: 0; min-height: 0; padding: 0; border: 2px solid rgba(243, 228, 228, .12); border-radius: 18px;
  background: #120a0c; color: var(--bone); text-align: start; overflow: hidden; cursor: pointer; box-shadow: none; transition: transform .14s var(--ob-ease), border-color .14s; flex: none; }
.yk-ob .yk-hall::before { display: none; }
.yk-ob .yk-hall:active { transform: scale(.97); }
.yk-ob .yk-hall.on { border-color: var(--hc); box-shadow: none; }
.yk-hall-art { position: relative; display: block; background-color: var(--hf);
  background-image: linear-gradient(var(--hb) 2px, transparent 2px), linear-gradient(90deg, var(--hb) 2px, transparent 2px); background-size: 30px 30px; box-shadow: inset 0 -8px 0 var(--hc); }
.yk-ob .yk-hall-nk { position: absolute; inset-inline-start: 12px; inset-inline-end: auto; bottom: 18px; width: auto; height: 26px; opacity: 1; }
.yk-hall-check { position: absolute; top: 10px; inset-inline-end: 10px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--hc); color: #fff;
  font-style: normal; font-weight: 800; opacity: 0; transform: scale(.6); transition: opacity .16s, transform .16s var(--ob-ease); }
.yk-hall.on .yk-hall-check { opacity: 1; transform: none; }
.yk-hall-b { display: grid; gap: 3px; padding: 12px 14px 14px; }
.yk-ob .yk-hall-b b { font: 400 1.25rem/1.05 "YkDisplay", system-ui, sans-serif; text-transform: uppercase; }
.yk-ob .yk-hall-b small { font-size: .86rem; color: var(--dim); }
.yk-ob .yk-hall-b em { margin: 2px 0 0; font: 700 .86rem "Space Grotesk", system-ui, sans-serif; font-style: normal; letter-spacing: 0; color: var(--hc); }

/* step 2: the knights, a helm each, and the chosen one's kit */
.yk-ob .yk-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.yk-ob .yk-kn { position: relative; display: grid; justify-items: center; align-content: start; gap: 3px; min-height: 0; padding: 12px 10px 14px; border: 2px solid rgba(243, 228, 228, .12); border-radius: 18px;
  background: #120a0c; color: var(--bone); text-align: center; cursor: pointer; box-shadow: none; transition: transform .14s var(--ob-ease), border-color .14s; }
.yk-ob .yk-kn:active { transform: scale(.96); }
.yk-ob .yk-kn:not(.locked):hover { transform: none; }
.yk-ob .yk-kn.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 18%, #120a0c); box-shadow: none; }
.yk-ob .yk-kn.locked { opacity: .45; }
.yk-kn-art { display: block; width: 76px; height: 76px; } .yk-kn-art svg { display: block; width: 100%; height: 100%; }
.yk-ob .yk-kn b { font-size: 1rem; line-height: 1.2; } .yk-ob .yk-kn small { font-size: .82rem; color: var(--dim); }
.yk-ob .yk-kn em { font: 700 .78rem "Space Grotesk", system-ui, sans-serif; font-style: normal; letter-spacing: 0; text-transform: none; color: #ffb070; }
.yk-ob .yk-kn-more { place-content: center; border-style: dashed; cursor: default; }
.yk-ob .yk-pick-sel { gap: 6px; padding: 14px 16px; border: 0; border-inline-start: 4px solid var(--c); border-radius: 0 16px 16px 0; background: rgba(243, 228, 228, .05); }
.yk-ob .yk-pick-sel b { font-size: 1.05rem; } .yk-ob .yk-pick-sel span, .yk-ob .yk-pick-sel small { font-size: .86rem; }
.yk-ob .yk-kn-kit { font: 700 .8rem "Space Grotesk", system-ui, sans-serif; letter-spacing: 0; }
.yk-ob .yk-pick-lobby { border-style: solid; border-color: rgba(243, 228, 228, .12); }
.yk-ob .yk-pick-lobby > span { font: 700 .9rem "Space Grotesk", system-ui, sans-serif; letter-spacing: 0; text-transform: none; color: var(--bone); }

/* the foot: one big button, always in reach */
.yk-ob-foot { display: grid; gap: 10px; padding: 12px 16px calc(env(safe-area-inset-bottom, 0px) + 12px); background: #050203; box-shadow: 0 -1px 0 rgba(243, 228, 228, .1); }
.yk-ob-foot .yk-err { width: 100%; max-width: 1100px; margin: 0 auto; }
.yk-ob-acts { display: flex; gap: 10px; width: 100%; max-width: 1100px; margin: 0 auto; }
.yk-ob-go { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 70px; padding: 0 24px; border: 0; border-radius: 999px;
  background: var(--bone); color: var(--ink); font: 400 clamp(1.4rem, 4vw, 1.8rem)/1 "YkDisplay", system-ui, sans-serif; text-transform: uppercase; white-space: nowrap; min-width: 0; cursor: pointer; transition: transform .14s var(--ob-ease); }
.yk-ob-go.is-play { min-height: 78px; background: var(--red); color: #fff; font-size: clamp(1.8rem, 5vw, 2.4rem); }
.yk-ob-go:active { transform: scale(.97); } .yk-ob-go:disabled { opacity: .6; cursor: default; transform: none; }
.yk-ob-back, .yk-ob-quick { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none; min-height: 70px; padding: 0 22px; border: 1px solid rgba(243, 228, 228, .25);
  border-radius: 999px; background: none; color: var(--bone); font: 700 1rem "Space Grotesk", system-ui, sans-serif; cursor: pointer; transition: transform .14s var(--ob-ease); }
.yk-ob-back:active, .yk-ob-quick:active { transform: scale(.95); }
.yk-ob-full { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.yk-ob-nk { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 20px; border-radius: 999px; background: #e0203f; color: #fff; font-weight: 800; text-decoration: none; }
.yk-ob-nk img { height: 22px; width: auto; }
.yk-ob .yk-fold { background: rgba(243, 228, 228, .05); }
.yk-ob .yk-how { font-size: .9rem; } .yk-ob .yk-how b { font: 700 .86rem "Space Grotesk", system-ui, sans-serif; letter-spacing: 0; text-transform: none; }
[dir="rtl"] .yk-ob-x svg, [dir="rtl"] .yk-ob-back svg, [dir="rtl"] .yk-ob-go svg { transform: scaleX(-1); }
@media (max-width: 600px) {
  .yk-ob .yk-halls { grid-template-columns: 1fr 1fr; gap: 8px; }
  .yk-ob .yk-hall { grid-template-rows: 76px auto; border-radius: 16px; }
  .yk-ob .yk-hall-b { padding: 10px 10px 12px; } .yk-ob .yk-hall-b b { font-size: 1rem; } .yk-ob .yk-hall-b small { font-size: .78rem; }
  .yk-ob .yk-hall-nk { height: 20px; bottom: 14px; }
  .yk-ob .yk-pick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .yk-kn-art { width: 60px; height: 60px; }
  .yk-ob-back span, .yk-ob-quick span { display: none; }
  .yk-ob-back, .yk-ob-quick { width: 64px; min-height: 64px; padding: 0; }
  .yk-ob-go { min-height: 64px; padding: 0 16px; font-size: 1.3rem; } .yk-ob-go.is-play { min-height: 70px; font-size: 1.45rem; }
  :root[lang="fa"] .yk-ob-go.is-play { font-size: 1.2rem; }
  .yk-ob-steps li span { display: none; } .yk-ob-steps li { padding: 0 6px; }
}
:root[lang="fa"] .yk-ob .yk-hall-b b, :root[lang="fa"] .yk-ob-h, :root[lang="fa"] .yk-ob-go { line-height: 1.25; }
@media (prefers-reduced-motion: reduce) { .yk-ob-go, .yk-ob-back, .yk-ob-quick, .yk-ob .yk-hall, .yk-ob .yk-kn, .yk-hall-check { transition: none; } }
