.as-room-next-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.as-room-next-actions a, .as-room-next-actions button { box-sizing: border-box; display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 10px 14px; border: 1px solid var(--app-border-strong); border-radius: 12px; background: var(--app-surface-2); color: var(--app-text); font: inherit; font-size: .9rem; line-height: 1.4; text-decoration: none; cursor: pointer; }
.as-room-next-actions a { color: var(--app-accent); background: var(--app-accent-soft); }
.as-room-next-actions a:focus-visible, .as-room-next-actions button:focus-visible { outline: 3px solid var(--app-accent); outline-offset: 3px; }
#public-rooms-section { scroll-margin-top: 90px; }
@media (max-width: 380px) { .as-room-next-actions > * { width: 100%; } }

.as-tour-entry { margin: 2px 0 26px; }
#auth-panel .as-tour-launch { display: inline-flex; align-items: center; gap: 9px; width: auto; max-width: 100%; min-height: 44px; margin: 0; padding: 9px 14px; border: 1px solid rgba(231,189,22,.15); border-radius: 24px; background: rgba(231,189,22,.045); color: var(--app-text-secondary); text-align: left; cursor: pointer; font: inherit; font-size: .82rem; font-weight: 500; line-height: 1.4; box-shadow: none; }
#auth-panel .as-tour-launch:hover { background: rgba(231,189,22,.09); border-color: rgba(231,189,22,.3); color: var(--app-text); }
.as-tour-launch svg { flex-shrink: 0; color: var(--app-accent); opacity: .85; }
.as-tour-launch-arrow { margin-left: 3px; color: var(--app-accent); font-size: 1.15rem; line-height: 1; }
.as-tour-dialog { box-sizing: border-box; width: min(850px, calc(100vw - 28px)); max-width: none; max-height: calc(100dvh - 28px); margin: auto; padding: 24px; border: 1px solid var(--app-border-strong); border-radius: 24px; background: var(--app-bg-elevated); color: var(--app-text); box-shadow: 0 24px 100px #0009; text-align: left; overflow: auto; overscroll-behavior: contain; }
.as-tour-dialog::backdrop { background: rgba(0, 0, 0, .78); backdrop-filter: blur(5px); }
.as-tour-dialog .as-tour-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.as-tour-top > span { color: var(--app-text-secondary); font-size: .68rem; letter-spacing: .12em; font-weight: 700; }
.as-tour-dialog button { font: inherit; cursor: pointer; min-height: 44px; border: 1px solid var(--app-border-strong); background: var(--app-surface-2); color: var(--app-text); border-radius: 12px; padding: 10px 15px; }
.as-tour-dialog #as-tour-close { flex: 0 0 44px; padding: 8px; font-size: 1.1rem; }
.as-tour-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); align-items: center; gap: 34px; }
.as-tour-copy .as-tour-kicker { color: var(--app-accent); font-size: .72rem; letter-spacing: .12em; font-weight: 800; margin: 0 0 14px; }
.as-tour-copy h2 { color: var(--app-text); font-size: clamp(1.65rem, 3.4vw, 2.5rem); line-height: 1.12; letter-spacing: -.045em; margin: 0 0 18px; font-weight: 850; }
.as-tour-copy > p { color: var(--app-text-secondary); font-size: .94rem; line-height: 1.7; margin: 0 0 18px; }
.as-tour-copy .as-tour-tip { border-left: 3px solid var(--app-accent); padding: 9px 0 9px 13px; font-size: .82rem; }
.as-tour-dots { display: flex; gap: 7px; }
.as-tour-dialog .as-tour-dots button { padding: 6px; min-width: 44px; font-size: .82rem; }
.as-tour-dialog .as-tour-dots button[aria-pressed="true"] { background: var(--app-accent); border-color: var(--app-accent); color: var(--app-bg); font-weight: 800; }
.as-tour-figure { margin: 0; text-align: center; }
.as-tour-phone { box-sizing: border-box; width: min(100%, 265px); margin: auto; border: 5px solid #343841; border-radius: 27px; overflow: hidden; background: #0b0d11; box-shadow: 0 16px 45px #0006; }
.as-tour-phone img { display: block; width: 100%; height: auto; margin: 0; }
.as-tour-phone img[hidden], .as-tour-phone p[hidden] { display: none; }
.as-tour-phone p { padding: 24px; color: #f6f7f9; font-size: .85rem; line-height: 1.6; }
.as-tour-figure figcaption { font-size: .65rem; line-height: 1.5; color: var(--app-text-secondary); margin: 10px 0 0; }
.as-tour-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 20px; border-top: 1px solid var(--app-border); padding-top: 16px; }
.as-tour-controls span { color: var(--app-text-secondary); font-size: .75rem; }
.as-tour-dialog #as-tour-next { background: var(--app-accent); border-color: var(--app-accent); color: var(--app-bg); font-weight: 750; }
.as-tour-dialog button:disabled { opacity: .35; cursor: default; }
.as-tour-dialog .as-tour-return { display: block; margin: 12px auto 0; background: transparent; border-color: transparent; color: var(--app-text-secondary); font-size: .8rem; }
.as-tour-launch:focus-visible, .as-tour-dialog button:focus-visible { outline: 3px solid var(--app-accent); outline-offset: 3px; }
@media (max-width: 600px) {
  .as-tour-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 20px; padding: 14px 16px max(14px, env(safe-area-inset-bottom)); }
  .as-tour-layout { grid-template-columns: 1fr; gap: 15px; }
  .as-tour-top > span { font-size: .58rem; letter-spacing: .075em; }
  .as-tour-copy h2 { font-size: 1.7rem; margin-bottom: 10px; }
  .as-tour-copy .as-tour-kicker { margin-bottom: 8px; }
  .as-tour-copy > p { font-size: .84rem; line-height: 1.55; margin-bottom: 12px; }
  .as-tour-copy .as-tour-tip { font-size: .75rem; padding-top: 5px; padding-bottom: 5px; }
  .as-tour-dots { justify-content: center; }
  .as-tour-phone { width: min(245px, 100%); border-width: 4px; border-radius: 23px; }
  .as-tour-controls { margin-top: 14px; }
}

.as-tour-text { width: min(540px, calc(100vw - 24px)); padding: 24px; }
.as-tour-text h2 { margin: 8px 0 12px; font-size: 1.7rem; letter-spacing: -.04em; }
.as-tour-intro, .as-tour-steps p { color: var(--app-text-secondary); font-size: .88rem; line-height: 1.6; }
.as-tour-steps { list-style: none; counter-reset: steps; padding: 0; margin: 24px 0; display: grid; gap: 19px; }
.as-tour-steps li { position: relative; padding-left: 43px; counter-increment: steps; }
.as-tour-steps li::before { content: counter(steps); position: absolute; left: 0; top: 0; width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; background: var(--app-accent-soft); color: var(--app-accent); font-size: .78rem; font-weight: 700; }
.as-tour-steps strong { font-size: .93rem; }
.as-tour-steps p { margin: 4px 0 0; }
.as-tour-footnote { color: var(--app-text-secondary); font-size: .73rem; line-height: 1.6; border-top: 1px solid var(--app-border); padding-top: 14px; }
.as-tour-text #as-tour-return { background: var(--app-accent); color: var(--app-bg); margin-top: 20px; padding: 12px 22px; font-weight: 700; }
.as-prediction-progress, .as-weekly-room { padding: 18px; margin: 16px 0 22px; border: 1px solid var(--app-border); border-radius: 18px; background: var(--app-surface); color: var(--app-text); }
.as-prediction-progress strong, .as-week-summary > strong { display: block; font-size: .88rem; line-height: 1.5; }
.as-prediction-progress p, .as-week-summary p { color: var(--app-text-secondary); font-size: .77rem; line-height: 1.6; margin: 7px 0; }
.as-prediction-progress progress { display: block; width: 100%; height: 5px; margin: 14px 0; border: 0; border-radius: 6px; overflow: hidden; accent-color: var(--app-accent); background: var(--app-surface-2); }
.as-prediction-progress progress::-webkit-progress-bar { background: var(--app-surface-2); }
.as-prediction-progress progress::-webkit-progress-value { background: var(--app-accent); border-radius: 6px; }
.as-prediction-progress button { font: inherit; font-size: .79rem; min-height: 44px; padding: 10px 13px; border-radius: 11px; border: 1px solid var(--app-border-strong); background: var(--app-accent-soft); color: var(--app-text); cursor: pointer; }
.as-prediction-progress button:focus-visible, .prediction-match-card:focus-visible { outline: 2px solid var(--app-accent); outline-offset: 4px; }
.as-weekly-room h2 { font-size: 1rem; margin: 0 0 16px; }
.as-week-summary + .as-week-summary { border-top: 1px solid var(--app-border); margin-top: 14px; padding-top: 14px; }
.as-week-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 16px 0 10px; }
.as-week-stats b { display: block; font-size: 1.1rem; color: var(--app-accent); }
.as-week-stats small { display: block; font-size: .69rem; line-height: 1.4; color: var(--app-text-secondary); margin-top: 6px; }

.as-prediction-progress { padding: 16px 18px; border-radius: 16px; box-shadow: none; }
.as-progress-heading, .as-progress-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.as-progress-heading > span { font-size: .78rem; color: var(--app-text-secondary); }
.as-progress-heading > strong { font-size: .96rem; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.as-prediction-progress progress { height: 4px; margin: 14px 0 7px; }
.as-progress-footer > span { font-size: .76rem; color: var(--app-text-secondary); }
.as-prediction-progress .as-progress-footer button { border: 0; background: transparent; padding: 9px 0 9px 10px; color: var(--app-accent); font-size: .77rem; }
@media (max-width: 380px) { .as-prediction-progress { padding: 14px; } .as-progress-footer { gap: 6px; } }
