:root {
    --bg: #fff8ef;
    --bg-soft: #fffdf8;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: #fffdf8;
    --text: #1f2937;
    --text-soft: #596579;
    --line: rgba(31, 41, 55, 0.12);
    --primary: #0f766e;
    --primary-dark: #115e59;
    --primary-soft: #d4f5ef;
    --accent: #c2410c;
    --accent-soft: #ffedd5;
    --shadow: 0 22px 60px rgba(148, 92, 39, 0.12);
    --shadow-soft: 0 14px 32px rgba(31, 41, 55, 0.08);
    --radius: 28px;
    --radius-sm: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
    line-height: 1.6;
    background:
        radial-gradient(circle at top left, rgba(255, 209, 102, 0.28), transparent 30%),
        radial-gradient(circle at right 18%, rgba(15, 118, 110, 0.18), transparent 25%),
        linear-gradient(180deg, #fff7ed 0%, #fffdf8 45%, #fff9f1 100%);
}

a {
    color: var(--primary-dark);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.18em;
}

img,
svg {
    display: block;
    max-width: 100%;
}

p,
ul,
ol {
    margin: 0 0 1rem;
}

h1,
h2,
h3 {
    margin: 0 0 0.75rem;
    line-height: 1.12;
    letter-spacing: -0.03em;
    font-family: "Avenir Next Condensed", "Arial Narrow", "Trebuchet MS", sans-serif;
}

h1 {
    font-size: clamp(2.1rem, 6vw, 4.2rem);
}

h2 {
    font-size: clamp(1.55rem, 4vw, 2.4rem);
}

h3 {
    font-size: clamp(1.2rem, 2.6vw, 1.65rem);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(255, 248, 239, 0.82);
    border-bottom: 1px solid rgba(31, 41, 55, 0.08);
}

.site-header--brand {
    position: relative;
    background: transparent;
    border-bottom: none;
    backdrop-filter: none;
}

.header-shell,
.footer-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.header-shell {
    padding: 14px 0;
}

.site-header--brand .header-shell {
    justify-content: flex-start;
    padding: 18px 0 10px;
}

.brand {
    color: var(--text);
    text-decoration: none;
    font-size: 1.16rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: lowercase;
}

.header-nav,
.footer-links,
.button-row,
.actions-row,
.split-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.header-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--text-soft);
    font-weight: 700;
}

.header-nav a:hover,
.header-nav a.is-active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.76);
}

.page-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 30px auto 72px;
}

body.page-join .page-shell {
    width: min(100% - 24px, 640px);
    margin: 12px auto 28px;
}

body.page-results .page-shell {
    width: min(100% - 24px, 1280px);
    margin: 12px auto 28px;
}

body.page-present .page-shell {
    width: min(100% - 24px, 1600px);
    margin: 12px auto;
    min-height: calc(100dvh - 24px);
    display: flex;
}

.section-card,
.card,
.join-step,
.result-card,
.feature-card,
.info-card,
.legal-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 253, 248, 0.96) 100%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
}

.section-card,
.card,
.join-step,
.legal-card {
    padding: clamp(22px, 3vw, 34px);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: clamp(18px, 3vw, 28px);
    align-items: center;
    margin-bottom: 26px;
}

.hero-copy,
.hero-visual,
.hero-highlight {
    min-width: 0;
}

.hero-copy p:last-child {
    margin-bottom: 0;
}

.eyebrow,
.badge,
.event-badge,
.step-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.eyebrow,
.badge,
.event-badge {
    color: var(--primary-dark);
    background: rgba(15, 118, 110, 0.1);
}

.lead {
    font-size: clamp(1.02rem, 2.2vw, 1.22rem);
    color: var(--text-soft);
}

.muted {
    color: var(--text-soft);
}

.button,
button {
    appearance: none;
    border: none;
    border-radius: 20px;
    min-height: 54px;
    padding: 13px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, #14978d 100%);
    color: #ffffff;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 16px 28px rgba(15, 118, 110, 0.22);
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.button:hover,
button:hover,
.button:focus-visible,
button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 20px 34px rgba(15, 118, 110, 0.26);
}

.button--ghost,
.button-secondary,
button.button--ghost {
    background: rgba(255, 255, 255, 0.82);
    color: var(--text);
    box-shadow: inset 0 0 0 1px var(--line);
}

.button--danger,
button.button--danger {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
    color: #ffffff;
    box-shadow: 0 16px 28px rgba(185, 28, 28, 0.2);
}

.button--danger:hover,
button.button--danger:hover,
.button--danger:focus-visible,
button.button--danger:focus-visible {
    box-shadow: 0 20px 34px rgba(185, 28, 28, 0.26);
}

.inline-delete-form {
    margin: 0;
}

label {
    display: block;
    margin-bottom: 9px;
    font-weight: 700;
}

.toggle-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
    min-height: 76px;
    padding: 16px 18px;
    border-radius: 22px;
    border: 1px solid rgba(31, 41, 55, 0.12);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

.toggle-card span {
    display: grid;
    gap: 4px;
}

.toggle-card small {
    color: var(--text-soft);
    font-size: 0.92rem;
    font-weight: 600;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid rgba(31, 41, 55, 0.15);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--text);
    font: inherit;
    padding: 14px 16px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: rgba(15, 118, 110, 0.55);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
    background: #ffffff;
}

.toggle-card input {
    width: 22px;
    height: 22px;
    margin-top: 2px;
    padding: 0;
    border-radius: 8px;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

.code-input {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 1.18rem;
    font-weight: 800;
}

.form-grid,
.info-grid,
.feature-grid,
.session-grid,
.legal-grid,
.tips-grid {
    display: grid;
    gap: 18px;
}

.form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid .span-full {
    grid-column: 1 / -1;
}

.feature-grid,
.info-grid,
.session-grid,
.tips-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.legal-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.section-card.card-stack + .feature-grid,
.feature-grid + .section-card,
.info-grid + .section-card,
.tips-grid + .section-card {
    margin-top: 26px;
}

.feature-card,
.info-card,
.result-card {
    padding: 22px;
    box-shadow: var(--shadow-soft);
}

.feature-card h3,
.info-card h3,
.result-card h3 {
    margin-bottom: 0.4rem;
}

.card-stack,
.section-stack {
    display: grid;
    gap: 20px;
}

.big-code {
    font-size: clamp(2.2rem, 7vw, 4.6rem);
    font-weight: 900;
    letter-spacing: 0.22em;
    color: var(--primary-dark);
    text-transform: uppercase;
}

.link-box,
.copy-box,
.inline-panel {
    padding: 16px 18px;
    border-radius: 22px;
    border: 1px solid rgba(31, 41, 55, 0.1);
    background: rgba(255, 255, 255, 0.72);
    word-break: break-word;
}

.notice {
    padding: 15px 17px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(194, 65, 12, 0.12), rgba(255, 237, 213, 0.9));
    border: 1px solid rgba(194, 65, 12, 0.18);
    color: #7c2d12;
}

.notice--soft {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(212, 245, 239, 0.9));
    border-color: rgba(15, 118, 110, 0.18);
    color: var(--primary-dark);
}

.hero-visual,
.illustration-panel,
.qr-card {
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-illustration {
    width: 100%;
    max-width: 420px;
}

.event-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 16px;
}

.mini-list,
.legal-list {
    padding-left: 1.1rem;
}

.mini-list li,
.legal-list li {
    margin-bottom: 0.55rem;
}

.qr-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    gap: 22px;
    align-items: center;
}

.qr-code {
    display: grid;
    place-items: center;
    width: min(100%, 260px);
    aspect-ratio: 1;
    margin: 0 auto 14px;
    padding: 16px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(31, 41, 55, 0.08);
}

.qr-code img,
.qr-code canvas,
.qr-code table {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
}

.results-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.results-summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.08);
    color: var(--primary-dark);
    font-weight: 700;
}

.results-stage {
    min-height: calc(100dvh - 120px);
    display: flex;
    flex-direction: column;
}

.results-stage__content {
    flex: 1;
    min-height: 0;
}

.result-card {
    margin-bottom: 14px;
}

.result-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.result-option {
    font-size: 1.04rem;
    font-weight: 800;
}

.result-meta {
    color: var(--text-soft);
    font-weight: 700;
}

.result-track {
    position: relative;
    overflow: hidden;
    height: 16px;
    border-radius: 999px;
    background: rgba(31, 41, 55, 0.08);
}

.result-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary) 0%, #2dd4bf 100%);
}

.join-wrapper {
    max-width: 560px;
    margin: 0 auto;
}

.join-step {
    min-height: min(78dvh, 760px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
}

.join-step[hidden] {
    display: none;
}

.question-panel h2 {
    font-size: clamp(1.45rem, 5vw, 2.35rem);
}

.question-panel {
    display: grid;
    gap: 6px;
}

.question-panel h1,
.question-panel h2,
.question-panel .lead,
.question-panel .event-meta {
    margin: 0;
}

.option-grid {
    display: grid;
    gap: 10px;
}

.wordcloud-entry {
    display: grid;
    gap: 10px;
}

.wordcloud-entry textarea {
    min-height: 132px;
    resize: vertical;
    font-size: 1.08rem;
    line-height: 1.45;
}

.wordcloud-results {
    gap: 16px;
}

.wordcloud-stage {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 1.8vw, 18px) clamp(14px, 2.4vw, 30px);
    min-height: clamp(240px, 38vh, 460px);
    padding: clamp(18px, 3vw, 38px);
    border: 1px solid rgba(31, 41, 55, 0.1);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(212, 245, 239, 0.58), rgba(255, 255, 255, 0.88) 52%, rgba(255, 237, 213, 0.7));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.wordcloud-token {
    display: inline-block;
    max-width: min(100%, 18em);
    color: var(--primary-dark);
    font-family: "Avenir Next Condensed", "Arial Narrow", "Trebuchet MS", sans-serif;
    font-weight: 900;
    line-height: 1.08;
    overflow-wrap: anywhere;
    text-align: center;
}

.wordcloud-token--1 {
    font-size: clamp(1rem, 1.6vw, 1.35rem);
    opacity: 0.72;
}

.wordcloud-token--2 {
    font-size: clamp(1.2rem, 2.2vw, 1.85rem);
    opacity: 0.82;
}

.wordcloud-token--3 {
    font-size: clamp(1.45rem, 3vw, 2.45rem);
}

.wordcloud-token--4 {
    font-size: clamp(1.75rem, 4vw, 3.35rem);
}

.wordcloud-token--5 {
    font-size: clamp(2.1rem, 5vw, 4.2rem);
}

.wordcloud-token--6 {
    font-size: clamp(2.6rem, 6.6vw, 5.6rem);
}

.wordcloud-color--1 {
    color: var(--primary-dark);
}

.wordcloud-color--2 {
    color: var(--accent);
}

.wordcloud-color--3 {
    color: #155e75;
}

.wordcloud-color--4 {
    color: #166534;
}

.wordcloud-color--5 {
    color: #7c2d12;
}

.wordcloud-color--6 {
    color: #4338ca;
}

.wordcloud-ranking {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wordcloud-ranking li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(31, 41, 55, 0.08);
    font-weight: 800;
}

.wordcloud-ranking span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wordcloud-ranking strong {
    color: var(--primary-dark);
    font-size: 1.05rem;
}

.option-choice {
    position: relative;
    cursor: pointer;
}

.option-choice input {
    position: absolute;
    inset: 0;
    opacity: 0;
    margin: 0;
}

.option-choice-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: center;
    min-height: 80px;
    padding: 18px 20px;
    border-radius: 24px;
    border: 1px solid rgba(31, 41, 55, 0.12);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-soft);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
    font-size: 1.05rem;
    font-weight: 800;
}

.option-choice-index {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(15, 118, 110, 0.1);
    color: var(--primary-dark);
    font-size: 0.98rem;
    font-weight: 900;
}

.option-choice input:checked + .option-choice-card {
    border-color: rgba(15, 118, 110, 0.5);
    background: linear-gradient(135deg, rgba(212, 245, 239, 0.72), rgba(255, 255, 255, 0.98));
    transform: translateY(-1px);
    box-shadow: 0 20px 36px rgba(15, 118, 110, 0.18);
}

.split-actions {
    justify-content: space-between;
}

.split-actions > * {
    flex: 1 1 180px;
}

.step-card {
    display: grid;
    gap: 10px;
}

.present-stage {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100dvh - 24px);
}

.present-stage--dense {
    width: 100%;
}

.present-stage--live {
    align-items: stretch;
}

.present-stage--wordcloud.present-stage--live .present-shell {
    width: min(100%, 1480px);
}

.present-shell {
    width: min(100%, 1320px);
    min-height: calc(100dvh - 24px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    overflow: hidden;
    padding: clamp(22px, 2.8vw, 34px);
}

.present-stage--dense .present-shell {
    width: min(100%, 1400px);
}

.present-topbar {
    display: grid;
    gap: 18px;
    justify-items: center;
    align-content: center;
    width: 100%;
    text-align: center;
    transition: gap 0.22s ease, padding 0.22s ease, margin 0.22s ease, border-color 0.22s ease;
}

.present-stage--live .present-shell {
    justify-content: flex-start;
}

.present-stage--live .present-topbar {
    grid-template-columns: minmax(240px, 0.9fr) minmax(170px, 210px) minmax(320px, 1.15fr);
    align-items: center;
    justify-items: stretch;
    gap: 20px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(31, 41, 55, 0.12);
}

.present-stage--dense.present-stage--live .present-topbar {
    grid-template-columns: minmax(180px, 0.88fr) minmax(118px, 148px) minmax(220px, 1fr);
    gap: 12px;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.present-stage--live .present-code-block {
    justify-items: start;
    text-align: left;
    align-content: center;
}

.present-code-block {
    display: grid;
    gap: 8px;
    justify-items: center;
}

.present-stage .big-code {
    font-size: clamp(3.2rem, 11vw, 7.8rem);
    line-height: 0.96;
    letter-spacing: 0.26em;
    text-indent: 0.26em;
}

.present-stage--live .big-code {
    font-size: clamp(2.3rem, 5vw, 4.8rem);
    letter-spacing: 0.2em;
    text-indent: 0.2em;
}

.present-stage--dense.present-stage--live .big-code {
    font-size: clamp(1.65rem, 3.4vw, 3.1rem);
    letter-spacing: 0.14em;
    text-indent: 0.14em;
}

.qr-card--present {
    width: 100%;
}

.present-stage--live .qr-card--present {
    width: auto;
    justify-self: center;
}

.qr-code--present {
    width: min(62vw, 520px);
    margin-bottom: 0;
    padding: clamp(20px, 2.6vw, 28px);
    border-radius: 34px;
    box-shadow:
        0 22px 44px rgba(22, 52, 58, 0.12),
        inset 0 0 0 1px rgba(31, 41, 55, 0.08);
    transition: width 0.22s ease, padding 0.22s ease, border-radius 0.22s ease;
}

.present-stage--live .qr-code--present {
    width: min(16vw, 210px);
    padding: 12px;
    border-radius: 24px;
}

.present-stage--dense.present-stage--live .qr-code--present {
    width: min(10vw, 148px);
    padding: 9px;
    border-radius: 18px;
}

.present-meta-block {
    display: grid;
    gap: 12px;
    justify-items: center;
    width: min(100%, 760px);
}

.present-stage--live .present-meta-block {
    width: 100%;
    justify-items: start;
    text-align: left;
    align-content: center;
    gap: 10px;
}

.present-link-box {
    width: min(100%, 760px);
    font-size: clamp(1rem, 1.8vw, 1.3rem);
}

.present-stage--live .present-link-box {
    width: 100%;
    padding: 12px 14px;
    border-radius: 18px;
    font-size: clamp(0.92rem, 1.15vw, 1.08rem);
}

.present-hint {
    margin-bottom: 0;
    max-width: 48rem;
    font-size: clamp(1rem, 1.6vw, 1.18rem);
    color: var(--text-soft);
}

.present-stage--live .present-hint {
    max-width: none;
    font-size: clamp(0.95rem, 1.12vw, 1.06rem);
}

.present-stage--dense.present-stage--live .present-hint {
    display: none;
}

.present-results-slot[hidden] {
    display: none !important;
}

.present-results-slot {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.present-results-content {
    width: 100%;
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding-right: 4px;
}

.present-stage--live .present-results-content {
    padding-top: 4px;
}

.present-stage--wordcloud.present-stage--live .present-results-content .wordcloud-stage {
    min-height: clamp(360px, 52vh, 640px);
}

.present-stage--wordcloud.present-stage--live .present-results-content .wordcloud-ranking {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.present-results-content .card-stack {
    gap: 14px;
    max-width: none;
    margin: 0;
}

.present-stage--dense.present-stage--live .present-results-content .card-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-content: stretch;
}

.present-stage--dense.present-stage--live .present-results-content .card-stack > h3,
.present-stage--dense.present-stage--live .present-results-content .card-stack > .muted,
.present-stage--dense.present-stage--live .present-results-content .card-stack > .notice {
    width: 100%;
}

.present-results-content h3 {
    text-align: center;
    font-size: clamp(1.55rem, 2.4vw, 2.35rem);
    margin-bottom: 0.25rem;
}

.present-results-content .muted {
    margin-bottom: 0.75rem;
    text-align: center;
}

.present-results-content .result-card {
    padding: clamp(16px, 1.8vw, 24px);
    margin-bottom: 12px;
    text-align: left;
}

.present-results-content .result-head {
    margin-bottom: 10px;
}

.present-results-content .result-option {
    font-size: clamp(1.15rem, 1.8vw, 1.55rem);
}

.present-results-content .result-meta {
    font-size: clamp(1.15rem, 1.8vw, 1.65rem);
}

.present-results-content .result-track {
    height: 20px;
}

.present-stage--dense.present-stage--live .present-results-content .result-card {
    padding: 8px 12px;
    margin-bottom: 0;
}

.present-stage--dense.present-stage--live .present-results-content .result-option,
.present-stage--dense.present-stage--live .present-results-content .result-meta {
    font-size: clamp(0.92rem, 1vw, 1.08rem);
}

.present-stage--dense.present-stage--live .present-results-content h3 {
    font-size: clamp(1.12rem, 1.45vw, 1.45rem);
    margin-bottom: 0;
}

.present-stage--dense.present-stage--live .present-results-content .muted {
    margin-bottom: 0;
    font-size: 0.88rem;
}

.present-stage--dense.present-stage--live .present-results-content .result-head {
    margin-bottom: 6px;
}

.present-stage--dense.present-stage--live .present-results-content .result-track {
    height: 12px;
}

.present-results-content .result-card:last-child {
    margin-bottom: 0;
}

.present-shell {
    padding-block: clamp(28px, 4vh, 44px);
    transition: min-height 0.22s ease, padding 0.22s ease;
}

.present-stage--live .present-shell {
    padding-block: clamp(18px, 2.4vh, 26px);
}

.present-stage--dense.present-stage--live .present-shell {
    padding: clamp(14px, 1.8vh, 20px) clamp(18px, 2vw, 26px);
}

.step-visual {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(31, 41, 55, 0.08);
    background: rgba(255, 255, 255, 0.72);
}

.step-number {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(194, 65, 12, 0.12);
    color: var(--accent);
    font-weight: 900;
}

.session-card {
    display: grid;
    gap: 18px;
}

.session-card .big-code {
    font-size: clamp(1.6rem, 5vw, 2.7rem);
}

.placeholder-box {
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 244, 230, 0.9);
    border: 1px dashed rgba(194, 65, 12, 0.35);
}

.legal-card h2,
.legal-card h3 {
    margin-bottom: 0.65rem;
}

.site-footer {
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    background:
        radial-gradient(circle at top right, rgba(45, 212, 191, 0.14), transparent 28%),
        linear-gradient(135deg, #16343a 0%, #0f766e 100%);
    color: #ffffff;
    box-shadow: 0 -18px 40px rgba(15, 118, 110, 0.18);
}

.footer-shell {
    padding: 26px 0 34px;
}

.footer-shell p {
    margin: 0.35rem 0 0;
    color: rgba(255, 255, 255, 0.84);
}

.footer-links a {
    text-decoration: none;
    font-weight: 700;
    color: #ffffff;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: #d4f5ef;
}

.footer-sponsored {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
    text-align: center;
}

.footer-sponsored a {
    color: #ffffff;
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

.footer-signature {
    margin: 0;
    padding: 0 16px 26px;
    text-align: center;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.96rem;
    font-weight: 600;
}

.empty-state {
    text-align: center;
}

.inline-label {
    font-size: 0.88rem;
    color: var(--text-soft);
    font-weight: 700;
}

.illustration-image {
    border-radius: 24px;
    border: 1px solid rgba(31, 41, 55, 0.1);
    box-shadow: var(--shadow-soft);
    background: #ffffff;
}

.refresh-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-soft);
    font-weight: 700;
}

.refresh-indicator::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 7px rgba(34, 197, 94, 0.1);
}

@media (max-width: 920px) {
    .hero,
    .qr-layout,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        order: -1;
    }

    .present-stage,
    .present-stage--dense {
        min-height: auto;
    }

    body.page-present .page-shell {
        display: block;
        min-height: 0;
        margin: 16px auto 24px;
    }

    .present-shell {
        min-height: auto;
    }

    .qr-code--present {
        width: min(72vw, 460px);
    }

    .present-stage--live .present-topbar {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .present-stage--live .present-code-block,
    .present-stage--live .present-meta-block {
        justify-items: center;
        text-align: center;
    }

    .present-stage--live .present-link-box {
        width: min(100%, 760px);
    }

    .present-stage--live .qr-code--present {
        width: min(48vw, 260px);
    }

    .results-stage,
    .present-results-content {
        min-height: auto;
    }

    .present-stage--wordcloud.present-stage--live .present-results-content .wordcloud-ranking {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .page-shell,
    .header-shell,
    .footer-shell {
        width: min(100% - 22px, 1120px);
    }

    .page-shell {
        margin-top: 20px;
    }

    .section-card,
    .card,
    .join-step,
    .legal-card {
        padding: 20px;
        border-radius: 24px;
    }

    .button,
    button {
        width: 100%;
    }

    .header-nav {
        width: 100%;
    }

    .header-nav a {
        flex: 1 1 calc(50% - 8px);
        text-align: center;
    }

    .button-row,
    .actions-row,
    .split-actions {
        flex-direction: column;
    }

    .inline-delete-form,
    .split-actions > * {
        width: 100%;
    }

    .join-step {
        min-height: auto;
    }

    .present-stage .big-code {
        font-size: clamp(2.5rem, 16vw, 4.6rem);
        letter-spacing: 0.18em;
        text-indent: 0.18em;
    }

    .present-stage--live .big-code {
        font-size: clamp(2.1rem, 12vw, 3.8rem);
    }

    .present-link-box {
        font-size: 1rem;
    }

    .wordcloud-stage {
        min-height: 220px;
        padding: 16px;
        border-radius: 20px;
    }

    .wordcloud-ranking,
    .present-stage--wordcloud.present-stage--live .present-results-content .wordcloud-ranking {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
