.mina-ai-stadium-page .entry-content,
.mina-ai-stadium-page .wp-block-post-content {
    margin-block-start: 0 !important;
    margin-top: 0 !important;
    max-width: none;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    width: 100%;
}

.mina-ai-stadium-page {
    background: #000;
    overflow-x: hidden;
    overflow-y: auto;
}

.mina-ai-stadium-page main,
.mina-ai-stadium-page .wp-site-blocks {
    overflow-x: clip;
}

.mina-ai-stadium-page header.wp-block-template-part {
    margin-bottom: 0 !important;
}

.mina-ai-stadium-page header.wp-block-template-part > .wp-block-group {
    padding-bottom: 0 !important;
}

.mina-ai-stadium-page header.wp-block-template-part .wp-block-group {
    margin-bottom: 0 !important;
}

html[data-mina-theme="light"] .mina-ai-stadium-page {
    background: #eedbbc;
}

html[data-mina-theme="dark"] .mina-ai-stadium-page .my-site-header::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(21, 28, 30, 0.18) 42%, rgba(21, 28, 30, 0.32) 100%) !important;
}

.mina-ai-stadium-page main {
    margin-block-start: 0 !important;
}

.mina-ai-stadium-page main > .wp-block-group:first-child,
.mina-ai-stadium-page footer.wp-block-template-part {
    display: none !important;
}

.mina-ai-stadium-page main > .wp-block-group,
.mina-ai-stadium-page main > .wp-block-group > .wp-block-group {
    margin-block-start: 0 !important;
    padding-bottom: 0 !important;
    padding-top: 0 !important;
}

.mina-ai-stadium-page main .wp-block-spacer {
    display: none !important;
}

.mina-ai-stadium-page .wp-block-post-content > .mina-stadium {
    max-width: none;
}

.mina-ai-stadium-page .entry-title,
.mina-ai-stadium-page .wp-block-post-title {
    display: none;
}

.mina-ai-stadium-page #mina-ai-bot-openai-root,
.mina-ai-stadium-page #mina-ai-bot-qwen-root {
    display: none !important;
}

.mina-stadium {
    --stadium-bg: #020707;
    --stadium-ink: #eef8f7;
    --stadium-muted: #91a3aa;
    --stadium-line: #223234;
    --stadium-soft: #0b1919;
    --stadium-card: #0f1d1e;
    --stadium-mina: #22c7b9;
    --stadium-mina-soft: rgba(34, 199, 185, 0.17);
    --stadium-mike: #f0ad3d;
    --stadium-mike-soft: rgba(240, 173, 61, 0.17);
    --stadium-michael: #60a5fa;
    --stadium-michael-soft: rgba(96, 165, 250, 0.17);
    --stadium-hana: #f472b6;
    --stadium-hana-soft: rgba(244, 114, 182, 0.17);
    --stadium-danger: #ff8f83;
    --stadium-glow: rgba(34, 199, 185, 0.28);
    --stadium-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
    /* Keep the arena height aligned with the visible viewport below the site header. */
    --stadium-page-offset: 72px;
    --stadium-top-gap: 16px;
    --stadium-top-gap-extra: 0px;
    color: var(--stadium-ink);
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    position: relative;
    top: var(--stadium-top-gap-extra);
    height: auto;
    min-height: 0;
    width: 100vw;
}

.mina-stadium[data-theme="dark"] {
    --stadium-bg: #020707;
    --stadium-ink: #eef8f7;
    --stadium-muted: #91a3aa;
    --stadium-line: #223234;
    --stadium-soft: #0b1919;
    --stadium-card: #0f1d1e;
    --stadium-mina: #22c7b9;
    --stadium-mina-soft: rgba(34, 199, 185, 0.17);
    --stadium-mike: #f0ad3d;
    --stadium-mike-soft: rgba(240, 173, 61, 0.17);
    --stadium-michael: #60a5fa;
    --stadium-michael-soft: rgba(96, 165, 250, 0.17);
    --stadium-danger: #ff8f83;
    --stadium-glow: rgba(34, 199, 185, 0.28);
    --stadium-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
}

.mina-stadium[data-theme="light"] {
    --stadium-bg: #f3e4c7;
    --stadium-ink: #2f2416;
    --stadium-muted: #7d6b53;
    --stadium-line: rgba(167, 133, 78, 0.22);
    --stadium-soft: #ead7b5;
    --stadium-card: #ffffff;
    --stadium-mina: #13aa9d;
    --stadium-mina-soft: #dff7f4;
    --stadium-mike: #d48b21;
    --stadium-mike-soft: #fff0d7;
    --stadium-michael: #3b82f6;
    --stadium-michael-soft: #e4efff;
    --stadium-hana: #db2777;
    --stadium-hana-soft: #ffe3f1;
    --stadium-danger: #b42318;
    --stadium-glow: rgba(200, 138, 45, 0.18);
    --stadium-shadow: 0 18px 50px rgba(86, 61, 23, 0.12);
}

.mina-stadium *,
.mina-stadium *::before,
.mina-stadium *::after {
    box-sizing: border-box;
}

.mina-stadium button,
.mina-stadium textarea {
    font: inherit;
}

.mina-stadium button {
    cursor: pointer;
}

.mina-stadium-world {
    align-items: center;
    background-color: #020707;
    background-image: radial-gradient(circle at 50% 18%, rgba(34, 199, 185, 0.1), rgba(2, 7, 7, 0) 42%);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: calc(100svh - var(--stadium-page-offset));
    overflow: clip;
    padding: 0;
    position: relative;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.mina-stadium-world-stage {
    aspect-ratio: 1678 / 937;
    border: 0;
    border-radius: 0;
    box-shadow: 0 22px 72px rgba(0, 0, 0, 0.46);
    height: auto;
    max-width: none;
    outline: 0;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.mina-stadium-world-stage:focus-visible {
    box-shadow: 0 0 0 4px rgba(34, 199, 185, 0.2), 0 22px 72px rgba(0, 0, 0, 0.46);
}

.mina-stadium-world-map {
    background-image:
        linear-gradient(180deg, rgba(2, 7, 7, 0.04), rgba(2, 7, 7, 0.06)),
        url("/assets/mina-agent-world-map.jpg");
    background-position: center;
    background-size: 100% 100%;
    height: 100%;
    image-rendering: pixelated;
    position: relative;
    transform: translate3d(var(--world-camera-x, 0px), var(--world-camera-y, 0px), 0);
    width: 100%;
    will-change: transform;
}

.mina-stadium-world-player {
    background: url("/assets/mina-main-character.png") center bottom / contain no-repeat;
    filter: drop-shadow(0 12px 10px rgba(0, 0, 0, 0.45));
    height: 13.68%;
    pointer-events: none;
    position: absolute;
    transform: translate(-50%, -92%) rotate(var(--player-lean, 0deg));
    transform-origin: 50% 92%;
    width: 3.895%;
    z-index: 8;
}

.mina-stadium-world-player.is-flipped {
    transform: translate(-50%, -92%) scaleX(-1) rotate(var(--player-lean, 0deg));
}

.mina-stadium-world-npc {
    background: transparent;
    border: 0;
    height: 10%;
    left: var(--npc-x);
    padding: 0;
    position: absolute;
    top: var(--npc-y);
    transform: translate(-50%, -62%);
    width: 5.4%;
    z-index: 6;
}

.mina-stadium-world-npc span {
    border: 2px solid rgba(249, 217, 152, 0.18);
    border-radius: 50%;
    bottom: 4%;
    box-shadow: 0 0 0 0 rgba(249, 217, 152, 0);
    display: block;
    height: 48%;
    left: 8%;
    position: absolute;
    transition: 0.18s ease;
    width: 84%;
}

.mina-stadium-world-npc.is-active span,
.mina-stadium-world-npc:hover span,
.mina-stadium-world-npc:focus-visible span {
    border-color: rgba(249, 217, 152, 0.82);
    box-shadow: 0 0 0 8px rgba(249, 217, 152, 0.12);
    transform: scale(1.1);
}

.mina-stadium-world-popup {
    background: rgba(255, 244, 215, 0.98);
    border: 2px solid #674337;
    border-radius: 7px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3);
    color: #3c2a25;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    max-width: min(320px, 36%);
    padding: 8px 10px;
    pointer-events: none;
    position: absolute;
    text-align: center;
    transform: translate(-50%, -100%);
    z-index: 12;
}

.mina-stadium-world-popup::after {
    border-color: #fff4d7 transparent transparent;
    border-style: solid;
    border-width: 10px 8px 0;
    content: "";
    left: 50%;
    position: absolute;
    top: calc(100% - 1px);
    transform: translateX(-50%);
}

.mina-stadium-world-popup p {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.38;
    margin: 0;
}

.mina-stadium-world-door {
    border-radius: 22px 22px 4px 4px;
    position: absolute;
    z-index: 5;
}

.mina-stadium-world-cta {
    background: var(--stadium-mina);
    border: 0;
    border-radius: 8px;
    bottom: 24px;
    color: #06201f;
    font-weight: 800;
    left: 50%;
    min-height: 46px;
    padding: 0 20px;
    position: absolute;
    transform: translateX(-50%);
    z-index: 14;
}

.mina-stadium-world-cta::after {
    border-color: #06201f transparent transparent;
    border-style: solid;
    border-width: 8px 7px 0;
    content: "";
    left: 50%;
    position: absolute;
    top: calc(100% + 8px);
    transform: translateX(-50%);
}

.mina-stadium-world-cta:hover,
.mina-stadium-world-cta:focus-visible {
    box-shadow: 0 0 0 4px var(--stadium-glow);
}

.mina-stadium-world-pad {
    --pad-ink: rgba(32, 32, 32, 0.78);
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(2px);
    border-radius: 16px;
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    opacity: 0;
    padding: 5px;
    pointer-events: none;
    position: absolute;
    right: var(--world-pad-right, 18px);
    touch-action: none;
    top: var(--world-pad-top, calc(100% - 230px));
    transform: translateY(8px);
    transition: opacity 0.16s ease, transform 0.16s ease;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    width: clamp(98px, 9.4vw, 138px);
    z-index: 40;
}

.mina-stadium-world-pad.is-visible {
    opacity: 0.9;
    pointer-events: auto;
    transform: translateY(0);
}

.mina-stadium-world-pad button,
.mina-stadium-world-pad span {
    align-self: center;
    justify-self: center;
}

.mina-stadium-world-pad button {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    border: 0;
    height: 100%;
    opacity: 0.9;
    padding: 0;
    position: relative;
    touch-action: none;
    transition: opacity 0.14s ease, transform 0.14s ease;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    width: 100%;
}

.mina-stadium-world-pad button::before {
    background: var(--pad-ink);
    content: "";
    display: block;
    inset: 0;
    position: absolute;
}

.mina-stadium-world-pad button:hover,
.mina-stadium-world-pad button:focus-visible,
.mina-stadium-world-pad button.is-active {
    opacity: 1;
    transform: scale(1.06);
}

.mina-stadium-world-pad-up {
    grid-column: 2;
    grid-row: 1;
}

.mina-stadium-world-pad-up::before {
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.mina-stadium-world-pad-left {
    grid-column: 1;
    grid-row: 2;
}

.mina-stadium-world-pad-left::before {
    clip-path: polygon(0 50%, 100% 0, 100% 100%);
}

.mina-stadium-world-pad span {
    background: var(--pad-ink);
    border-radius: 50%;
    grid-column: 2;
    grid-row: 2;
    height: 72%;
    width: 72%;
}

.mina-stadium-world-pad-right {
    grid-column: 3;
    grid-row: 2;
}

.mina-stadium-world-pad-right::before {
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.mina-stadium-world-pad-down {
    grid-column: 2;
    grid-row: 3;
}

.mina-stadium-world-pad-down::before {
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.mina-stadium-shell {
    background: var(--stadium-bg);
    border: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: calc(100svh - var(--stadium-page-offset));
    min-height: min(520px, calc(100svh - var(--stadium-page-offset)));
    isolation: isolate;
    overflow: hidden;
    position: relative;
}

.mina-stadium-shell::before {
    content: "";
    inset: 0 0 auto;
    pointer-events: none;
    position: absolute;
    z-index: 0;
}

.mina-stadium-shell > * {
    position: relative;
    z-index: 1;
}

.mina-stadium-topbar {
    min-height: 44px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    padding: 7px clamp(12px, 2vw, 18px);
    background: linear-gradient(180deg, rgba(15, 29, 30, 0.08) 0%, rgba(15, 29, 30, 0.7) 48%, var(--stadium-card) 100%);
    border-bottom: 1px solid var(--stadium-line);
    position: relative;
    z-index: 0;
}

.mina-stadium-topbar::before {
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 0;
}

.mina-stadium-topbar > * {
    position: relative;
    z-index: 1;
}

.mina-stadium-topbar-spacer {
    min-width: 0;
}

.mina-stadium[data-theme="light"] .mina-stadium-topbar {
    background: linear-gradient(
        180deg,
        rgba(247, 234, 209, 0.08) 0%,
        rgba(243, 228, 199, 0.55) 48%,
        var(--stadium-card) 100%
    );
    border-bottom-color: rgba(200, 170, 120, 0.45);
    box-shadow: none;
}

.mina-stadium[data-theme="light"] .mina-stadium-shell {
    background-color: var(--stadium-bg);
    background-image: none;
}

.mina-stadium[data-theme="light"] .mina-stadium-shell::before {
    background: none;
    height: 0;
}

.mina-stadium[data-theme="light"] .mina-stadium-topbar::before {
    background: none;
    opacity: 0;
}

.mina-stadium[data-theme="light"] .mina-stadium-brand strong {
    color: #2f2416;
    -webkit-text-stroke: 0;
    text-shadow: none;
}

.mina-stadium[data-theme="light"] .mina-stadium-brand span {
    color: #7d6b53;
}

.mina-stadium-brand {
    align-items: baseline;
    display: flex;
    gap: 8px;
    justify-self: center;
    min-width: 0;
    text-align: center;
}

.mina-stadium-brand strong {
    display: block;
    font-size: 15px;
    white-space: nowrap;
}

.mina-stadium-brand span {
    color: var(--stadium-muted);
    font-size: 11px;
    font-weight: 400;
    white-space: nowrap;
}

.mina-stadium-kicker {
    color: var(--stadium-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0 0 4px;
    text-transform: uppercase;
}

.mina-stadium h1,
.mina-stadium h2 {
    letter-spacing: 0;
    line-height: 1.1;
    margin: 0;
}

.mina-stadium h1 {
    font-size: 24px;
}

.mina-stadium h2 {
    font-size: 18px;
}

.mina-stadium-session {
    align-items: center;
    color: var(--stadium-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    gap: 8px;
    justify-content: flex-end;
    justify-self: end;
}

.mina-stadium-ghost,
.mina-stadium-score-actions button,
.mina-stadium-segments button {
    border: 1px solid var(--stadium-line);
    border-radius: 8px;
    background: var(--stadium-card);
    color: var(--stadium-ink);
}

.mina-stadium-ghost {
    min-height: 30px;
    padding: 0 10px;
}

.mina-stadium-grid {
    min-height: 0;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(236px, 280px) minmax(460px, 1fr) minmax(236px, 292px);
}

.mina-stadium-sidebar,
.mina-stadium-sidepanel {
    min-width: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 10px;
}

.mina-stadium-sidebar {
    border-right: 1px solid var(--stadium-line);
}

.mina-stadium-sidepanel {
    border-left: 1px solid var(--stadium-line);
}

.mina-stadium-panel {
    background: var(--stadium-card);
    border: 1px solid var(--stadium-line);
    border-radius: 8px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.15);
    padding: 10px;
}

.mina-stadium[data-theme="dark"] .mina-stadium-panel,
.mina-stadium[data-theme="dark"] .mina-stadium-topbar,
.mina-stadium[data-theme="dark"] .mina-stadium-composer,
.mina-stadium[data-theme="dark"] .mina-stadium-message-body,
.mina-stadium[data-theme="dark"] .mina-stadium-ghost,
.mina-stadium[data-theme="dark"] .mina-stadium-score-actions button {
    box-shadow: none;
}

.mina-stadium-panel + .mina-stadium-panel {
    margin-top: 8px;
}

.mina-stadium-panel-head {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.mina-stadium-panel-head strong {
    display: block;
    font-size: 14px;
}

.mina-stadium-panel-head span {
    color: var(--stadium-muted);
    font-size: 12px;
    text-align: right;
}

.mina-stadium-bot-option {
    align-items: center;
    border: 1px solid var(--stadium-line);
    border-radius: 8px;
    display: grid;
    gap: 10px;
    grid-template-columns: auto 40px minmax(0, 1fr);
    min-height: 56px;
    padding: 8px;
    position: relative;
}

.mina-stadium-bot-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding-right: 68px;
}

.mina-stadium-bot-copy strong {
    display: block;
}

.mina-stadium-bot-option + .mina-stadium-bot-option {
    margin-top: 8px;
}

.mina-stadium-bot-option input {
    accent-color: var(--stadium-mina);
    width: 18px;
    height: 18px;
}

.mina-stadium-bot-mike input {
    accent-color: var(--stadium-mike);
}

.mina-stadium-bot-michael input {
    accent-color: var(--stadium-michael);
}

.mina-stadium-bot-hana input {
    accent-color: var(--stadium-hana);
}

.mina-stadium-bot-mark,
.mina-stadium-avatar {
    align-items: center;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
}

.mina-stadium-bot-mark {
    width: 36px;
    height: 36px;
}

.mina-stadium-bot-mark img,
.mina-stadium-avatar img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    display: block;
    object-fit: cover;
}

.mina-stadium-bot-mina .mina-stadium-bot-mark,
.mina-stadium-message-mina .mina-stadium-avatar {
    background: var(--stadium-mina);
}

.mina-stadium-bot-mike .mina-stadium-bot-mark,
.mina-stadium-message-mike .mina-stadium-avatar {
    background: var(--stadium-mike);
}

.mina-stadium-bot-michael .mina-stadium-bot-mark,
.mina-stadium-message-michael .mina-stadium-avatar {
    background: var(--stadium-michael);
}

.mina-stadium-bot-hana .mina-stadium-bot-mark,
.mina-stadium-message-hana .mina-stadium-avatar {
    background: var(--stadium-hana);
}

.mina-stadium-bot-option small {
    color: var(--stadium-muted);
    display: block;
    font-size: 12px;
    line-height: 1.25;
    margin-top: 2px;
}

.mina-stadium-bot-option em {
    border-radius: 999px;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    padding: 3px 6px;
    position: absolute;
    right: 10px;
    top: 10px;
}

.mina-stadium-bot-option em.is-ready {
    background: var(--stadium-mina-soft);
    color: var(--stadium-mina);
}

.mina-stadium-bot-option em.is-missing {
    background: #fff1f0;
    color: var(--stadium-danger);
}

.mina-stadium-segments {
    background: var(--stadium-soft);
    border: 1px solid var(--stadium-line);
    border-radius: 8px;
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 4px;
}

.mina-stadium-segments button {
    background: transparent;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    min-height: 36px;
    padding: 0 10px;
    text-align: center;
    white-space: nowrap;
}

.mina-stadium-segments button.is-active {
    background: #071313;
    box-shadow: inset 0 0 0 1px rgba(34, 199, 185, 0.1), 0 0 22px rgba(34, 199, 185, 0.07);
}

.mina-stadium-segments-dual {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mina-stadium-segments-dual button {
    min-height: 36px;
    padding: 0 12px;
    white-space: nowrap;
    overflow-wrap: normal;
}

.mina-stadium[data-theme="light"] .mina-stadium-segments button.is-active {
    background: var(--stadium-card);
    box-shadow: 0 2px 10px rgba(28, 42, 50, 0.09);
}

.mina-stadium-score-row {
    align-items: center;
    background: var(--stadium-soft);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    min-height: 34px;
    padding: 0 10px;
}

.mina-stadium-score-row + .mina-stadium-score-row {
    margin-top: 8px;
}

.mina-stadium-score-row strong {
    font-size: 18px;
}

.mina-stadium-chat {
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: var(--stadium-bg);
    overflow: hidden;
    position: relative;
}

.mina-stadium-round {
    align-items: center;
    border: 1px solid var(--stadium-line);
    border-radius: 8px;
    display: flex;
    gap: 8px;
    min-height: 34px;
    padding: 0 10px;
}

.mina-stadium-round span {
    color: var(--stadium-muted);
    font-size: 12px;
}

.mina-stadium-feed {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px clamp(12px, 1.6vw, 18px) 16px;
}

.mina-stadium-message {
    display: grid;
    gap: 6px;
    max-width: 760px;
    min-width: 0;
}

.mina-stadium-message + .mina-stadium-message {
    margin-top: 12px;
}

.mina-stadium-message-user {
    margin-left: auto;
}

.mina-stadium-message-meta {
    align-items: center;
    color: var(--stadium-muted);
    display: flex;
    gap: 8px;
}

.mina-stadium-message-user .mina-stadium-message-meta {
    justify-content: flex-end;
}

.mina-stadium-avatar {
    width: 30px;
    height: 30px;
    background: #667985;
    flex: 0 0 30px;
    font-size: 12px;
}

.mina-stadium-message-meta strong {
    color: var(--stadium-ink);
    font-size: 11px;
}

.mina-stadium-message-meta small {
    font-size: 10px;
}

.mina-stadium-message-body {
    background: var(--stadium-card);
    border: 1px solid var(--stadium-line);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
    color: var(--stadium-ink);
    display: block;
    font-size: 1rem;
    line-height: 1.5;
    justify-self: start;
    max-width: min(100%, 62ch);
    min-width: 0;
    padding: 8px 10px;
    width: fit-content;
    white-space: pre-wrap;
    word-break: break-word;
}

.mina-stadium-message-user .mina-stadium-message-body {
    background: var(--stadium-card);
    border-color: var(--stadium-line);
    color: var(--stadium-ink);
    justify-self: end;
    text-align: right;
}

.mina-stadium[data-theme="light"] .mina-stadium-message-user .mina-stadium-message-body {
    background: var(--stadium-card);
    border-color: var(--stadium-line);
    color: var(--stadium-ink);
}

.mina-stadium-message-mina .mina-stadium-message-body {
    background: linear-gradient(135deg, #112d2c, #172033);
    border-color: rgba(34, 199, 185, 0.35);
    color: #fff;
    border-left: 4px solid var(--stadium-mina);
}

.mina-stadium-message-mike .mina-stadium-message-body {
    background: linear-gradient(135deg, #112d2c, #172033);
    border-color: rgba(34, 199, 185, 0.35);
    color: #fff;
    border-left: 4px solid var(--stadium-mike);
}

.mina-stadium-message-michael .mina-stadium-message-body {
    background: linear-gradient(135deg, #112d2c, #172033);
    border-color: rgba(34, 199, 185, 0.35);
    color: #fff;
    border-left: 4px solid var(--stadium-michael);
}

.mina-stadium-message-hana .mina-stadium-message-body {
    background: linear-gradient(135deg, #112d2c, #172033);
    border-color: rgba(34, 199, 185, 0.35);
    color: #fff;
    border-left: 4px solid var(--stadium-hana);
}

.mina-stadium[data-theme="light"] .mina-stadium-message-mina .mina-stadium-message-body {
    background: linear-gradient(135deg, #ffffff, #faf8f4);
    border-color: rgba(200, 170, 120, 0.35);
    color: #2f2416;
    border-left: 4px solid var(--stadium-mina);
}

.mina-stadium[data-theme="light"] .mina-stadium-message-mike .mina-stadium-message-body {
    background: linear-gradient(135deg, #ffffff, #faf8f4);
    border-color: rgba(200, 170, 120, 0.35);
    color: #2f2416;
    border-left: 4px solid var(--stadium-mike);
}

.mina-stadium[data-theme="light"] .mina-stadium-message-michael .mina-stadium-message-body {
    background: linear-gradient(135deg, #ffffff, #faf8f4);
    border-color: rgba(200, 170, 120, 0.35);
    color: #2f2416;
    border-left: 4px solid var(--stadium-michael);
}

.mina-stadium[data-theme="light"] .mina-stadium-message-hana .mina-stadium-message-body {
    background: linear-gradient(135deg, #ffffff, #faf8f4);
    border-color: rgba(200, 170, 120, 0.35);
    color: #2f2416;
    border-left: 4px solid var(--stadium-hana);
}

.mina-stadium-message-system .mina-stadium-message-body {
    background: var(--stadium-soft);
    color: var(--stadium-muted);
    font-size: 0.8rem;
    justify-self: stretch;
    max-width: none;
    width: 100%;
}

.mina-stadium-message-system {
    max-width: none;
    width: 100%;
}

.mina-stadium-message.is-error .mina-stadium-message-body {
    border-color: #ffd1cc;
    color: var(--stadium-danger);
}

.mina-stadium-message.is-pending .mina-stadium-message-body {
    animation: mina-stadium-pulse 1.1s ease-in-out infinite alternate;
}

.mina-stadium-composer {
    flex: 0 0 auto;
    align-items: end;
    background: var(--stadium-card);
    border-top: 1px solid var(--stadium-line);
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 46px;
    padding: 8px 14px 12px;
    z-index: 2;
}

.mina-stadium[data-theme="light"] .mina-stadium-composer {
    background: var(--stadium-bg);
}

.mina-stadium-composer textarea {
    background: var(--stadium-card);
    border: 1px solid var(--stadium-line);
    border-radius: 8px;
    color: var(--stadium-ink);
    min-height: 40px;
    max-height: 132px;
    outline: none;
    padding: 9px 11px;
    resize: none;
    width: 100%;
}

.mina-stadium-composer textarea::placeholder {
    color: var(--stadium-muted);
}

.mina-stadium-composer textarea:focus {
    border-color: rgba(13, 148, 136, 0.8);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.mina-stadium-composer button[type="submit"] {
    background: var(--stadium-mina);
    border: 0;
    border-radius: 8px;
    color: #fff;
    display: grid;
    font-size: 24px;
    height: 40px;
    place-items: center;
    width: 46px;
}

.mina-stadium-composer button:disabled,
.mina-stadium-composer textarea:disabled {
    cursor: wait;
    opacity: 0.7;
}

.mina-stadium-status-box {
    background: var(--stadium-soft);
    border-radius: 8px;
    color: var(--stadium-muted);
    line-height: 1.45;
    min-height: 64px;
    padding: 10px;
}

.mina-stadium-field {
    display: grid;
    gap: 6px;
    margin-top: 10px;
}

.mina-stadium-field[hidden] {
    display: none;
}

.mina-stadium-field span {
    color: var(--stadium-muted);
    font-size: 12px;
    font-weight: 600;
}

.mina-stadium-field select {
    border: 1px solid var(--stadium-line);
    border-radius: 8px;
    background: var(--stadium-card);
    color: var(--stadium-ink);
    min-height: 36px;
    padding: 0 10px;
    width: 100%;
}

.mina-stadium-game-flow-summary {
    margin-top: 10px;
    min-height: 74px;
}

.mina-stadium-game-actions {
    margin-top: 10px;
}

.mina-stadium-score-actions button:hover,
.mina-stadium-ghost:hover {
    border-color: var(--stadium-mina);
    box-shadow: 0 0 0 3px var(--stadium-glow);
}

.mina-stadium-score-actions {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mina-stadium-score-actions button {
    min-height: 34px;
}

@keyframes mina-stadium-pulse {
    from {
        opacity: 0.64;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 1120px) {
    .mina-stadium-grid {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .mina-stadium-sidepanel {
        border-left: 0;
        border-top: 1px solid var(--stadium-line);
        display: grid;
        gap: 14px;
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mina-stadium-sidepanel .mina-stadium-panel + .mina-stadium-panel {
        margin-top: 0;
    }
}

@media (max-width: 760px) {
    .mina-ai-stadium-page {
        overflow-y: auto;
    }

    .mina-ai-stadium-page main,
    .mina-ai-stadium-page .wp-site-blocks {
        overflow-x: clip;
        overflow-y: visible;
    }

    .mina-stadium {
        height: auto;
        min-height: 0;
        width: 100%;
    }

    .mina-stadium-shell {
        border-left: 0;
        border-right: 0;
        display: block;
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .mina-stadium-world {
        min-height: calc(100svh - var(--stadium-page-offset));
    }

    .mina-stadium-world-stage {
        height: auto;
        width: 100%;
    }

    .mina-stadium-world-popup {
        max-width: 72%;
    }

    .mina-stadium-world-cta {
        bottom: 18px;
        width: min(100%, 340px);
    }

    .mina-stadium-world-pad {
        right: var(--world-pad-right, 14px);
        width: clamp(92px, 24vw, 118px);
    }

    .mina-stadium-topbar {
        align-items: center;
        grid-template-columns: 1fr;
    }

    .mina-stadium-topbar-spacer {
        display: none;
    }

    .mina-stadium-brand,
    .mina-stadium-session {
        justify-self: center;
    }

    .mina-stadium-brand {
        flex-wrap: wrap;
        justify-content: center;
    }

    .mina-stadium-session {
        justify-content: center;
    }

    .mina-stadium-grid {
        display: block;
        grid-template-columns: 1fr;
        min-height: 0;
        overflow: visible;
    }

    .mina-stadium-sidebar,
    .mina-stadium-sidepanel {
        border: 0;
        border-bottom: 1px solid var(--stadium-line);
        display: grid;
        gap: 8px;
        grid-template-columns: 1fr;
        padding: 8px;
    }

    .mina-stadium-score-actions {
        grid-template-columns: 1fr;
    }

    .mina-stadium-sidepanel .mina-stadium-panel + .mina-stadium-panel,
    .mina-stadium-sidebar .mina-stadium-panel + .mina-stadium-panel {
        margin-top: 0;
    }

    .mina-stadium-chat {
        display: flex;
        flex-direction: column;
        min-height: 72svh;
        overflow: visible;
    }

    .mina-stadium-feed {
        flex: 1 1 auto;
        min-height: 220px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 12px;
    }

    .mina-stadium-message {
        max-width: 100%;
    }

    .mina-stadium-composer {
        padding: 8px 8px 10px;
    }
}

@media (max-width: 760px) and (orientation: portrait) {
    .mina-stadium-world {
        height: calc(100svh - var(--stadium-page-offset));
        min-height: calc(100svh - var(--stadium-page-offset));
    }

    .mina-stadium-world-stage {
        aspect-ratio: auto;
        height: 100%;
        width: 100%;
    }

    .mina-stadium-world-map {
        aspect-ratio: 1678 / 937;
        height: 100%;
        max-width: none;
        width: auto;
    }

    .mina-stadium-world-popup {
        max-width: min(280px, 72vw);
    }
}
