:root {
  color-scheme: light;
  --ink: #101e38;
  --muted: #51627c;
  --line: #dce5f1;
  --base: #f5f7fb;
  --blue: #0864d6;
  --deep-blue: #004bbb;
  --navy: #0d2449;
  --mint: #92ebd1;
  --card: #fff;
  --radius: 19px;
  font-family: "Hiragino Sans", "Yu Gothic", "YuGothic", "Meiryo", system-ui, sans-serif;
  color: var(--ink);
  background: var(--base);
  font-optical-sizing: auto;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.65; }
body, textarea, select, input, button { font-size: 1rem; }
button, textarea, select, input { font-family: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
button, input, select, textarea, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible, textarea:focus-visible, select:focus-visible, input:focus-visible {
  outline: 3px solid #0875f5;
  outline-offset: 4px;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: pretty; }
h1:focus, main:focus { outline: none; }
.icon { width: 1.2rem; height: 1.2rem; flex: 0 0 auto; vertical-align: middle; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: absolute; z-index: 10; top: 8px; left: 8px; padding: 10px 16px; background: white; color: var(--blue); }
.container { width: min(1160px, calc(100% - 72px)); margin-inline: auto; }
.narrow { width: min(100%, 780px); margin-inline: auto; }
.main-content { padding: 35px 0 72px; min-height: calc(100vh - 155px); }

.site-header { background: #fff; border-bottom: 1px solid #e5ebf4; }
.header-inner { min-height: 73px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; justify-self: start; font: 850 1.85rem/.95 system-ui, sans-serif; letter-spacing: -.075em; }
.wordmark-period { color: #0875f5; }
.wordmark-icon { display: grid; place-content: center; position: relative; width: 37px; height: 35px; border-radius: 10px; background: #0875f5; color: #fff; font: 850 1.5rem/.9 system-ui, sans-serif; letter-spacing: -.055em; padding-bottom: 2px; }
.wordmark-icon::after { content: ""; position: absolute; bottom: -3px; left: 7px; width: 8px; height: 9px; border-radius: 0 0 2px; transform: skewY(-35deg); background: #0875f5; }
.header-inner nav { display: flex; align-items: center; gap: 6px; }
.header-inner nav a { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 10px 15px; border-radius: 10px; color: var(--muted); font-size: .91rem; font-weight: 700; }
.header-inner nav a:hover { color: var(--blue); }
.header-inner nav a[aria-current] { color: #0056bd; background: #eaf3ff; }
.header-inner nav .icon { width: 17px; height: 17px; }
.prototype { justify-self: end; display: inline-flex; gap: 7px; align-items: center; font-size: .8rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.prototype > span { width: 7px; height: 7px; border-radius: 50%; background: #289478; }
.site-footer { background: #fff; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; min-height: 75px; gap: 10px 20px; color: var(--muted); font-size: .82rem; }
.footer-inner > span:first-child { color: var(--ink); font: 800 1.22rem system-ui, sans-serif; letter-spacing: -.065em; }

.catalog-tools {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(135px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 20px;
  padding: 16px;
}
.catalog-tools .field { margin: 0; }
.catalog-tools .button { min-height: 45px; }
.catalog-notice { color: var(--muted); padding: 14px 2px; }
.catalog-pages { display: flex; align-items: center; justify-content: center; gap: 15px; margin: 22px 0; }
.browse-topics { display: inline-block; margin: -6px 0 14px; }
@media (max-width: 550px) {
  .catalog-tools { grid-template-columns: minmax(0, 1fr) auto; }
  .catalog-tools .field:first-child { grid-column: 1 / -1; }
}
.footer-inner .icon { width: 16px; height: 16px; }

.hero { min-height: 415px; position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; border-radius: 25px; padding: 49px 59px; color: white; background: linear-gradient(107deg, #102544 10%, #123462 63%, #143f78 100%); box-shadow: 0 14px 36px #122a4d18; }
.hero-copy { position: relative; z-index: 2; }
.hero-kicker { display: inline-flex; align-items: center; gap: 7px; color: #d5ebff; background: #2966a94a; border: 1px solid #8fc7ff47; border-radius: 30px; padding: 5px 12px; font-size: .85rem; font-weight: 750; }
.hero-kicker .icon { width: 17px; height: 17px; }
.hero h1 { font-size: clamp(2.45rem, 4.75vw, 4.15rem); line-height: 1.18; font-weight: 850; letter-spacing: -.075em; margin: 16px 0; }
.hero h1 span { color: #a4f1dc; }
.hero p { color: #d5e2f2; line-height: 1.8; font-size: 1.02rem; font-weight: 550; }
.hero-actions { display: flex; gap: 17px; align-items: center; flex-wrap: wrap; margin-top: 24px; }
.hero-limit { display: inline-flex; align-items: center; gap: 6px; color: #d5e2f2; font-size: .88rem; white-space: nowrap; }
.hero-limit strong { color: white; }
.hero-limit .icon { width: 17px; height: 17px; }
.hero-art { position: absolute; z-index: 1; right: 0; inset-block: 0; width: 53%; overflow: hidden; background-image: radial-gradient(#a0cdf555 1px, transparent 1px), radial-gradient(ellipse at center, #1760bc62, transparent 72%); background-size: 22px 22px, 100% 100%; mask-image: linear-gradient(90deg, transparent, black 21%); }
.orbit { border: 1px solid #98caff29; position: absolute; width: 83%; aspect-ratio: 1; border-radius: 100%; top: 50%; left: 55%; transform: translate(-50%, -50%); }
.orbit-inner { width: 60%; }
.speech { --color: #175fc0; --text: #e4f2ff; --mark: #68aeff; position: absolute; width: 38%; min-height: 115px; padding: 16px 20px; border: 1px solid #91c5fb75; border-radius: 16px; background: var(--color); color: var(--text); box-shadow: 0 17px 34px #061c4e5e; }
.speech span { display: flex; align-items: center; gap: 7px; font-size: .93rem; font-weight: 850; }
.speech .icon { width: 18px; height: 18px; }
.speech i { display: block; height: 6px; margin-top: 12px; width: 95%; border-radius: 6px; background: var(--mark); }
.speech i:last-child { margin-top: 7px; width: 63%; }
.speech::after { content: ""; position: absolute; height: 16px; width: 18px; left: 21px; bottom: -9px; transform: skewY(-32deg); border-left: 1px solid #91c5fb75; border-bottom: 1px solid #91c5fb75; background: var(--color); border-bottom-left-radius: 3px; }
.speech-pro { top: 24%; left: 22%; transform: rotate(-10deg); }
.speech-con { --color: #a9f0dc; --text: #123b47; --mark: #5abfae; top: 48%; left: 50%; transform: rotate(9deg); }
.speech-con::after { left: auto; right: 25px; transform: skewY(32deg); border-left: 0; border-right: 1px solid #91c5fb75; border-radius: 0 0 3px; }
.hero-spark, .hero-point { position: absolute; color: #9cdef4; }
.hero-spark { font-size: 1.45rem; }
.spark-one { right: 19%; top: 17%; }
.spark-two { left: 19%; bottom: 20%; }
.hero-point { width: 7px; height: 7px; border-radius: 100%; background: currentColor; }
.point-one { left: 54%; top: 17%; }
.point-two { right: 19%; bottom: 16%; color: #77c0fc; }

.button { min-height: 48px; padding: 10px 19px; border: 1px solid transparent; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 750; text-align: center; transition: background .16s, color .16s; }
.button-light { background: white; color: #11345b; }
.button-light:hover { background: #d9ecff; }
.button-light:focus-visible { outline-color: white; }
.button-primary { background: var(--blue); color: white; }
.button-primary:not(:disabled):hover { background: var(--deep-blue); }
.button-secondary { background: #fff; border-color: var(--line); color: #174b8a; }
.button-secondary:hover { background: #eaf3ff; }
.text-link, .back-link { color: #0059c5; font-size: .94rem; font-weight: 750; text-underline-offset: 4px; }
.text-link:hover, .back-link:hover { text-decoration: underline; }
.back-link { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 20px; }
.back-link .icon { transform: rotate(180deg); }
.quiet-button { border: 0; padding: 10px 0; margin-top: 10px; color: var(--muted); background: transparent; font-size: .9rem; text-underline-offset: 3px; }
.quiet-button:hover { text-decoration: underline; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.home-topics { margin-top: 39px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 17px; }
.section-heading h2, .guide h2, .editor-card h2, .score-card h2, .rewrite-card h2, .history-transcript h2 { font-size: 1.37rem; letter-spacing: -.035em; line-height: 1.35; }
.section-heading p { color: var(--muted); font-size: .93rem; margin-top: 5px; }
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.topic-card { display: flex; flex-direction: column; align-items: flex-start; min-height: 168px; padding: 19px 21px 16px; box-shadow: 0 4px 10px #142f5410; transition: border-color .14s, box-shadow .14s; }
.topic-card:hover { border-color: #7ab8fa; box-shadow: 0 8px 18px #214a8720; }
.topic-card h3 { font-size: 1.13rem; line-height: 1.5; letter-spacing: -.03em; margin: 9px 0 10px; }
.topic-tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 7px; background: #e9f2ff; color: #1554a0; font-size: .81rem; font-weight: 750; white-space: nowrap; }
.topic-tag .icon { width: 16px; height: 16px; }
.topic-tag.study { background: #e4f6ef; color: #176354; }
.topic-tag.life { background: #fff2dd; color: #80531c; }
.topic-tag.pop { background: #fff2dd; color: #80531c; }
.topic-tag.society { background: #e4f6ef; color: #176354; }
.topic-tag.politics { background: #e9f2ff; color: #1554a0; }
.topic-tag.world { background: #f0edff; color: #533b94; }
.topic-tag.physics { background: #e3f5f8; color: #135c68; }
.topic-footer { margin-top: auto; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: .86rem; }
.card-chevron { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #edf4fc; color: #1760bf; flex: 0 0 auto; }
.card-chevron .icon { width: 16px; height: 16px; }
.guide { margin-top: 25px; padding: 23px 26px; display: grid; grid-template-columns: 1fr 3.6fr; gap: 18px; align-items: center; }
.guide > div { display: grid; gap: 4px; }
.guide ul { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; }
.guide li { display: flex; align-items: center; gap: 9px; font-size: .89rem; line-height: 1.45; }
.guide small { display: block; color: var(--muted); margin-top: 3px; font-size: .81rem; }
.guide-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; background: #eaf3ff; color: var(--blue); border-radius: 11px; }
.guide-icon .icon { width: 20px; height: 20px; }

.page-heading { margin-bottom: 22px; }
.page-heading h1, .topic-detail h1 { font-size: clamp(1.75rem, 4.5vw, 2.7rem); line-height: 1.36; letter-spacing: -.052em; }
.page-heading p, .topic-detail > p { color: var(--muted); margin-top: 8px; }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.filter { min-width: 68px; min-height: 44px; border: 1px solid var(--line); padding: 5px 13px; border-radius: 9px; background: #fff; color: var(--muted); font-size: .91rem; font-weight: 750; }
.filter:hover, .filter[aria-pressed="true"] { border-color: #a5ccfa; background: #e8f3ff; color: #0052b6; }
.topic-detail { padding: clamp(19px, 4.5vw, 40px); }
.topic-detail h1 { margin-top: 13px; }
.topic-detail form { margin-top: 28px; }
.topic-context { background: #f5f8fc; border: 1px solid var(--line); border-radius: 12px; padding: 16px 17px; margin-top: 17px; }
.topic-context dl { display: grid; gap: 8px; margin: 12px 0; }
.topic-context dl > div { display: grid; grid-template-columns: minmax(66px, auto) 1fr; gap: 8px 13px; align-items: baseline; }
.topic-context dt { color: var(--ink); font-size: .86rem; font-weight: 750; }
.topic-context dd { margin: 0; color: var(--muted); font-size: .94rem; }
.topic-context ul { list-style: none; padding: 10px 0 0; margin: 0; border-top: 1px solid var(--line); }
.topic-context a { text-decoration: underline; font-size: .86rem; overflow-wrap: anywhere; }
.mode-options { margin-top: 15px; }
.mode-options label { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px 5px 0; font-size: .9rem; }
.mode-options input { accent-color: var(--blue); }
.mode-options p { margin-top: 5px; color: var(--muted); font-size: .86rem; }
fieldset { padding: 0; margin: 0; border: 0; min-inline-size: 0; }
legend { padding: 0; margin-bottom: 10px; font-weight: 800; }
.side-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.side-option { display: flex; align-items: center; gap: 10px; min-height: 70px; cursor: pointer; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; }
.side-option:has(:checked) { border-color: #7cb3f4; background: #edf5ff; }
.side-option.con:has(:checked) { border-color: #79c7b4; background: #edfaf5; }
.side-option input { accent-color: var(--blue); width: 17px; height: 17px; margin: 0; flex: 0 0 auto; }
.side-option strong, .side-option small { display: block; }
.side-option small { color: var(--muted); font-size: .85rem; }
.form-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 11px 14px; margin-top: 14px; }
.form-foot > span { color: var(--muted); font-size: .86rem; }
.inline-message { color: #704015; font-size: .9rem; margin-top: 10px; }
.inline-message:empty { display: none; }
.storage-notice { padding: 10px 15px; margin: 0 0 16px; background: #fff0dd; border-radius: 9px; color: #704015; }

.match-top .page-heading { margin: 9px 0 9px; }
.match-top .page-heading h1 { font-size: clamp(1.6rem, 4vw, 2.22rem); }
.participant-line { display: flex; gap: 9px 19px; flex-wrap: wrap; color: var(--muted); font-size: .91rem; }
.participant-line > span { display: inline-flex; align-items: center; gap: 6px; }
.side-chip { background: #e8f2ff; color: #1556a3; border-radius: 6px; padding: 2px 7px; font-size: .8rem; font-weight: 750; }
.side-chip.con { background: #e2f5ee; color: #176456; }
.round-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; list-style: none; padding: 0; margin: 22px 0 15px; }
.round-track li { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 11px; min-height: 49px; font-size: .9rem; font-weight: 750; }
.round-track li > span { display: grid; place-items: center; width: 23px; height: 23px; color: inherit; background: #edf2f8; border-radius: 50%; font: 750 .83rem system-ui, sans-serif; }
.round-track li .icon { width: 14px; height: 14px; }
.round-track .current { background: #eaf4ff; color: #0056bc; border-color: #a9cefa; }
.round-track .current > span { background: var(--blue); color: #fff; }
.round-track .done { color: #186253; }
.round-track .done > span { background: #dff3eb; }
.transcript-list { display: grid; gap: 9px; }
.transcript summary { display: flex; cursor: pointer; align-items: center; padding: 12px 17px; gap: 9px; list-style: none; border-radius: var(--radius); font-size: .91rem; }
.transcript summary > span:first-child { color: var(--muted); font-size: .85rem; }
.transcript summary::-webkit-details-marker { display: none; }
.summary-chevron { margin-left: auto; }
.transcript[open] .summary-chevron { transform: rotate(90deg); }
.transcript-body { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 0 13px 13px; }
.turn { min-width: 0; padding: 12px; background: #edf5ff; border-radius: 12px; }
.turn.opponent { background: #edf8f4; }
.turn-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 7px; font-size: .88rem; }
.speaker-icon { color: #1265c5; }
.opponent .speaker-icon { color: #176456; }
.turn-text { margin-top: 8px; overflow-wrap: anywhere; white-space: pre-wrap; }
.editor-card, .score-card, .rewrite-card { padding: clamp(17px, 4vw, 26px); margin-top: 14px; }
.editor-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.live-label { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 7px; background: #e9f3ff; color: #1058ae; font-size: .81rem; font-weight: 750; }
.live-label .icon { width: 16px; height: 16px; }
.editor-card > p:not(.editor-note), .rewrite-card > p { margin: 8px 0 13px; color: var(--muted); }
textarea { display: block; width: 100%; min-height: 116px; resize: vertical; border: 1px solid #b4c6df; border-radius: 10px; color: var(--ink); background: #fbfdff; padding: 13px; line-height: 1.65; }
textarea::placeholder { color: #63748c; }
.editor-note { display: flex; gap: 6px; align-items: flex-start; margin-top: 13px; color: var(--muted); font-size: .85rem; }
.editor-note .icon { margin-top: 2px; color: #386191; width: 16px; height: 16px; }
.count { font-variant-numeric: tabular-nums; }

.result-hero { display: flex; flex-wrap: wrap; gap: 16px 23px; align-items: center; justify-content: space-between; background: #102e54; color: #fff; padding: clamp(18px, 4vw, 28px); }
.result-meta h2 { margin-top: 6px; font-size: 1.52rem; }
.result-score { display: flex; gap: 15px; align-items: center; }
.result-score > div { display: grid; }
.result-score > div > span { color: #d6e4f6; font-size: .85rem; }
.result-score strong { margin-top: 5px; color: #a4f1dc; font: 850 2.7rem/1 system-ui, sans-serif; }
.result-score > div:last-child strong { color: #fff; }
.result-score strong small { font: 750 1rem/1 system-ui, sans-serif; margin-left: 2px; }
.score-divider { height: 37px; width: 1px; background: #6b86a7; }
.score-card table { width: 100%; margin-top: 11px; border-collapse: collapse; }
.score-card th, .score-card td { text-align: left; padding: 8px 6px; }
.score-card thead { color: var(--muted); font-size: .87rem; }
.score-card tbody tr { border-top: 1px solid #e5edf6; }
.score-card tbody td { color: #115db5; font-weight: 800; font-variant-numeric: tabular-nums; }
.score-card tbody td small { color: var(--muted); font-size: .79rem; font-weight: 400; }
.rewrite-card blockquote { margin: 10px 0; padding: 10px 13px; background: #eef6ff; border-radius: 7px; border-left: 3px solid #5a9fe9; overflow-wrap: anywhere; }
.rewrite-card blockquote small { display: block; color: var(--muted); font-size: .82rem; margin-top: 4px; }
.rewrite-select { display: flex; gap: 7px 12px; flex-wrap: wrap; align-items: center; }
.rewrite-select label { font-weight: 750; font-size: .9rem; }
select { appearance: none; border: 1px solid #b4c6df; border-radius: 8px; min-height: 44px; padding: 7px 40px 7px 12px; background: #fff; color: var(--ink); background-image: linear-gradient(45deg, transparent 50%, #285686 50%),linear-gradient(135deg, #285686 50%, transparent 50%); background-position: right 17px center, right 12px center; background-size: 5px 5px; background-repeat: no-repeat; }
.original-turn { display: grid; margin: 10px 0; gap: 2px; color: var(--muted); font-size: .91rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.original-turn strong { color: var(--ink); }
.history-transcript { margin-top: 22px; }
.history-transcript h2 { margin-bottom: 10px; }
.result-actions { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.profile-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.profile-stat { display: flex; padding: 18px; gap: 9px 13px; flex-wrap: wrap; align-items: center; }
.profile-stat strong { font: 850 1.8rem/1 system-ui, sans-serif; }
.profile-stat p { color: var(--muted); font-size: .87rem; margin-top: 4px; }
.history { margin-top: 25px; }
.empty-state { text-align: center; display: grid; justify-items: center; gap: 7px; padding: 27px 16px; }
.empty-state p { color: var(--muted); }
.empty-state .button { margin-top: 6px; }
.history-list { overflow: hidden; }
.history-row { display: flex; gap: 8px 12px; align-items: center; padding: 14px 17px; }
.history-row + .history-row { border-top: 1px solid var(--line); }
.history-row:hover { background: #edf5ff; }
.history-row:focus-visible { outline-offset: -4px; }
.history-row small { color: var(--muted); font-size: .83rem; display: block; }
.history-title { flex: 1; min-width: 0; }
.history-score { white-space: nowrap; color: #105ab0; font-weight: 800; font-variant-numeric: tabular-nums; }
.history-row .icon { color: #105ab0; }

@media (max-width: 1000px) {
  .hero { padding-inline: 44px; }
  .guide { grid-template-columns: auto; }
}

@media (max-width: 760px) {
  .container { width: calc(100% - 36px); }
  .header-inner { column-gap: 9px; }
  .header-inner nav a { padding: 8px; gap: 4px; font-size: .84rem; }
  .hero { min-height: 380px; padding: 34px 29px; grid-template-columns: 1fr; }
  .hero-art { width: 52%; opacity: .68; mask-image: linear-gradient(90deg, transparent, black 22%); }
  .speech { width: 48%; padding: 11px; min-height: 85px; }
  .speech-pro { left: 14%; }
  .speech-con { left: 43%; }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero p { max-width: 290px; }
  .desktop-break { display: none; }
  .guide li { align-items: flex-start; }
}

@media (max-width: 540px) {
  .container { width: calc(100% - 28px); }
  .header-inner { grid-template-columns: auto 1fr; gap: 6px 10px; padding-block: 10px 5px; }
  .wordmark { font-size: 1.6rem; gap: 8px; }
  .wordmark-icon { width: 33px; height: 30px; font-size: 1.25rem; }
  .header-inner nav { grid-row: 2; grid-column: 1 / -1; width: 100%; justify-content: space-between; }
  .header-inner nav a { justify-content: center; flex: 1; min-height: 40px; }
  .prototype { grid-row: 1; grid-column: 2; font-size: .76rem; }
  .main-content { padding-top: 17px; padding-bottom: 44px; }
  .hero { min-height: 0; padding: 24px 20px 25px; border-radius: 17px; }
  .hero h1 { font-size: clamp(2.25rem, 9vw, 3.2rem); margin-block: 13px; }
  .hero p { font-size: .94rem; max-width: 264px; }
  .hero-actions { gap: 7px 12px; margin-top: 19px; }
  .hero-limit { font-size: .81rem; }
  .hero-art { opacity: .28; top: -43px; bottom: auto; height: 280px; width: 47%; mask-image: linear-gradient(90deg, transparent, black 52%); }
  .speech { width: 70%; transform: rotate(-11deg) scale(.7); }
  .speech-con { left: 24%; transform: rotate(12deg) scale(.7); }
  .home-topics { margin-top: 24px; }
  .section-heading h2 { font-size: 1.18rem; }
  .topic-grid { grid-template-columns: 1fr; gap: 9px; }
  .topic-card { min-height: 0; padding: 13px 15px; }
  .topic-card h3 { margin-block: 6px 4px; }
  .guide { padding: 17px; gap: 10px; }
  .guide ul { grid-template-columns: 1fr; gap: 10px; }
  .guide li { align-items: center; }
  .transcript-body { grid-template-columns: 1fr; }
  .profile-stats { gap: 7px; }
  .profile-stat { padding: 9px 7px; }
  .profile-stat .guide-icon { width: 32px; height: 32px; }
  .profile-stat p { font-size: .83rem; }
  .footer-inner { min-height: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

.hero-secondary { color: white; border-color: #b6d7fa70; background: #123a6980; }
.hero-secondary:hover { background: #25578b; }
.hero-secondary:focus-visible { outline-color: white; }
.nav-symbol { font-size: 1.15rem; line-height: 1; }
.custom-card { margin-top: 20px; padding: 20px clamp(16px, 3vw, 24px); display: flex; gap: 12px 18px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.custom-card h2, .setup-card h2 { font-size: 1.25rem; }
.custom-card p, .setup-card p { color: var(--muted); }
.setup-card { padding: clamp(16px, 4vw, 23px); }
.setup-card > p { margin-block: 5px 14px; }
.setup-card form { margin-top: 0; }
.setup-card fieldset { margin-top: 10px; }
.field { display: grid; gap: 4px; font-weight: 750; margin-bottom: 14px; min-width: 0; }
.editor-card .field { margin-top: 8px; }
.field input:not([type]), .field select { font: inherit; font-weight: 500; width: 100%; min-width: 0; min-height: 45px; border: 1px solid #bacbe0; border-radius: 9px; color: var(--ink); }
.field input:not([type]) { padding: 8px 11px; background: #fbfdff; }
.field input:focus-visible { outline: 3px solid #0875f5; outline-offset: 3px; }
.field textarea { font-weight: 500; }
.input-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.setup-card .inline-message { color: #704015; }
.lobby-columns { gap: 12px; align-items: start; }
.lobby-columns form { margin-top: 11px; }
.room-state { margin-top: 18px; }
.room-state h2 { margin-bottom: 12px; }
.resume-rooms { margin-top: 15px; padding-top: 8px; border-top: 1px solid var(--line); display: grid; gap: 4px; font-size: .9rem; }
.round-log { padding: 11px 13px 12px; }
.round-log h3 { font-size: .89rem; margin-bottom: 8px; color: var(--muted); }
.round-log .transcript-body { padding: 0; }
.result-meta p { color: #d6e4f6; }
.topic-tag.custom { color: #11564d; background: #e3f6f0; }
.topic-detail p, .turn-meta strong, .history-title, .result-meta { overflow-wrap: anywhere; }

@media (max-width: 540px) {
  .input-columns { grid-template-columns: 1fr; }
  .lobby-columns { gap: 10px; }
  .field select { font-size: .92rem; }
}
