:root {
  color-scheme: light;
  --ink: #172026;
  --muted: #5c6c76;
  --panel: rgba(255, 255, 255, 0.8);
  --line: rgba(23, 32, 38, 0.14);
  --green: #1f7a62;
  --blue: #246b9f;
  --coral: #c9543f;
  --gold: #d89a2b;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.12) 0 38%, transparent 38%),
    radial-gradient(circle at 84% 18%, rgba(216, 154, 43, 0.24), transparent 26rem),
    radial-gradient(circle at 16% 82%, rgba(36, 107, 159, 0.18), transparent 26rem),
    linear-gradient(145deg, #fbf8ef, #edf5f2 58%, #eef1f7);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body::before,
body::after {
  position: fixed;
  content: "";
  pointer-events: none;
}

body::before {
  inset: auto 0 0;
  height: 34vh;
  background:
    linear-gradient(90deg, rgba(23, 32, 38, 0.08) 1px, transparent 1px) 0 0 / 5rem 100%,
    linear-gradient(0deg, rgba(23, 32, 38, 0.06) 1px, transparent 1px) 0 0 / 100% 4rem,
    #ebd4b2;
  transform: perspective(700px) rotateX(58deg);
  transform-origin: bottom;
}

body::after {
  right: clamp(1rem, 8vw, 8rem);
  bottom: 19vh;
  width: min(25rem, 58vw);
  height: min(32rem, 66vh);
  border: 1rem solid rgba(255, 255, 255, 0.9);
  border-bottom-width: 1.4rem;
  border-radius: 0.7rem 0.7rem 0 0;
  background:
    linear-gradient(90deg, transparent 0 46%, rgba(255, 255, 255, 0.45) 46% 54%, transparent 54%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), transparent 60%),
    var(--room-color, var(--green));
  box-shadow: 0 26px 70px rgba(23, 32, 38, 0.18);
}

body[data-room="stock"] {
  --room-color: var(--coral);
}

body[data-room="accountbook"] {
  --room-color: var(--blue);
}

body[data-room="whiteboard"] {
  --room-color: var(--green);
}

a {
  color: inherit;
  text-decoration: none;
}

.room-shell {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  align-content: center;
  gap: clamp(3rem, 9vw, 6rem);
  padding: clamp(1rem, 4vw, 3rem);
}

.brand {
  position: fixed;
  top: 1rem;
  left: clamp(1rem, 4vw, 3rem);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 780;
}

.language-switcher {
  position: fixed;
  top: 1rem;
  right: clamp(1rem, 4vw, 3rem);
  display: inline-flex;
  gap: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 32px rgba(23, 32, 38, 0.1);
  backdrop-filter: blur(18px);
}

.language-switcher button {
  min-width: 2.45rem;
  height: 1.95rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 740;
}

.language-switcher button[aria-pressed="true"] {
  background: var(--ink);
  color: white;
}

.brand-mark {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border-radius: 0.55rem;
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: white;
}

.room-panel {
  width: min(35rem, 100%);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: clamp(1.25rem, 4vw, 2.4rem);
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(23, 32, 38, 0.18);
  backdrop-filter: blur(18px);
}

.room-number {
  margin: 0 0 0.75rem;
  color: var(--green);
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 11vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.room-copy {
  max-width: 29rem;
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.room-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  border: 1px solid transparent;
  border-radius: 0.55rem;
  padding: 0 1rem;
  font-weight: 740;
}

.button.primary {
  background: var(--ink);
  color: white;
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
}

@media (max-width: 640px) {
  body::after {
    right: 1rem;
    bottom: 10vh;
    opacity: 0.42;
  }

  .room-shell {
    align-content: end;
    padding-top: 5rem;
  }

  .button {
    width: 100%;
  }
}
