.go-play-main {
    width: min(80rem, calc(100% - 5rem));
    margin: 0 auto;
    padding: 3.75rem 0 6rem;
}

.go-play-header {
    width: min(58rem, 100%);
    margin: 0 auto 2rem;
    text-align: center;
}

.go-play-header.visually-hidden {
    width: 1px;
    max-width: 1px;
}

.go-play-header__eyebrow,
.go-play-help__eyebrow,
.go-online__match-kicker,
.go-online__rooms-head p {
    margin: 0 0 0.55rem;
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.18em;
}

.go-play-header h1 {
    max-width: none;
    margin: 0;
    color: var(--ink);
    font-size: clamp(2.2rem, 4.7vw, 3.5rem);
    line-height: 1.08;
    letter-spacing: -0.065em;
}

.go-play-header > p:last-child {
    max-width: 43rem;
    margin: 1rem auto 0;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.75;
}

.go-game {
    width: min(58rem, 100%);
    max-width: 100%;
    margin: 0 auto;
    border: 1px solid var(--line);
    border-top: 4px solid var(--accent);
    background: #fff;
    box-shadow: 0 24px 70px rgba(19, 42, 35, 0.11);
    box-sizing: border-box;
    overflow: hidden;
}

.go-account {
    width: min(58rem, 100%);
    margin: 0 auto 1.5rem;
    border: 1px solid var(--line);
    border-top: 3px solid var(--ink);
    background: #fff;
}

.go-account__notice,
.go-account__errors {
    margin: 0;
    padding: 0.9rem 1.2rem;
    color: #174f40;
    background: #edf8f3;
    font-weight: 800;
}

.go-account__errors {
    color: #8b2924;
    background: #fff1f0;
}

.go-account__errors p { margin: 0.2rem 0; }
.go-account__intro { padding: 1.4rem 1.5rem 0; }
.go-account__eyebrow { margin: 0 0 0.4rem; color: var(--accent); font-size: 0.73rem; font-weight: 900; letter-spacing: 0.16em; }
.go-account h2 { margin: 0; color: var(--ink); font-size: 1.45rem; letter-spacing: -0.04em; }
.go-account__intro > p:last-child,
.go-account__member > div:first-child > p:last-child { margin: 0.55rem 0 0; color: var(--muted); font-size: 0.94rem; line-height: 1.7; }
.go-account__forms { display: grid; padding: 1.25rem 1.5rem 1.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.go-account__forms--single { grid-template-columns: minmax(0, 32rem); justify-content: center; }
.go-account__forms form { display: grid; padding: 1.15rem; border: 1px solid var(--line); gap: 0.7rem; }
.go-account__forms form > strong { margin-bottom: 0.25rem; color: var(--ink); font-size: 1.08rem; }
.go-account__forms label { display: grid; color: #3f4945; font-size: 0.82rem; font-weight: 800; gap: 0.3rem; }
.go-account__forms input:not([type="checkbox"]) { width: 100%; min-height: 2.75rem; padding: 0.65rem 0.7rem; border: 1px solid #bfc4bf; box-sizing: border-box; }
.go-account__forms .go-account__remember { display: flex; align-items: center; grid-template-columns: auto 1fr; }
.go-account__forms .go-game__button { display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.go-account__switch { margin: 0.45rem 0 -0.15rem; color: var(--muted); font-size: 0.82rem; text-align: center; }
.go-social-auth { display: grid; gap: 0.85rem; }
.go-social-auth__buttons { display: grid; gap: 0.55rem; }
.go-social-auth__button {
    position: relative;
    display: grid;
    min-height: 3rem;
    padding: 0.62rem 4.5rem 0.62rem 3.5rem;
    border: 1px solid #d4d8d5;
    color: #16201c;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    justify-items: center;
    font-size: 0.92rem;
    font-weight: 850;
    text-decoration: none;
    box-sizing: border-box;
}
.go-social-auth__button:hover { border-color: #7a837f; }
.go-social-auth__button--google { background: #fff; }
.go-social-auth__button--naver { border-color: #03c75a; background: #03c75a; color: #fff; }
.go-social-auth__button--kakao { border-color: #fee500; background: #fee500; color: #191919; }
.go-social-auth__icon {
    position: absolute;
    left: 1rem;
    display: inline-flex;
    width: 1.7rem;
    height: 1.7rem;
    align-items: center;
    justify-content: center;
}
.go-social-auth__icon svg { display: block; width: 1.55rem; height: 1.55rem; }
.go-social-auth__button--naver .go-social-auth__icon svg { width: 1.42rem; height: 1.42rem; }
.go-social-auth__button--kakao .go-social-auth__icon svg { width: 1.62rem; height: 1.62rem; }
.go-social-auth__button.is-disabled { cursor: not-allowed; filter: grayscale(0.65); opacity: 0.58; }
.go-social-auth__button small { position: absolute; right: 0.85rem; font-size: 0.68rem; font-weight: 800; opacity: 0.75; }
.go-social-auth__divider { display: flex; align-items: center; color: #7a827f; font-size: 0.75rem; gap: 0.7rem; }
.go-social-auth__divider::before,
.go-social-auth__divider::after { height: 1px; background: #dfe3e0; content: ''; flex: 1; }
.go-social-auth__divider span { white-space: nowrap; }
.go-social-registration__provider {
    display: flex;
    min-height: 3rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid #d4d8d5;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 850;
}
.go-social-registration__logo {
    display: inline-flex;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 0.3rem;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}
.go-social-registration__logo svg { display: block; width: 1.35rem; height: 1.35rem; }
.go-social-registration__provider--google .go-social-registration__logo { border: 1px solid #d8dcda; background: #fff; }
.go-social-registration__provider--naver { border-color: #03c75a; }
.go-social-registration__provider--naver .go-social-registration__logo { background: #03c75a; }
.go-social-registration__provider--kakao { border-color: #fee500; }
.go-social-registration__provider--kakao .go-social-registration__logo { background: #fee500; }
.go-social-registration__copy { margin: 0; color: var(--muted); font-size: 0.84rem; line-height: 1.65; }
.go-social-required {
    display: grid;
    max-width: 32rem;
    margin-inline: auto;
    padding: 2.2rem 1.5rem;
    text-align: center;
    justify-items: center;
    gap: 0.8rem;
}
.go-social-required__mark {
    display: grid;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    place-items: center;
    font-size: 1.55rem;
    font-weight: 950;
}
.go-social-required > strong { color: var(--ink); font-size: 1.28rem; }
.go-social-required > p { margin: 0; color: #3f4945; line-height: 1.7; }
.go-social-required .go-social-required__moving { color: var(--muted); font-size: 0.82rem; }
.go-social-required .go-game__button { display: inline-flex; min-width: 13rem; margin-top: 0.3rem; align-items: center; justify-content: center; }
.go-account__member { display: grid; padding: 1.35rem 1.5rem; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1.2rem; }
.go-account__score { display: flex; gap: 0.65rem; }
.go-account__score span { min-width: 4.5rem; padding: 0.65rem; background: #f3f5f2; text-align: center; }
.go-account__score strong { display: block; color: var(--ink); font-size: 1.25rem; }
.go-account__actions { display: flex; grid-column: 1 / -1; gap: 0.6rem; }

.go-profile__heading { padding: 1.5rem 1.5rem 1.1rem; border-bottom: 1px solid var(--line); }
.go-profile__heading h1 { margin: 0; color: var(--ink); font-size: 1.8rem; letter-spacing: -0.05em; }
.go-profile__heading p { margin: 0.45rem 0 0; color: var(--muted); }
.go-profile__identity { display: grid; margin: 0; padding: 1.15rem 1.5rem; background: #f7f8f5; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.go-profile__identity div { min-width: 0; }
.go-profile__identity dt { color: var(--muted); font-size: 0.75rem; font-weight: 850; }
.go-profile__identity dd { overflow-wrap: anywhere; margin: 0.25rem 0 0; color: var(--ink); font-size: 0.96rem; font-weight: 900; }
.go-profile__forms { display: grid; padding: 1.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.go-profile__forms form { display: flex; min-width: 0; padding: 1.2rem; border: 1px solid var(--line); flex-direction: column; gap: 0.7rem; }
.go-profile__forms form > strong { color: var(--ink); font-size: 1.1rem; }
.go-profile__forms form > p { min-height: 2.8rem; margin: 0; color: var(--muted); font-size: 0.8rem; line-height: 1.7; }
.go-profile__forms label { display: grid; color: #3f4945; font-size: 0.82rem; font-weight: 800; gap: 0.3rem; }
.go-profile__forms input { width: 100%; min-height: 2.75rem; padding: 0.65rem 0.7rem; border: 1px solid #bfc4bf; box-sizing: border-box; }
.go-profile__forms input:disabled { color: #6d746f; background: #eff1ee; cursor: not-allowed; }
.go-profile__forms .go-game__button { display: inline-flex; margin-top: auto; align-items: center; justify-content: center; }
.go-profile__forms .go-game__button:disabled { cursor: not-allowed; opacity: 0.58; }
.go-profile__forms .go-profile__availability { min-height: 0; color: #8a5b05; font-weight: 850; }
.go-profile__actions { display: flex; padding: 0 1.5rem 1.5rem; flex-wrap: wrap; gap: 0.6rem; }
.go-profile__actions .go-game__button { display: inline-flex; align-items: center; justify-content: center; }

.go-account-page {
    width: min(58rem, calc(100% - 5rem));
    margin: 0 auto;
    padding: 3.75rem 0 6rem;
}

.go-account-page__header {
    max-width: 43rem;
    margin: 0 auto 1.5rem;
    text-align: center;
}

.go-account-page__header h1 { margin: 0; color: var(--ink); font-size: clamp(2.1rem, 4vw, 3rem); letter-spacing: -0.055em; }
.go-account-page__header > p:last-child { margin: 0.8rem 0 0; color: var(--muted); line-height: 1.75; }
.go-account-page__back { display: block; width: fit-content; margin: 1.25rem auto 0; color: var(--accent-dark); font-weight: 850; }

.go-game__member-name { color: var(--ink); }
.go-game__record-link { margin-right: auto; color: var(--accent-dark); font-weight: 900; }

.go-member-prompt[hidden] { display: none; }
.go-member-prompt { position: fixed; z-index: 1200; inset: 0; display: grid; place-items: center; padding: 1.25rem; }
.go-member-prompt__backdrop { position: absolute; inset: 0; background: rgba(7, 17, 14, 0.72); }
.go-member-prompt__dialog { position: relative; width: min(31rem, 100%); padding: 2rem; border-top: 4px solid var(--accent); background: #fff; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28); }
.go-member-prompt__dialog h3 { margin: 0; color: var(--ink); font-size: 1.65rem; letter-spacing: -0.04em; }
.go-member-prompt__dialog > p:not(.go-account__eyebrow) { margin: 0.8rem 0 0; color: var(--muted); line-height: 1.75; }
.go-member-prompt__actions { display: grid; margin-top: 1.35rem; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
.go-member-prompt__actions .go-game__button { display: inline-flex; align-items: center; justify-content: center; text-align: center; }
body.has-go-member-prompt { overflow: hidden; }

.go-game__preferences {
    display: flex;
    min-height: 3.2rem;
    padding: 0.55rem 1rem;
    border-bottom: 1px solid var(--line);
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.65rem;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.go-sound-toggle { min-height: 2.2rem; padding: 0.35rem 0.7rem; border: 1px solid #aeb5b0; color: var(--ink); background: #fff; font-weight: 850; cursor: pointer; }
.go-sound-toggle:not(.is-muted) { border-color: var(--accent); color: var(--accent-dark); background: #edf8f3; }
.go-sound-toggle [data-sound-icon] { margin-right: 0.25rem; }

.go-game button,
.go-game input,
.go-game select {
    font: inherit;
}

.go-game button {
    touch-action: manipulation;
}

.go-game button:disabled { cursor: not-allowed; opacity: 0.52; }

.go-game__notice {
    margin: 1.25rem;
    padding: 1rem;
    border: 1px solid #d99;
    color: #7e2525;
    background: #fff4f4;
}

.go-game__tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-bottom: 1px solid var(--line);
}

.go-game__tab {
    min-height: 4rem;
    padding: 0.9rem 1rem;
    border: 0;
    border-right: 1px solid var(--line);
    color: #69716d;
    background: #f4f5f2;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
}

.go-game__tab:last-child {
    border-right: 0;
}

.go-game__tab.is-active {
    position: relative;
    color: #fff;
    background: var(--accent-dark);
}

.go-game__tab:focus-visible,
.go-game__button:focus-visible,
.go-game__text-button:focus-visible,
.go-game input:focus-visible,
.go-game select:focus-visible,
.go-game__board:focus-visible {
    outline: 3px solid #df9f35;
    outline-offset: 3px;
}

.go-game__panel {
    padding: 1.5rem;
}

.go-game__panel[hidden] {
    display: none;
}

.go-game__toolbar,
.go-online__profile,
.go-online__create,
.go-online__actions {
    display: flex;
    align-items: end;
    gap: 0.8rem;
}

.go-game__toolbar {
    margin-bottom: 0.75rem;
}

.go-game__field {
    display: grid;
    min-width: 9rem;
    gap: 0.42rem;
}

.go-game__field--grow {
    min-width: 0;
    flex: 1 1 18rem;
}

.go-game__field--clock { min-width: 13.5rem; }

.go-game__field > span {
    color: #3f4945;
    font-size: 0.88rem;
    font-weight: 800;
}

.go-game__field input,
.go-game__field select {
    width: 100%;
    min-height: 3rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid #bfc4bf;
    border-radius: 0;
    color: var(--ink);
    background: #fff;
    box-sizing: border-box;
}

.go-game__field input[readonly] {
    color: var(--ink);
    border-color: #d5dad6;
    background: #f1f3f0;
    cursor: default;
}

.go-online__profile-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.go-game__turn {
    min-width: 0;
    margin: 0 auto 0 0;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 900;
}

.go-game__button {
    min-height: 3rem;
    padding: 0.7rem 1.15rem;
    border: 1px solid var(--accent-dark);
    border-radius: 0;
    color: #fff;
    background: var(--accent-dark);
    font-size: 0.92rem;
    font-weight: 850;
    white-space: nowrap;
    cursor: pointer;
}

.go-game__button:hover {
    background: #0f312a;
}

.go-game__button--light {
    color: var(--ink);
    border-color: #aeb5b0;
    background: #fff;
}

.go-game__button--light:hover {
    background: #f0f2ef;
}

.go-game__button--danger {
    border-color: #963b36;
    background: #963b36;
}

.go-game__button:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.go-game__board-help {
    margin: 0 0 0.85rem;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.55;
}

.go-game__board-frame {
    position: relative;
    width: 100%;
    padding: clamp(0.32rem, 0.8vw, 0.58rem);
    border: 1px solid #744924;
    border-right-width: 4px;
    border-bottom-width: 13px;
    background: #956236;
    box-shadow:
        0 18px 38px rgba(48, 27, 10, 0.24),
        0 4px 9px rgba(48, 27, 10, 0.16),
        inset 0 2px rgba(255, 231, 179, 0.5),
        inset -3px 0 rgba(75, 39, 13, 0.18),
        inset 0 -4px rgba(75, 39, 13, 0.24);
    box-sizing: border-box;
}

.go-mobile-board-stage {
    display: contents;
}

.go-mobile-board-stage__close,
.go-mobile-board-stage__sound,
.go-mobile-board-stage__topbar,
.go-mobile-board-clocks,
.go-mobile-room-chat,
.go-mobile-board-actions,
.go-mobile-board-open {
    display: none;
}

.go-clocks {
    display: grid;
    margin: 0.8rem 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.go-clock { display: grid; padding: 0.75rem 0.9rem; border: 1px solid var(--line); background: #f4f5f2; grid-template-columns: 1fr auto; align-items: center; gap: 0.1rem 0.75rem; }
.go-clock span { color: var(--ink); font-size: 0.85rem; font-weight: 900; }
.go-clock strong { color: var(--ink); font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.go-clock small { color: var(--muted); font-size: 0.75rem; grid-column: 1 / -1; }
.go-clock.is-active { border-color: var(--accent); background: #edf8f3; box-shadow: inset 4px 0 var(--accent); }
.go-clock.is-expired { border-color: #963b36; background: #fff1f0; }
.go-game__match-actions { display: flex; margin: 0.7rem 0; justify-content: flex-end; gap: 0.55rem; }

.go-game__board {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    border: 0;
    background: #c28b50;
    box-shadow: none;
    cursor: crosshair;
    touch-action: manipulation;
    box-sizing: border-box;
}

.go-online__profile {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--line);
}

.go-online__create {
    display: grid;
    margin-top: 1.25rem;
    padding: 1.15rem;
    border: 1px solid var(--line);
    background: #f5f6f3;
    grid-template-columns: minmax(0, 1fr) 7.5rem 9rem 9rem;
    align-items: end;
    gap: 0.8rem;
}

.go-online__create .go-game__field { min-width: 0; }
.go-online__create > .go-game__button { width: 100%; grid-column: 1 / -1; }

.go-online__match.is-spectating .go-game__board { cursor: default; }

.go-online__invite {
    display: grid;
    margin-bottom: 1.1rem;
    padding: 1.1rem 1.15rem;
    border: 1px solid #d6bd78;
    border-left: 5px solid #c59827;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    background: #fffaf0;
}

.go-online__invite[hidden],
.go-opponent-arrival[hidden] {
    display: none;
}

.go-online__invite span,
.go-online__invite strong,
.go-online__invite small {
    display: block;
}

.go-online__invite span {
    color: #946b11;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.go-online__invite strong {
    margin-top: 0.25rem;
    color: var(--ink);
    font-size: 1.15rem;
}

.go-online__invite small {
    margin-top: 0.3rem;
    color: var(--muted);
}

.go-online__rooms-head {
    display: flex;
    margin-top: 1.7rem;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.go-online__rooms-head h3,
.go-online__match-head h3 {
    margin: 0;
    color: var(--ink);
    font-size: 1.35rem;
    letter-spacing: -0.04em;
}

.go-game__text-button {
    padding: 0.25rem 0;
    border: 0;
    border-bottom: 1px solid currentColor;
    color: var(--accent);
    background: transparent;
    font-size: 0.88rem;
    font-weight: 850;
    cursor: pointer;
}

.go-game__status {
    min-height: 1.5em;
    margin: 0.85rem 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.go-game__status.is-error {
    color: #a22f2f;
    font-weight: 800;
}

.go-online__rooms {
    border-top: 2px solid var(--ink);
}

.go-online__room,
.go-online__empty {
    display: flex;
    min-height: 4.6rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.go-online__empty {
    color: var(--muted);
    justify-content: center;
}

.go-online__room-info {
    min-width: 0;
}

.go-online__room-info strong,
.go-online__room-info span {
    display: block;
}

.go-online__room-info strong {
    overflow: hidden;
    color: var(--ink);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.go-online__room-info span {
    margin-top: 0.25rem;
    color: var(--muted);
    font-size: 0.82rem;
}

.go-online__room--auto {
    margin-bottom: 0;
    padding-inline: 0.8rem;
    border-top: 2px solid var(--ink);
    background: #fbfaf5;
}

.go-online__room--auto + .go-online__rooms {
    border-top: 0;
}

.go-online__room--auto .go-online__room-info {
    flex: 1 1 auto;
}

.go-online__ai-rank {
    display: grid;
    min-width: 6.5rem;
    gap: 0.2rem;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 800;
}

.go-online__ai-rank select {
    min-height: 2.6rem;
    padding: 0 2rem 0 0.7rem;
    border: 1px solid var(--line);
    border-radius: 0.45rem;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 0.9rem;
}

.go-online__room .go-game__button {
    min-height: 2.6rem;
    flex: 0 0 auto;
}

.go-online__match-head {
    display: flex;
    margin-bottom: 1rem;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
}

.go-online__match-head > div > p:last-child {
    margin: 0.45rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.go-online__match-head .go-game__turn {
    margin: 0;
    text-align: right;
}

.go-opponent-arrival {
    display: flex;
    margin: 0 0 0.8rem;
    padding: 0.85rem 1rem;
    border: 1px solid #bf963e;
    border-left: 5px solid #a21822;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #4f3211;
    background: #fff8e8;
    box-shadow: 0 8px 20px rgba(87, 54, 13, 0.1);
}
.go-opponent-arrival strong { color: #8d151d; font-size: 1rem; }
.go-opponent-arrival span { font-size: 0.86rem; }
.go-online__match-status { margin: -0.25rem 0 0.8rem; }

.go-online__actions {
    margin-bottom: 0.8rem;
    justify-content: flex-end;
}

.go-online__actions [hidden] {
    display: none;
}

.go-room-chat {
    margin: 0.8rem 0 1rem;
    border: 1px solid var(--line);
    background: #fbfbf8;
}
.go-room-chat__head {
    display: flex;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--line);
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}
.go-room-chat__head span { color: var(--accent); font-size: 0.68rem; font-weight: 900; letter-spacing: 0.14em; }
.go-room-chat__head h4 { margin: 0.18rem 0 0; color: var(--ink); font-size: 1.05rem; }
.go-room-chat__head small { color: var(--muted); font-size: 0.72rem; }
.go-room-chat__head-actions { display: flex; align-items: center; justify-content: flex-end; gap: 0.65rem; }
.go-room-chat__disable { min-height: 2rem; padding: 0.32rem 0.58rem; border: 1px solid #b65d57; color: #8d2f2a; background: #fff; font-size: 0.72rem; font-weight: 850; cursor: pointer; }
.go-room-chat__log {
    display: grid;
    min-height: 7.5rem;
    max-height: 15rem;
    padding: 0.8rem 1rem;
    align-content: start;
    gap: 0.55rem;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.go-room-chat__empty { margin: auto; color: var(--muted); font-size: 0.85rem; text-align: center; }
.go-room-chat__message { display: grid; max-width: min(82%, 34rem); justify-self: start; gap: 0.18rem; }
.go-room-chat__message.is-mine { justify-self: end; text-align: right; }
.go-room-chat__meta { display: flex; align-items: center; gap: 0.4rem; color: var(--muted); font-size: 0.7rem; }
.go-room-chat__message.is-mine .go-room-chat__meta { justify-content: flex-end; }
.go-room-chat__stone { width: 0.62rem; height: 0.62rem; border: 1px solid #777; border-radius: 50%; background: #fff; box-sizing: border-box; }
.go-room-chat__stone.is-black { border-color: #111; background: #111; }
.go-room-chat__bubble { margin: 0; padding: 0.58rem 0.72rem; color: #29312e; background: #eef0ec; font-size: 0.86rem; line-height: 1.55; text-align: left; overflow-wrap: anywhere; }
.go-room-chat__message.is-mine .go-room-chat__bubble { color: #fff; background: var(--accent-dark); }
.go-room-chat__form { display: grid; padding: 0.75rem; border-top: 1px solid var(--line); grid-template-columns: minmax(0, 1fr) auto; gap: 0.55rem; }
.go-room-chat__form input { min-width: 0; min-height: 3rem; padding: 0.65rem 0.8rem; border: 1px solid #bfc4bf; color: var(--ink); background: #fff; box-sizing: border-box; }
.go-room-chat__feedback { min-height: 1.2em; margin: -0.3rem 0 0.55rem; padding: 0 0.8rem; color: #a22f2f; font-size: 0.76rem; font-weight: 800; }

.go-play-help {
    width: min(58rem, 100%);
    margin: 4rem auto 0;
    padding-top: 2rem;
    border-top: 3px solid var(--ink);
}

.go-play-help h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    letter-spacing: -0.055em;
}

.go-play-help__grid {
    display: grid;
    margin-top: 1.4rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line);
}

.go-records { width: min(64rem, calc(100% - 3rem)); margin: 0 auto; padding: 3.5rem 0 6rem; }
.go-records__header { padding-bottom: 1.5rem; border-bottom: 3px solid var(--ink); }
.go-records__header h1 { margin: 0; color: var(--ink); font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.06em; }
.go-records__header p:not(.go-play-header__eyebrow) { margin: 0.7rem 0; color: var(--muted); }
.go-records__header a { color: var(--accent); font-weight: 850; }
.go-records__summary { display: grid; margin: 1.4rem 0 2.5rem; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); }
.go-records__summary div { padding: 1.15rem; border-right: 1px solid var(--line); text-align: center; }
.go-records__summary div:last-child { border-right: 0; }
.go-records__summary strong { display: block; color: var(--ink); font-size: 1.7rem; }
.go-records__summary span { color: var(--muted); font-size: 0.82rem; }
.go-records__section { margin-top: 2.5rem; }
.go-records__section h2 { margin: 0 0 1rem; color: var(--ink); font-size: 1.65rem; letter-spacing: -0.04em; }
.go-opponent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.65rem; }
.go-opponent-grid article { padding: 1rem; border: 1px solid var(--line); }
.go-opponent-grid strong,
.go-opponent-grid span { display: block; }
.go-opponent-grid span { margin-top: 0.35rem; color: var(--muted); font-size: 0.85rem; }
.go-record-list { border-top: 2px solid var(--ink); }
.go-record-card { display: grid; padding: 1rem 0; border-bottom: 1px solid var(--line); grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 1rem; }
.go-record-card__result { display: inline-grid; width: 2rem; height: 2rem; margin-right: 0.5rem; place-items: center; color: #fff; background: #8d3232; font-weight: 900; }
.go-record-card__result.is-win { background: var(--accent-dark); }
.go-record-card p { margin: 0.35rem 0 0 2.7rem; color: var(--muted); font-size: 0.82rem; }
.go-record-card time { color: var(--muted); font-size: 0.8rem; }
.go-records__empty { padding: 2rem; border: 1px solid var(--line); color: var(--muted); text-align: center; }
.go-ranking { width: min(70rem, calc(100% - 5rem)); margin: 0 auto; padding: 3.75rem 0 6rem; }
.go-ranking__header { display: grid; padding-bottom: 1.75rem; border-bottom: 3px solid var(--ink); grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2rem; }
.go-ranking__header h1 { margin: 0; color: var(--ink); font-size: clamp(2.1rem, 5vw, 3.3rem); letter-spacing: -0.065em; }
.go-ranking__header > div:first-child > p:last-child { max-width: 43rem; margin: 0.8rem 0 0; color: var(--muted); line-height: 1.75; }
.go-ranking__actions { display: flex; gap: 0.55rem; }
.go-ranking__actions .go-game__button { display: inline-flex; align-items: center; justify-content: center; }
.go-ranking__rules { display: grid; margin: 1.25rem 0 2.75rem; padding: 1.1rem 1.25rem; border: 1px solid var(--line); background: #f8f8f5; grid-template-columns: repeat(3, auto) minmax(0, 1fr); align-items: center; gap: 1.25rem; }
.go-ranking__rules div { display: flex; align-items: baseline; gap: 0.35rem; white-space: nowrap; }
.go-ranking__rules strong { color: var(--ink); font-size: 0.82rem; }
.go-ranking__rules span { color: var(--accent); font-size: 1.05rem; font-weight: 900; }
.go-ranking__rules p { margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.65; text-align: right; }
.go-ranking__title-row { display: flex; margin-bottom: 1rem; align-items: end; justify-content: space-between; gap: 1rem; }
.go-ranking__title-row p { margin: 0 0 0.25rem; color: var(--accent); font-size: 0.7rem; font-weight: 900; letter-spacing: 0.16em; }
.go-ranking__title-row h2 { margin: 0; color: var(--ink); font-size: 1.8rem; letter-spacing: -0.045em; }
.go-ranking__title-row > strong { color: var(--muted); font-size: 0.9rem; }
.go-ranking__columns,
.go-ranking__item { display: grid; grid-template-columns: 5rem minmax(10rem, 1fr) 7rem 13rem 7rem; align-items: center; }
.go-ranking__columns { min-height: 2.8rem; padding: 0 1rem; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.76rem; font-weight: 800; }
.go-ranking__columns span:not(:nth-child(2)) { text-align: center; }
.go-ranking__list { margin: 0; padding: 0; list-style: none; }
.go-ranking__item { min-height: 5.15rem; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); background: #fff; }
.go-ranking__item.is-podium { background: linear-gradient(90deg, rgba(189, 143, 53, 0.09), transparent 32%); }
.go-ranking__item.is-current { box-shadow: inset 4px 0 var(--accent); background-color: #f3f8f5; }
.go-ranking__rank { display: flex; color: var(--muted); align-items: baseline; justify-content: center; gap: 0.18rem; }
.go-ranking__rank strong { color: var(--ink); font-size: 1.45rem; }
.go-ranking__rank span { font-size: 0.72rem; }
.go-ranking__item.is-podium .go-ranking__rank strong { color: #a56e08; }
.go-ranking__member { display: flex; min-width: 0; align-items: center; gap: 0.5rem; }
.go-ranking__identity { display: block; min-width: 0; }
.go-ranking__identity strong { overflow: hidden; color: var(--ink); font-size: 1.02rem; text-overflow: ellipsis; white-space: nowrap; }
.go-ranking__metrics { display: contents; margin: 0; }
.go-ranking__metrics > div { text-align: center; }
.go-ranking__metrics dt { display: none; }
.go-ranking__metrics dd { margin: 0; color: #414844; font-size: 0.88rem; font-weight: 750; }
.go-ranking__metrics .go-ranking__score dd { color: var(--accent-dark); font-size: 1.05rem; font-weight: 950; }
.go-ranking__empty { padding: 3.5rem 1.25rem; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); text-align: center; }
.go-ranking__empty strong { color: var(--ink); font-size: 1.2rem; }
.go-ranking__empty p { margin: 0.7rem 0 1.25rem; color: var(--muted); }
.go-ranking__empty .go-game__button { display: inline-flex; }
.go-replay { width: min(44rem, 100%); margin: 1.5rem auto 0; }
.go-replay__meta { display: grid; margin-bottom: 0.75rem; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0.7rem; }
.go-replay__meta span:last-child { text-align: right; }
.go-replay__stone { display: inline-block; width: 1rem; height: 1rem; margin-right: 0.35rem; border-radius: 50%; vertical-align: -0.12rem; }
.go-replay__stone--black { background: #111; }
.go-replay__stone--white { border: 1px solid #999; background: #fff; }
.go-replay__status { margin: 1rem 0 0.5rem; color: var(--ink); font-weight: 900; text-align: center; }
.go-replay__range { width: 100%; accent-color: var(--accent); }
.go-replay__controls { display: grid; margin-top: 0.8rem; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; }

.go-play-help article {
    padding: 1.25rem 1.25rem 0 0;
    border-right: 1px solid var(--line);
}

.go-play-help article + article {
    padding-left: 1.25rem;
}

.go-play-help article:last-child {
    border-right: 0;
}

.go-play-help strong {
    color: var(--ink);
    font-size: 1.02rem;
}

.go-play-help article p {
    margin: 0.65rem 0 0;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.75;
}

@media (max-width: 720px) {
    .go-game__preferences { justify-content: center; }

    .go-account-page {
        width: auto;
        margin-inline: var(--mobile-gutter);
        padding: 2.5rem 0 5.5rem;
    }

    .go-account-page__header { text-align: left; }

    .go-play-main {
        width: auto;
        max-width: none;
        margin-inline: var(--mobile-gutter);
        padding: 1.5rem 0 5.5rem;
        overflow-x: visible;
    }

    .go-play-header {
        margin-bottom: 1.4rem;
        text-align: left;
    }

    .go-play-header h1 {
        font-size: clamp(2rem, 12vw, 2.75rem);
    }

    .go-play-header > p:last-child {
        margin-top: 0.8rem;
        font-size: 1rem;
    }

    .go-game__panel {
        min-width: 0;
        padding: 1rem;
    }

    .go-game {
        width: 100%;
        max-width: 100%;
        margin: 0;
        overflow: visible;
    }

    .go-game__board-frame {
        width: calc(100% + var(--mobile-gutter) + var(--mobile-gutter) + 2rem + 2px);
        max-width: none;
        margin-left: calc(0px - var(--mobile-gutter) - 1rem - 1px);
        padding: 0.035rem;
        border-right-width: 2px;
        border-bottom-width: 5px;
    }

    .go-game__board {
        max-width: 100%;
    }

    body.has-go-board-focus {
        overflow: hidden;
    }

    .go-online__match.is-before-start .go-game__board-help,
    .go-online__match.is-before-start .go-mobile-board-stage {
        display: none;
    }

    .go-mobile-board-stage.is-active {
        position: fixed;
        z-index: 3000;
        inset: 0;
        display: grid;
        width: 100%;
        height: 100dvh;
        padding: max(0.45rem, env(safe-area-inset-top)) max(0.45rem, env(safe-area-inset-right)) max(0.5rem, env(safe-area-inset-bottom)) max(0.45rem, env(safe-area-inset-left));
        overflow: hidden;
        background: #17130d;
        box-sizing: border-box;
        grid-template-rows: auto auto auto minmax(6.75rem, 1fr) auto;
        align-content: stretch;
        justify-items: center;
        gap: 0.4rem;
    }

    .go-mobile-board-stage.is-active .go-game__board-frame {
        grid-row: 3;
        width: min(100%, calc(100dvh - 17.5rem));
        max-width: 100%;
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
        align-self: start;
    }

    .go-mobile-board-stage.is-active .go-mobile-board-stage__topbar {
        display: flex;
        grid-row: 1;
        width: min(100%, 42rem);
        justify-content: flex-end;
        gap: 0.45rem;
    }

    .go-mobile-board-stage.is-active .go-mobile-board-stage__close,
    .go-mobile-board-stage.is-active .go-mobile-board-stage__sound {
        display: inline-flex;
        min-height: 2.5rem;
        padding: 0.45rem 0.75rem;
        border: 1px solid rgba(255, 255, 255, 0.72);
        color: #fff;
        background: rgba(16, 18, 17, 0.82);
        align-items: center;
        justify-content: center;
        font-size: 0.82rem;
        font-weight: 850;
        cursor: pointer;
    }

    .go-mobile-board-stage.is-active .go-mobile-board-stage__sound.is-muted {
        color: rgba(255, 255, 255, 0.66);
        background: rgba(16, 18, 17, 0.58);
    }

    .go-mobile-board-stage.is-active .go-mobile-board-clocks {
        display: grid;
        grid-row: 2;
        width: min(100%, 42rem);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.4rem;
    }

    .go-mobile-board-clocks > div {
        display: grid;
        min-width: 0;
        padding: 0.35rem 0.55rem;
        border: 1px solid rgba(255, 255, 255, 0.25);
        color: rgba(255, 255, 255, 0.82);
        background: rgba(255, 255, 255, 0.08);
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.1rem 0.4rem;
    }

    .go-mobile-board-clocks span {
        overflow: hidden;
        font-size: 0.72rem;
        font-weight: 800;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .go-mobile-board-clocks strong {
        color: #fff;
        font-size: 1rem;
        font-variant-numeric: tabular-nums;
    }

    .go-mobile-board-clocks small {
        color: rgba(255, 255, 255, 0.62);
        font-size: 0.62rem;
        grid-column: 1 / -1;
    }

    .go-mobile-board-clocks > div.is-active {
        border-color: #d9a85d;
        background: rgba(217, 168, 93, 0.2);
    }

    .go-mobile-board-stage.is-active .go-mobile-room-chat {
        position: relative;
        display: grid;
        grid-row: 4;
        width: min(100%, 42rem);
        min-height: 0;
        border: 1px solid rgba(255, 255, 255, 0.22);
        background: rgba(255, 255, 255, 0.07);
        grid-template-rows: auto minmax(0, 1fr) auto;
        overflow: hidden;
    }

    .go-mobile-board-stage.is-active .go-mobile-room-chat[hidden],
    .go-room-chat[hidden] {
        display: none;
    }

    .go-mobile-room-chat__head {
        display: flex;
        min-height: 2rem;
        padding: 0.28rem 0.4rem 0.28rem 0.55rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.16);
        color: #fff;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        box-sizing: border-box;
    }

    .go-mobile-room-chat__head strong {
        font-size: 0.75rem;
    }

    .go-mobile-room-chat__head button {
        min-height: 1.65rem;
        padding: 0.25rem 0.45rem;
        border: 1px solid rgba(255, 180, 173, 0.75);
        color: #ffccc7;
        background: transparent;
        font-size: 0.66rem;
        font-weight: 850;
    }

    .go-mobile-room-chat .go-room-chat__log {
        min-height: 0;
        max-height: none;
        padding: 0.45rem 0.55rem;
        gap: 0.35rem;
    }

    .go-mobile-room-chat .go-room-chat__empty,
    .go-mobile-room-chat .go-room-chat__meta {
        color: rgba(255, 255, 255, 0.66);
    }

    .go-mobile-room-chat .go-room-chat__bubble {
        padding: 0.42rem 0.58rem;
        font-size: 0.78rem;
        line-height: 1.4;
    }

    .go-mobile-room-chat__form {
        padding: 0.35rem;
        border-top-color: rgba(255, 255, 255, 0.2);
        gap: 0.35rem;
    }

    .go-mobile-room-chat__form input {
        min-height: 2.4rem;
        padding: 0.45rem 0.6rem;
        border: 0;
        font-size: 0.82rem;
    }

    .go-mobile-room-chat__form .go-game__button {
        min-height: 2.4rem;
        padding: 0.4rem 0.65rem;
        font-size: 0.76rem;
    }

    .go-mobile-room-chat__feedback {
        position: absolute;
        left: 0.55rem;
        bottom: 3.1rem;
        min-height: 0;
        margin: 0;
        padding: 0;
        color: #ffb4ad;
    }

    .go-mobile-board-stage.is-active .go-mobile-board-actions {
        display: grid;
        grid-row: 5;
        width: min(100%, 42rem);
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.4rem;
    }

    .go-mobile-board-actions [hidden] {
        display: none;
    }

    .go-mobile-board-actions .go-game__button {
        width: 100%;
        min-height: 2.65rem;
        padding: 0.5rem 0.35rem;
        font-size: 0.76rem;
    }

    .go-mobile-board-open:not([hidden]) {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .go-account__forms,
    .go-account__member {
        grid-template-columns: 1fr;
    }

    .go-account__forms,
    .go-account__intro,
    .go-account__member {
        padding-inline: 1rem;
    }

    .go-account__score {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .go-account__actions,
    .go-game__match-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .go-account__actions form,
    .go-account__actions .go-game__button {
        width: 100%;
    }

    .go-profile__identity,
    .go-profile__forms { grid-template-columns: 1fr; }
    .go-profile__heading,
    .go-profile__identity,
    .go-profile__forms { padding-inline: 1rem; }
    .go-profile__actions { display: grid; padding-inline: 1rem; grid-template-columns: 1fr; }
    .go-profile__actions form,
    .go-profile__actions .go-game__button { width: 100%; }

    .go-member-prompt__dialog { padding: 1.5rem; }
    .go-member-prompt__actions { grid-template-columns: 1fr; }

    .go-game__toolbar,
    .go-online__profile,
    .go-online__create,
    .go-online__actions,
    .go-online__match-head {
        align-items: stretch;
        flex-direction: column;
    }

    .go-online__invite {
        grid-template-columns: 1fr;
    }

    .go-online__create { grid-template-columns: 1fr; }

    .go-opponent-arrival,
    .go-room-chat__head { align-items: flex-start; flex-direction: column; gap: 0.35rem; }
    .go-room-chat__head-actions { width: 100%; justify-content: space-between; }
    .go-room-chat__message { max-width: 92%; }

    .go-online__invite .go-game__button {
        width: 100%;
    }

    .go-game__toolbar .go-game__turn {
        margin: 0.25rem 0;
    }

    .go-game__field,
    .go-game__field--grow {
        min-width: 0;
        flex-basis: auto;
    }

    .go-online__match-head .go-game__turn {
        text-align: left;
    }

    .go-game__button {
        width: 100%;
    }

    .go-online__room .go-game__button {
        width: auto;
    }

    .go-online__room--auto {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .go-online__room--auto .go-online__room-info {
        grid-column: 1 / -1;
    }

    .go-play-help {
        width: 100%;
        margin: 3rem 0 0;
    }

    .go-play-help__grid {
        display: block;
    }

    .go-play-help article,
    .go-play-help article + article {
        padding: 1rem 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .go-records {
        width: auto;
        margin-inline: var(--mobile-gutter);
        padding: 2.5rem 0 5.5rem;
    }

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

    .go-records__summary div:nth-child(2) { border-right: 0; }
    .go-records__summary div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
    .go-opponent-grid { grid-template-columns: 1fr; }
    .go-record-card { grid-template-columns: 1fr auto; }
    .go-record-card .go-game__button { grid-column: 1 / -1; }
    .go-replay__controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .go-ranking { width: auto; margin-inline: var(--mobile-gutter); padding: 2.5rem 0 5.5rem; }
    .go-ranking__header { grid-template-columns: 1fr; align-items: stretch; gap: 1.25rem; }
    .go-ranking__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .go-ranking__rules { grid-template-columns: repeat(3, 1fr); gap: 0.65rem; }
    .go-ranking__rules div { display: grid; text-align: center; gap: 0.1rem; }
    .go-ranking__rules p { grid-column: 1 / -1; padding-top: 0.85rem; border-top: 1px solid var(--line); text-align: left; }
    .go-ranking__columns { display: none; }
    .go-ranking__list { display: grid; gap: 0.75rem; }
    .go-ranking__item { min-height: 0; padding: 1rem; border: 1px solid var(--line); grid-template-columns: 3rem minmax(0, 1fr); align-items: center; gap: 0.75rem; }
    .go-ranking__rank { grid-row: 1 / span 2; }
    .go-ranking__member { grid-column: 2; }
    .go-ranking__metrics { display: grid; grid-column: 1 / -1; margin: 0; padding-top: 0.8rem; border-top: 1px solid var(--line); grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.4rem; }
    .go-ranking__metrics > div { min-width: 0; }
    .go-ranking__metrics dt { display: block; margin-bottom: 0.2rem; color: var(--muted); font-size: 0.68rem; }
    .go-ranking__metrics dd { font-size: 0.78rem; }
    .go-ranking__metrics .go-ranking__score dd { font-size: 0.9rem; }
}

@media (max-width: 420px) {
    .go-game__tab {
        padding-inline: 0.55rem;
        font-size: 0.9rem;
    }

    .go-online__room {
        align-items: stretch;
        flex-direction: column;
    }

    .go-online__room .go-game__button {
        width: 100%;
    }

    .go-online__ai-rank,
    .go-online__ai-rank select {
        width: 100%;
    }

    .go-clocks { grid-template-columns: 1fr; }
    .go-account__actions,
    .go-game__match-actions { grid-template-columns: 1fr; }
}
