.guest-view {
  position: fixed;
  z-index: 31;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: radial-gradient(ellipse at 50% 15%, #132a3c 0%, #091019 62%);
  color: #e7edf4;
  font: 400 15px/1.6 system-ui, "Microsoft YaHei", sans-serif;
}
.guest-view[hidden], .guest-hero[hidden], .guest-back[hidden],
.guest-active .app-shell, #guestPolicyPanel[hidden] { display: none; }
.guest-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px clamp(16px, 5vw, 48px);
}
.guest-brand { font-weight: 750; letter-spacing: .12em; }
.guest-brand span { margin-left: 7px; color: #9cb6c8; font-weight: 400; letter-spacing: 0; font-size: 12px; }
.guest-login {
  padding: 8px 13px;
  border: 1px solid #385468;
  border-radius: 9px;
  background: #112330;
  color: #e7edf4;
  font: inherit;
  cursor: pointer;
}
.guest-back { margin-top: 12px; width: 100%; }
.guest-content { overflow: auto; min-height: 0; }
.guest-hero {
  margin: clamp(36px, 12vh, 128px) auto 24px;
  padding: 0 20px;
  text-align: center;
}
.guest-hero span { color: #93dce8; font-size: 12px; letter-spacing: .3em; }
.guest-hero h1 { font-size: clamp(25px, 6vw, 44px); margin: 10px 0; }
.guest-hero p { color: #a8bdce; font-size: 14px; margin: 0 auto; max-width: 440px; }
.guest-turns, .guest-footer { width: min(100% - 32px, 720px); margin-inline: auto; }
.guest-tarot-panel { width: min(100% - 32px, 720px); margin: 0 auto 20px; }
.guest-tarot-panel[hidden] { display: none; }
.guest-tarot-entry { margin-bottom: 10px; }
.guest-tarot-entry:disabled { opacity: .55; cursor: default; }
.guest-turns { display: flex; flex-direction: column; gap: 16px; padding: 12px 0 24px; }
.guest-message { max-width: 90%; min-width: 0; }
.guest-message strong { font-size: 12px; color: #94b9ca; }
.guest-message p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.guest-message-user { align-self: flex-end; background: #172c3b; border-radius: 15px; padding: 9px 14px; }
.guest-message-assistant { padding: 7px 4px; }
.guest-footer { padding: 12px 0 max(12px, env(safe-area-inset-bottom)); }
.guest-feedback, .guest-usage { color: #a8bdce; font-size: 12px; margin: 0 0 8px; }
.guest-feedback:empty, .guest-usage:empty { display: none; }
.guest-usage { margin: 7px 0 0; text-align: center; }
.guest-form {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  padding: 10px;
  border: 1px solid #385468;
  border-radius: 17px;
  background: #112330;
}
.guest-form textarea {
  flex: 1;
  min-width: 0;
  padding: 5px 7px;
  resize: vertical;
  max-height: 24vh;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 16px;
}
.guest-form button {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 0;
  border-radius: 50%;
  background: #96e3ec;
  color: #0a2732;
  font-size: 22px;
  cursor: pointer;
}
.guest-form button:disabled { opacity: .45; cursor: default; }
