/* YZWar main lobby, splash and resource cache.
   Deliberately cinematic: rain-soaked port photo, amber signal color,
   condensed display type, and PUBG-style left profile / right online list. */

.yw-lobby {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: flex;
  flex-direction: column;
  color: #e8e4da;
  font-family: 'Barlow Condensed', 'Noto Sans SC', system-ui, sans-serif;
  background: #0b0d0f;
  overflow: hidden;
  opacity: 1;
  transition: opacity .45s ease, visibility .45s;
}
.yw-lobby.is-out { opacity: 0; visibility: hidden; pointer-events: none; }
.yw-lobby.is-gone { display: none; }
/* Hide the boot/title UI while the lobby owns the screen. */
html.yw-lobby-open #app > #ui,
html.yw-lobby-open #app > #boot,
html.yw-lobby-open .lang-switch { visibility: hidden !important; }

.yw-bg {
  position: absolute; inset: 0;
  background: url('/img/lobby-bg.jpg') center 42% / cover no-repeat;
  filter: saturate(.78) contrast(1.08) brightness(.58);
  transform: scale(1.04);
  animation: yw-bg-drift 28s ease-in-out infinite alternate;
}
.yw-bg__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6,8,10,.94) 0%, rgba(6,8,10,.55) 34%, rgba(6,8,10,.32) 58%, rgba(6,8,10,.86) 100%),
    linear-gradient(180deg, rgba(6,8,10,.82) 0%, transparent 26%, transparent 62%, rgba(6,8,10,.88) 100%);
}
.yw-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .14;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.yw-top {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
  padding: 16px 26px 14px;
  border-bottom: 1px solid rgba(232,228,218,.12);
  background: linear-gradient(180deg, rgba(6,8,10,.78), rgba(6,8,10,.18));
  backdrop-filter: blur(8px);
}
.yw-brand { display: flex; align-items: center; gap: 12px; min-width: 210px; }
.yw-brand__mark {
  display: grid; place-items: center; width: 42px; height: 42px;
  border: 1px solid rgba(255,179,71,.7);
  background: linear-gradient(145deg, rgba(255,179,71,.22), rgba(255,179,71,.02));
  color: #ffb347; font-family: 'Big Shoulders Display', Impact, sans-serif;
  font-size: 20px; font-weight: 900; letter-spacing: .04em;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
}
.yw-brand__copy { display: flex; flex-direction: column; line-height: 1; }
.yw-brand__copy b {
  font-family: 'Big Shoulders Display', Impact, sans-serif; font-size: 27px;
  font-weight: 900; letter-spacing: .08em;
}
.yw-brand__copy span {
  margin-top: 4px; font-family: 'IBM Plex Mono', monospace; font-size: 8.5px;
  letter-spacing: .16em; color: rgba(232,228,218,.5); text-transform: uppercase;
}

.yw-tabs { display: flex; align-items: center; gap: 2px; }
.yw-tab {
  appearance: none; border: 0; border-bottom: 2px solid transparent; background: transparent;
  color: rgba(232,228,218,.58); padding: 8px 15px 7px; cursor: pointer;
  font-family: 'Barlow Condensed', 'Noto Sans SC', sans-serif; font-size: 17px; font-weight: 600;
  letter-spacing: .04em; transition: color .15s ease, border-color .15s ease;
}
.yw-tab span {
  display: block; font-family: 'IBM Plex Mono', monospace; font-size: 8px;
  letter-spacing: .16em; color: rgba(255,179,71,.6); margin-bottom: 1px;
}
.yw-tab:hover { color: #e8e4da; }
.yw-tab.is-active { color: #ffc977; border-bottom-color: #ffb347; }

.yw-topmeta { display: flex; align-items: center; gap: 10px; min-width: 300px; justify-content: flex-end; }
.yw-server, .yw-freetag {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px;
  border: 1px solid rgba(232,228,218,.14); background: rgba(8,10,12,.5);
  font-family: 'IBM Plex Mono', monospace; font-size: 9px; letter-spacing: .1em;
  color: rgba(232,228,218,.66); white-space: nowrap;
}
.yw-server i { width: 6px; height: 6px; border-radius: 50%; background: #8affc1; box-shadow: 0 0 12px #8affc1; }
.yw-freetag { color: #8affc1; border-color: rgba(138,255,193,.28); }

.yw-layout {
  position: relative; z-index: 2;
  flex: 1; min-height: 0;
  display: grid; grid-template-columns: 268px minmax(0, 1fr) 316px;
  gap: 18px; padding: 20px 26px 10px;
}
.yw-side { min-height: 0; overflow: auto; scrollbar-width: thin; }
.yw-side::-webkit-scrollbar { width: 4px; }
.yw-side::-webkit-scrollbar-thumb { background: rgba(232,228,218,.18); }

.yw-card {
  background: linear-gradient(155deg, rgba(18,22,25,.9), rgba(8,10,12,.88));
  border: 1px solid rgba(232,228,218,.12);
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
  backdrop-filter: blur(8px);
}
.yw-profile { padding: 16px 16px 14px; }
.yw-kicker {
  margin: 0 0 9px; font-family: 'IBM Plex Mono', monospace; font-size: 8.5px;
  letter-spacing: .18em; color: #ffb347; text-transform: uppercase;
}
.yw-kicker--gap { margin-top: 16px; }
.yw-profile__row { display: flex; gap: 12px; align-items: center; }
.yw-avatar {
  position: relative; display: grid; place-items: center; width: 62px; height: 68px;
  border: 1px solid rgba(255,179,71,.42);
  background: radial-gradient(circle at 50% 26%, rgba(255,179,71,.3), rgba(12,15,17,.8) 70%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  flex: 0 0 auto;
}
.yw-avatar span { font-family: 'Big Shoulders Display', Impact, sans-serif; font-size: 30px; font-weight: 900; color: #ffc977; }
.yw-avatar i { position: absolute; right: 5px; bottom: 5px; width: 6px; height: 6px; border-radius: 50%; background: #8affc1; box-shadow: 0 0 8px #8affc1; }
.yw-profile__id { flex: 1; min-width: 0; }
.yw-name-row { display: flex; gap: 5px; }
.yw-name-row input {
  width: 100%; min-width: 0; border: 1px solid rgba(232,228,218,.16);
  background: rgba(5,7,9,.55); color: #e8e4da; padding: 6px 7px;
  font-family: 'Barlow Condensed', 'Noto Sans SC', sans-serif; font-size: 17px; font-weight: 600;
  letter-spacing: .03em; outline: none;
}
.yw-name-row input:focus { border-color: rgba(255,179,71,.6); }
.yw-name-row button {
  border: 1px solid rgba(255,179,71,.3); background: rgba(255,179,71,.1);
  color: #ffc977; font-size: 11px; padding: 0 7px; cursor: pointer;
  font-family: 'Noto Sans SC', sans-serif;
}
.yw-uid { display: block; margin-top: 6px; font-family: 'IBM Plex Mono', monospace; font-size: 8px; letter-spacing: .12em; color: rgba(232,228,218,.38); }
.yw-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 14px 0 0; background: rgba(232,228,218,.1); border: 1px solid rgba(232,228,218,.1); }
.yw-stats div { background: rgba(8,10,12,.75); padding: 8px 6px 7px; text-align: center; }
.yw-stats b { display: block; font-family: 'Big Shoulders Display', Impact, sans-serif; font-size: 24px; line-height: 1; color: #e8e4da; }
.yw-stats span { font-family: 'IBM Plex Mono', monospace; font-size: 7.5px; letter-spacing: .12em; color: rgba(232,228,218,.42); }
.yw-units { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.yw-unit {
  display: flex; align-items: center; gap: 7px; border: 1px solid rgba(232,228,218,.13);
  background: rgba(8,10,12,.55); padding: 7px 8px; cursor: pointer; color: rgba(232,228,218,.64);
  text-align: left; transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.yw-unit b { display: grid; place-items: center; width: 22px; height: 22px; background: rgba(232,228,218,.08); font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #ffb347; }
.yw-unit span { font-size: 13px; letter-spacing: .03em; }
.yw-unit:hover { border-color: rgba(255,179,71,.35); color: #e8e4da; }
.yw-unit.is-active { border-color: rgba(255,179,71,.7); background: rgba(255,179,71,.12); color: #ffc977; }
.yw-profile__links { display: flex; gap: 8px; margin-top: 12px; }
.yw-profile__links button {
  flex: 1; border: 1px solid rgba(232,228,218,.14); background: transparent;
  color: rgba(232,228,218,.55); padding: 6px; cursor: pointer;
  font-family: 'Noto Sans SC', sans-serif; font-size: 11px;
}
.yw-profile__links button:hover { color: #ffc977; border-color: rgba(255,179,71,.4); }
.yw-tipcard { margin-top: 12px; padding: 14px 16px 12px; position: relative; overflow: hidden; }
.yw-tipcard p { margin: 0; font-size: 13px; line-height: 1.55; color: rgba(232,228,218,.62); }
.yw-tipcard__stamp {
  display: inline-block; margin-top: 10px; padding: 3px 6px;
  border: 1px solid rgba(138,255,193,.28); color: #8affc1;
  font-family: 'IBM Plex Mono', monospace; font-size: 7.5px; letter-spacing: .16em;
}

.yw-stage { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.yw-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; animation: yw-panel-in .28s ease both; }
.yw-panel[hidden] { display: none !important; }

.yw-hero { display: flex; flex: 1; min-height: 0; border: 1px solid rgba(232,228,218,.1); background: linear-gradient(120deg, rgba(8,10,12,.92), rgba(8,10,12,.55)), #080a0c; position: relative; overflow: hidden; }
.yw-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(8,10,12,.55), transparent 55%); }
.yw-hero__copy { position: relative; z-index: 2; flex: 1; padding: 30px 30px 24px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.yw-hero__title {
  margin: 0; font-family: 'Big Shoulders Display', 'Noto Sans SC', Impact, sans-serif;
  font-size: clamp(52px, 7vw, 84px); font-weight: 900; line-height: .9; letter-spacing: .01em;
  text-transform: uppercase;
}
.yw-hero__title span {
  display: block; margin-top: 8px; font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; font-weight: 500; letter-spacing: .32em; color: #ffb347;
}
.yw-hero__lead { margin: 16px 0 0; max-width: 52ch; font-size: 16px; line-height: 1.55; color: rgba(232,228,218,.68); }
.yw-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.yw-chips span {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px;
  border: 1px solid rgba(232,228,218,.13); background: rgba(8,10,12,.55);
  font-family: 'IBM Plex Mono', monospace; font-size: 8px; letter-spacing: .09em;
  color: rgba(232,228,218,.58);
}
.yw-chips b { color: #ffc977; font-weight: 500; }
.yw-dot { width: 5px; height: 5px; border-radius: 50%; background: #8affc1; box-shadow: 0 0 8px #8affc1; }
.yw-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.yw-btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 46px; padding: 0 16px; border: 1px solid rgba(232,228,218,.22);
  background: rgba(8,10,12,.65); color: #e8e4da; cursor: pointer; text-align: left;
  font-family: 'Barlow Condensed', 'Noto Sans SC', sans-serif;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.yw-btn b { font-size: 17px; font-weight: 600; letter-spacing: .03em; }
.yw-btn em { font-style: normal; font-family: 'IBM Plex Mono', monospace; font-size: 8px; letter-spacing: .14em; color: rgba(232,228,218,.42); }
.yw-btn:hover { border-color: rgba(255,179,71,.55); background: rgba(255,179,71,.08); transform: translateY(-1px); }
.yw-btn--primary {
  border-color: #ffcf8a; background: linear-gradient(180deg, #ffc977, #ffb347); color: #1a1206;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.yw-btn--primary em { color: rgba(26,18,6,.55); }
.yw-btn--primary:hover { background: linear-gradient(180deg, #ffd899, #ffbf62); }
.yw-btn--ghost { border-color: rgba(232,228,218,.12); background: transparent; color: rgba(232,228,218,.55); }
.yw-hero__hint { margin: 14px 0 0; font-size: 12px; color: rgba(232,228,218,.42); }
.yw-hero__hint button { border: 0; padding: 0; background: transparent; color: #ffb347; cursor: pointer; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.yw-hero__map {
  position: relative; flex: 0 0 32%; min-width: 190px; margin: 14px;
  border: 1px solid rgba(232,228,218,.14);
  background: linear-gradient(180deg, rgba(8,10,12,.1), rgba(8,10,12,.9)), url('/img/lobby-room.jpg') center / cover;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 14px;
}
.yw-hero__map span { font-family: 'IBM Plex Mono', monospace; font-size: 8px; letter-spacing: .18em; color: #ffb347; }
.yw-hero__map b { margin-top: 4px; font-family: 'Big Shoulders Display', 'Noto Sans SC', sans-serif; font-size: 28px; font-weight: 800; }
.yw-hero__map em { margin-top: 3px; font-style: normal; font-family: 'IBM Plex Mono', monospace; font-size: 8px; letter-spacing: .08em; color: rgba(232,228,218,.5); }
.yw-hero__ping { position: absolute; top: 50%; left: 52%; width: 10px; height: 10px; border-radius: 50%; background: #ffb347; box-shadow: 0 0 0 0 rgba(255,179,71,.6); animation: yw-ping 2.4s infinite; }
.yw-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 10px; background: rgba(232,228,218,.1); border: 1px solid rgba(232,228,218,.1); }
.yw-facts div { background: rgba(8,10,12,.72); padding: 11px 12px 10px; display: flex; flex-direction: column; gap: 2px; }
.yw-facts b { font-family: 'IBM Plex Mono', monospace; font-size: 8px; color: #ffb347; letter-spacing: .12em; }
.yw-facts span { font-size: 15px; font-weight: 600; letter-spacing: .03em; }
.yw-facts em { font-style: normal; font-family: 'IBM Plex Mono', monospace; font-size: 7px; letter-spacing: .14em; color: rgba(232,228,218,.35); }

/* Room / resources / about panels */
.yw-room, .yw-panel[data-yw-panel="resources"], .yw-panel[data-yw-panel="about"] {
  padding: 30px 32px; border: 1px solid rgba(232,228,218,.1);
  background: linear-gradient(150deg, rgba(15,18,21,.94), rgba(8,10,12,.9));
}
.yw-panel-title { margin: 0; font-family: 'Big Shoulders Display', 'Noto Sans SC', sans-serif; font-size: clamp(34px, 4vw, 48px); font-weight: 900; line-height: .98; }
.yw-panel-lead { margin: 12px 0 0; max-width: 64ch; font-size: 15px; line-height: 1.6; color: rgba(232,228,218,.62); }
.yw-room__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.yw-room__rules { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.yw-room__rules span { padding: 4px 8px; border: 1px solid rgba(232,228,218,.12); font-family: 'IBM Plex Mono', monospace; font-size: 8px; letter-spacing: .08em; color: rgba(232,228,218,.45); }
.yw-room__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.yw-room__code { margin: 0; font-family: 'Big Shoulders Display', Impact, sans-serif; font-size: 78px; line-height: .9; letter-spacing: .1em; color: #ffc977; }
.yw-room__badge { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(138,255,193,.28); padding: 5px 8px; font-family: 'IBM Plex Mono', monospace; font-size: 8px; letter-spacing: .1em; color: #8affc1; white-space: nowrap; }
.yw-room__badge i { width: 5px; height: 5px; border-radius: 50%; background: #8affc1; box-shadow: 0 0 8px #8affc1; }
.yw-room__invite { display: flex; gap: 6px; margin-top: 18px; }
.yw-room__invite input { flex: 1; min-width: 0; border: 1px solid rgba(232,228,218,.16); background: rgba(5,7,9,.6); color: rgba(232,228,218,.72); padding: 10px 12px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; outline: none; }
.yw-room__invite button { border: 1px solid rgba(255,179,71,.35); background: rgba(255,179,71,.1); color: #ffc977; padding: 0 14px; cursor: pointer; font-family: 'Noto Sans SC', sans-serif; font-size: 12px; }
.yw-room__members { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin-top: 16px; }
.yw-member { display: flex; align-items: center; gap: 8px; border: 1px solid rgba(232,228,218,.12); background: rgba(8,10,12,.55); padding: 8px 9px; }
.yw-member b { display: grid; place-items: center; width: 24px; height: 24px; background: rgba(255,179,71,.12); color: #ffb347; font-family: 'IBM Plex Mono', monospace; font-size: 10px; }
.yw-member span { display: flex; flex-direction: column; min-width: 0; }
.yw-member strong { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yw-member em { font-style: normal; font-family: 'IBM Plex Mono', monospace; font-size: 7px; letter-spacing: .08em; color: rgba(232,228,218,.38); }
.yw-member.is-me { border-color: rgba(255,179,71,.4); }

.yw-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.yw-assets { display: flex; flex-direction: column; gap: 1px; margin-top: 18px; background: rgba(232,228,218,.1); border: 1px solid rgba(232,228,218,.1); }
.yw-asset { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: rgba(8,10,12,.72); }
.yw-asset__name { flex: 1; min-width: 0; }
.yw-asset__name b { display: block; font-size: 14px; font-weight: 600; }
.yw-asset__name span { font-family: 'IBM Plex Mono', monospace; font-size: 8px; letter-spacing: .05em; color: rgba(232,228,218,.38); }
.yw-asset__bar { width: 120px; height: 4px; background: rgba(232,228,218,.1); overflow: hidden; }
.yw-asset__bar i { display: block; height: 100%; width: 0; background: #ffb347; transition: width .2s ease; }
.yw-asset__status { width: 68px; text-align: right; font-family: 'IBM Plex Mono', monospace; font-size: 8px; letter-spacing: .06em; color: rgba(232,228,218,.42); }
.yw-asset.is-done .yw-asset__status { color: #8affc1; }
.yw-note { margin: 14px 0 0; font-family: 'IBM Plex Mono', monospace; font-size: 9px; line-height: 1.7; color: rgba(232,228,218,.38); }
.yw-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 18px; background: rgba(232,228,218,.1); border: 1px solid rgba(232,228,218,.1); }
.yw-about-grid div { background: rgba(8,10,12,.7); padding: 13px 14px; }
.yw-about-grid b { display: block; font-family: 'Big Shoulders Display', sans-serif; font-size: 20px; letter-spacing: .04em; color: #ffc977; }
.yw-about-grid span { display: block; margin-top: 3px; font-size: 12px; color: rgba(232,228,218,.5); }
.yw-about-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; }
.yw-about-links a { color: rgba(232,228,218,.62); font-size: 13px; text-decoration: none; border-bottom: 1px solid rgba(232,228,218,.2); padding-bottom: 2px; }
.yw-about-links a:hover { color: #ffb347; border-color: #ffb347; }

/* Right column */
.yw-online { display: flex; flex-direction: column; max-height: 100%; }
.yw-online header { display: flex; justify-content: space-between; align-items: center; padding: 13px 14px 10px; border-bottom: 1px solid rgba(232,228,218,.1); }
.yw-online header > div { display: flex; align-items: baseline; gap: 7px; }
.yw-online header .yw-kicker { margin: 0; }
.yw-online header b { font-family: 'Big Shoulders Display', Impact, sans-serif; font-size: 22px; color: #8affc1; }
.yw-online header button { border: 1px solid rgba(232,228,218,.14); background: transparent; color: rgba(232,228,218,.6); width: 26px; height: 26px; cursor: pointer; }
.yw-online header button:hover { color: #ffb347; border-color: rgba(255,179,71,.4); }
.yw-online__hint { margin: 9px 14px 6px; font-size: 11px; line-height: 1.5; color: rgba(232,228,218,.36); }
.yw-online__list { flex: 1; min-height: 60px; overflow: auto; padding: 4px 8px 10px; scrollbar-width: thin; }
.yw-empty { margin: 20px 8px; font-family: 'IBM Plex Mono', monospace; font-size: 9px; letter-spacing: .08em; color: rgba(232,228,218,.3); }
.yw-player { display: flex; align-items: center; gap: 8px; padding: 7px 7px; border-bottom: 1px solid rgba(232,228,218,.06); }
.yw-player__badge { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 auto; background: rgba(232,228,218,.08); color: #ffb347; font-family: 'IBM Plex Mono', monospace; font-size: 10px; }
.yw-player__copy { flex: 1; min-width: 0; }
.yw-player__copy b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yw-player__copy span { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 7.5px; letter-spacing: .04em; color: rgba(232,228,218,.34); }
.yw-player__kd { font-family: 'IBM Plex Mono', monospace; font-size: 8px; color: rgba(232,228,218,.45); white-space: nowrap; }
.yw-player__act { border: 1px solid rgba(255,179,71,.28); background: rgba(255,179,71,.06); color: #ffc977; padding: 4px 7px; font-family: 'Noto Sans SC', sans-serif; font-size: 10px; cursor: pointer; white-space: nowrap; }
.yw-player__act:hover { background: rgba(255,179,71,.16); }
.yw-servercard { margin-top: 10px; padding: 12px 14px; }
.yw-serverrow { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; border-bottom: 1px solid rgba(232,228,218,.06); font-size: 12px; color: rgba(232,228,218,.55); }
.yw-serverrow:last-child { border-bottom: 0; }
.yw-serverrow span { display: inline-flex; align-items: center; gap: 6px; }
.yw-serverrow i { width: 5px; height: 5px; border-radius: 50%; background: #8affc1; }
.yw-serverrow b { font-family: 'IBM Plex Mono', monospace; font-size: 8px; letter-spacing: .06em; color: rgba(232,228,218,.7); }

/* Bottom */
.yw-bottom {
  position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 10px 26px 12px; border-top: 1px solid rgba(232,228,218,.1);
  background: linear-gradient(0deg, rgba(6,8,10,.9), rgba(6,8,10,.25));
}
.yw-res { display: flex; align-items: center; gap: 9px; flex: 1; max-width: 620px; }
.yw-res__label { font-family: 'IBM Plex Mono', monospace; font-size: 8px; letter-spacing: .12em; color: rgba(232,228,218,.42); white-space: nowrap; }
.yw-res__bar { flex: 1; height: 4px; background: rgba(232,228,218,.12); overflow: hidden; }
.yw-res__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ffb347, #ffc977); transition: width .2s ease; }
.yw-res b { font-family: 'IBM Plex Mono', monospace; font-size: 8px; color: rgba(232,228,218,.6); min-width: 30px; text-align: right; }
.yw-res button { border: 0; background: transparent; color: rgba(232,228,218,.45); font-family: 'Noto Sans SC', sans-serif; font-size: 10px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.yw-res button:hover { color: #ffb347; }
.yw-bottom__meta { font-family: 'IBM Plex Mono', monospace; font-size: 7.5px; letter-spacing: .1em; color: rgba(232,228,218,.28); white-space: nowrap; }

/* Splash */
.yw-splash {
  position: fixed; inset: 0; z-index: 1000002; background: #050607;
  display: grid; place-items: center; overflow: hidden;
  opacity: 1; visibility: visible; transition: opacity .55s ease, visibility .55s;
}
.yw-splash.is-out { opacity: 0; visibility: hidden; pointer-events: none; }
.yw-splash__bg {
  position: absolute; inset: 0;
  background: radial-gradient(900px 500px at 50% 44%, rgba(255,179,71,.12), transparent 62%), #050607;
}
.yw-splash__scan {
  position: absolute; inset: 0; pointer-events: none; opacity: .25;
  background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(255,255,255,.04) 2px 3px);
  mix-blend-mode: overlay;
}
.yw-splash__stage {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; opacity: 0; transform: translateY(8px); transition: opacity .6s ease, transform .6s ease;
  text-align: center; padding: 24px;
}
.yw-splash__stage.is-on { opacity: 1; transform: none; }
.yw-splash__letters { display: flex; gap: 2px; }
.yw-splash__letters span {
  display: block; font-family: 'Big Shoulders Display', Impact, sans-serif;
  font-size: clamp(84px, 16vw, 190px); font-weight: 900; line-height: .8; color: #e8e4da;
  text-shadow: 0 0 40px rgba(255,179,71,.14);
  animation: yw-letter-in .6s cubic-bezier(.2,.8,.2,1) both;
}
.yw-splash__letters span:nth-child(2) { animation-delay: .07s; }
.yw-splash__letters span:nth-child(3) { animation-delay: .14s; }
.yw-splash__letters span:nth-child(4) { animation-delay: .21s; }
.yw-splash__letters span:nth-child(5) { animation-delay: .28s; }
.yw-splash__letters span:nth-child(5) { color: #ffb347; }
.yw-splash__sub { margin: 14px 0 0; font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: .34em; color: rgba(232,228,218,.62); }
.yw-splash__tiny { margin: 0; font-family: 'IBM Plex Mono', monospace; font-size: 7px; letter-spacing: .2em; color: rgba(232,228,218,.26); }
.yw-splash__icon { width: 74px; height: 74px; color: #ffb347; margin-bottom: 4px; }
.yw-splash__icon svg { width: 100%; height: 100%; }
.yw-splash__stage h2 { margin: 0; font-family: 'Big Shoulders Display', 'Noto Sans SC', sans-serif; font-size: clamp(32px, 5vw, 52px); font-weight: 800; letter-spacing: .03em; }
.yw-splash__stage p { margin: 0; font-size: 15px; color: rgba(232,228,218,.55); }
.yw-splash__tag { margin-top: 10px; font-family: 'IBM Plex Mono', monospace; font-size: 8px; letter-spacing: .16em; color: rgba(255,179,71,.62); }
.yw-splash__skip {
  position: absolute; top: 22px; right: 24px; z-index: 2;
  border: 1px solid rgba(232,228,218,.18); background: rgba(8,10,12,.4);
  color: rgba(232,228,218,.5); padding: 7px 12px; cursor: pointer;
  font-family: 'Noto Sans SC', sans-serif; font-size: 11px; letter-spacing: .04em;
}
.yw-splash__skip em { font-style: normal; font-family: 'IBM Plex Mono', monospace; font-size: 7px; color: rgba(232,228,218,.3); margin-left: 4px; }
.yw-splash__skip:hover { color: #ffc977; border-color: rgba(255,179,71,.4); }
.yw-splash__progress { position: absolute; left: 24px; right: 24px; bottom: 22px; height: 2px; background: rgba(232,228,218,.1); }
.yw-splash__progress i { display: block; height: 100%; width: 0; background: #ffb347; animation: yw-splash-progress 5.4s linear forwards; }
.yw-splash__corner { position: absolute; left: 24px; bottom: 30px; margin: 0; font-family: 'IBM Plex Mono', monospace; font-size: 7px; letter-spacing: .16em; color: rgba(232,228,218,.24); }

/* Modal + toast */
.yw-modal { position: fixed; inset: 0; z-index: 1000010; display: grid; place-items: center; padding: 20px; }
.yw-modal[hidden] { display: none !important; }
.yw-modal__backdrop { position: absolute; inset: 0; background: rgba(3,5,7,.78); backdrop-filter: blur(8px); }
.yw-modal__box { position: relative; width: min(440px, 100%); padding: 26px; background: linear-gradient(155deg, #171b1e, #090b0d); border: 1px solid rgba(255,179,71,.28); box-shadow: 0 30px 100px rgba(0,0,0,.7); }
.yw-modal__box h3 { margin: 0 0 8px; font-family: 'Big Shoulders Display', 'Noto Sans SC', sans-serif; font-size: 34px; font-weight: 900; }
.yw-modal__box p { margin: 0; font-size: 13px; line-height: 1.55; color: rgba(232,228,218,.55); }
.yw-modal__box input { width: 100%; margin-top: 16px; border: 1px solid rgba(232,228,218,.18); background: rgba(4,6,8,.7); color: #ffc977; padding: 12px; font-family: 'IBM Plex Mono', monospace; font-size: 22px; letter-spacing: .2em; text-align: center; text-transform: uppercase; outline: none; }
.yw-modal__box input:focus { border-color: #ffb347; }
.yw-modal__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.yw-toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%);
  z-index: 1000020; padding: 10px 16px; border: 1px solid rgba(255,179,71,.4);
  background: rgba(8,10,12,.94); color: #ffc977; font-size: 13px; letter-spacing: .02em;
  box-shadow: 0 10px 30px rgba(0,0,0,.4); max-width: 90vw;
}
.yw-toast[hidden] { display: none !important; }

@keyframes yw-bg-drift { from { transform: scale(1.04) translate3d(0,0,0); } to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); } }
@keyframes yw-panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes yw-ping { 0% { box-shadow: 0 0 0 0 rgba(255,179,71,.5); } 70% { box-shadow: 0 0 0 16px rgba(255,179,71,0); } 100% { box-shadow: 0 0 0 0 rgba(255,179,71,0); } }
@keyframes yw-letter-in { from { opacity: 0; transform: translateY(26px) skewY(4deg); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes yw-splash-progress { from { width: 0; } to { width: 100%; } }

@media (max-width: 1180px) {
  .yw-layout { grid-template-columns: 236px minmax(0,1fr) 280px; gap: 12px; padding: 14px 18px 8px; }
  .yw-hero__map { flex-basis: 27%; min-width: 150px; }
  .yw-topmeta { min-width: 0; }
}
@media (max-width: 960px) {
  .yw-layout { grid-template-columns: 1fr; overflow: auto; }
  .yw-side--left, .yw-side--right { overflow: visible; }
  .yw-side--left { order: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .yw-side--left .yw-tipcard { margin-top: 0; }
  .yw-stage { order: 1; min-height: 560px; }
  .yw-side--right { order: 3; }
  .yw-top { flex-wrap: wrap; gap: 10px; padding: 12px 16px; }
  .yw-tabs { order: 3; width: 100%; }
  .yw-hero { flex-direction: column; }
  .yw-hero__map { flex: 0 0 150px; }
  .yw-hero__copy { padding: 22px 20px 18px; }
  .yw-facts { grid-template-columns: 1fr 1fr; }
  .yw-bottom { flex-direction: column; align-items: stretch; gap: 6px; }
  .yw-bottom__meta { text-align: right; }
}
@media (max-width: 620px) {
  .yw-side--left { grid-template-columns: 1fr; }
  .yw-topmeta { display: none; }
  .yw-hero__title { font-size: 58px; }
  .yw-panel[data-yw-panel="resources"], .yw-panel[data-yw-panel="about"], .yw-room { padding: 20px 18px; }
  .yw-room__code { font-size: 58px; }
  .yw-about-grid { grid-template-columns: 1fr; }
  .yw-asset__bar { width: 60px; }
  .yw-asset__status { width: 52px; }
  .yw-layout { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .yw-bg, .yw-hero__ping, .yw-splash__letters span, .yw-splash__progress i { animation: none !important; }
  .yw-lobby, .yw-panel, .yw-splash { transition: none !important; }
}
.yw-lobby-open { overflow: hidden !important; }
