.hero-copy .tour-entry { float: right; margin: 0 0 8px 16px; color: #6ce7e1; border: 1px solid #366376; border-radius: 8px; padding: 8px 14px; background: #112738; font-size: 14px; cursor: pointer; }
.hero-copy::after { content: ''; display: block; clear: both; }
body:not(.is-playing) .hero-copy { max-height: none; }
dialog.portal-tour { position: fixed; inset: 0; margin: 0; padding: 0; border: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: transparent; color: #eef7fc; overflow: hidden; }
.portal-tour:not([open]) { display: none; }
.portal-tour::backdrop { background: transparent; }
.tour-spotlight { position: absolute; border: 2px solid #81f9e8; border-radius: 10px; box-shadow: 0 0 0 200vmax #020a14c9, 0 0 22px #72eadb80; pointer-events: none; }
.tour-card { position: absolute; width: min(350px, calc(100vw - 20px)); max-height: calc(100dvh - 20px); overflow: auto; box-sizing: border-box; padding: 18px; border: 1px solid #50878d; border-radius: 14px; background: #102535; box-shadow: 0 12px 40px #0008; }
.tour-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tour-progress { font-size: 13px; color: #81ebdf; }
.tour-card h2 { margin: 10px 0; font-size: 21px; line-height: 1.35; letter-spacing: -.01em; }
.tour-card p { margin: 10px 0 16px; font-size: 15px; line-height: 1.7; color: #e0edf5; }
.tour-card .tour-hint { font-size: 13px; padding-left: 10px; border-left: 2px solid #81ebdf; color: #a9d9df; }
.tour-card button { min-width: 44px; min-height: 44px; font: inherit; cursor: pointer; color: #e0edf5; border: 1px solid #406274; border-radius: 8px; background: #193748; padding: 9px 12px; transition: background-color 120ms ease-out, border-color 120ms ease-out; }
.tour-card .tour-close { display: inline-grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; font-size: 23px; line-height: 1; }
.tour-card button:not(:disabled):hover { background: #244b5e; border-color: #81ebdf; }
.tour-card button:not(:disabled):active { background: #2b5c6a; border-color: #b5fff3; transition: none; }
.tour-card footer { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; }
.tour-card [data-tour-next] { background: #81ebdf; border-color: #81ebdf; color: #092631; font-weight: 700; }
.tour-card [data-tour-next]:not(:disabled):hover { background: #a0f5eb; border-color: #a0f5eb; }
.tour-card [data-tour-next]:not(:disabled):active { background: #68d3c9; border-color: #b5fff3; }
.tour-card button:disabled { opacity: .4; cursor: default; }
.tour-card :focus-visible, .tour-entry:focus-visible { outline: 3px solid #a0f5eb; outline-offset: 3px; }
@media(max-width:680px) { .hero-copy .tour-entry {float:none;margin:0 0 12px;} }

.tour-card .tour-action { width:100%; border-color:#70d4cc; color:#97f2e7; text-align:center; margin:4px 0; }
.tour-card .tour-action[hidden] { display:none; }
@media (prefers-reduced-motion: reduce) { .tour-card button { transition: none; } }
@media (prefers-reduced-transparency: reduce) {
  .tour-spotlight { box-shadow: 0 0 0 200vmax #020a14; }
  .tour-card { background: #102535; box-shadow: none; }
}
@media (prefers-contrast: more) {
  .tour-card { background: #061725; border-color: #d5f8ff; }
  .tour-card p, .tour-card .tour-hint, .tour-progress { color: #eefcff; }
  .tour-card button { border-color: #b7e7ef; }
  .tour-spotlight { border-color: #d5fff7; box-shadow: 0 0 0 200vmax #020a14; }
}
