.forum-shell{--forum-line:var(--theme-line,#c6e0e4);color:var(--theme-ink,#193f4d);min-width:0;padding-bottom:32px}
.forum-notice{padding:11px 18px;border-left:3px solid var(--theme-accent,#20a3ac);background:var(--theme-soft,#e6f5f3);border-radius:0 14px 14px 0;font-size:13px;line-height:1.65}.forum-notice p{margin:0}.forum-notice a{font-weight:700;text-decoration:underline}.forum-breadcrumb{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:24px 0;font-size:13px}.forum-breadcrumb a{color:var(--theme-accent,#168f9b);text-decoration:none}
.forum-controls{border:0;padding:0;margin:0;min-width:0}.forum-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:28px 0 18px}.forum-heading h2{font-size:27px;margin:6px 0;letter-spacing:-.03em;overflow-wrap:anywhere}.forum-heading p{color:var(--theme-muted,#61818c);margin:8px 0;white-space:pre-wrap;overflow-wrap:anywhere}
.forum-board-list{display:grid;gap:12px}.forum-board{display:grid;grid-template-columns:44px minmax(0,1fr) 16px;gap:16px;align-items:center;border:1px solid var(--forum-line);border-radius:16px;padding:14px 18px;background:var(--theme-surface,#fff);color:inherit;text-decoration:none;transition:background .15s,border-color .15s}.forum-board:hover,.forum-topic-row:hover{background:var(--theme-soft,#f0faf8);border-color:var(--theme-accent,#36a1ab)}.forum-board-heading{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:4px 14px}.forum-board h3{font-size:18px;margin:0;overflow-wrap:anywhere}.forum-board-heading>small{white-space:nowrap}.forum-board p{margin:4px 0 0;color:var(--theme-muted,#62808a);font-size:13px;line-height:1.5;overflow-wrap:anywhere}.forum-board small{color:var(--theme-muted,#62808a);font-size:12px}.forum-board-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--theme-soft,#e3f3f1);color:var(--theme-accent,#1c99a5);font-size:27px}.forum-board.is-unread{border-left:4px solid var(--theme-accent,#1c99a5)}.forum-board .forum-unread{display:inline-block;color:var(--theme-accent,#1c99a5);font-size:10px;padding:4px 8px;border:1px solid var(--forum-line);border-radius:12px;vertical-align:middle;margin-left:8px}
.forum-private,.forum-empty{padding:14px 18px;background:var(--theme-soft,#eef7f5);border:1px dashed var(--forum-line);border-radius:16px;color:var(--theme-muted,#61818c);font-size:14px;line-height:1.7}.forum-empty strong{font-size:18px;color:var(--theme-ink,#193f4d)}.forum-empty p{margin-bottom:0}
.forum-topic-list{display:grid;gap:10px;margin-top:20px}.forum-topic-row{display:grid;grid-template-columns:28px minmax(0,1fr) 70px;gap:18px;align-items:center;padding:22px 24px;background:var(--theme-surface,#fff);border:1px solid var(--forum-line);border-radius:14px;color:inherit;text-decoration:none}.forum-topic-row h3{margin:0 0 7px;font-size:17px;overflow-wrap:anywhere}.forum-topic-row small{font-size:11px;color:var(--theme-muted,#61818c)}.forum-topic-row.is-unread .forum-row-symbol{color:var(--theme-accent,#1c99a5)}.forum-count{text-align:center;font-size:20px}.forum-count small{display:block;margin-top:5px}.forum-paging{display:flex;justify-content:center;align-items:center;gap:24px;margin:24px 0;font-size:13px}.forum-paging a{padding:10px 16px;border:1px solid var(--forum-line);border-radius:10px;text-decoration:none}
.forum-posts{display:grid;gap:18px}.forum-post{display:grid;grid-template-columns:170px minmax(0,1fr);border:1px solid var(--forum-line);border-radius:18px;background:var(--theme-surface,#fff);overflow:hidden}.forum-author{padding:26px 20px;background:var(--theme-soft,#edf7f5);display:flex;align-items:center;flex-direction:column;gap:14px;text-align:center;border-right:1px solid var(--forum-line)}.forum-author img{width:76px;height:76px;object-fit:cover;border-radius:50%;border:3px solid var(--theme-surface,#fff)}.forum-author a,.forum-author strong{font-weight:700;text-decoration:none;overflow-wrap:anywhere}.forum-author small{display:block;margin-top:6px;font-size:11px;color:var(--theme-muted,#61818c)}.forum-post-main{padding:24px;min-width:0}.forum-post-main>header{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:var(--theme-muted,#61818c);padding-bottom:16px;border-bottom:1px solid var(--forum-line);margin-bottom:20px}.forum-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;font-size:15px}.forum-post blockquote{margin:0 0 20px;padding:16px 20px;border-left:3px solid var(--theme-accent,#1c99a5);background:var(--theme-soft,#edf7f5);font-size:13px;max-height:220px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}.forum-post blockquote p{margin:7px 0 0;line-height:1.7}.forum-muted{color:var(--theme-muted,#61818c);font-size:12px}.forum-gil{border-color:var(--theme-gold,#d8ad63)}.forum-gil .forum-author strong{color:var(--theme-gold,#a87527)}
.forum-post-actions{display:flex;flex-wrap:wrap;gap:16px;margin-top:22px}.forum-post-actions button,.forum-text-button{padding:5px 0;border:0;background:none;color:var(--theme-accent,#178a96);font:inherit;font-size:12px;cursor:pointer;text-decoration:underline}.forum-tags{display:flex;gap:8px;flex-wrap:wrap}.forum-tags span{font-size:11px;background:var(--theme-soft,#e5f4f1);border:1px solid var(--forum-line);padding:5px 10px;border-radius:20px}
.forum-compose,.forum-manage{padding:26px;border:1px solid var(--forum-line);border-radius:18px;background:var(--theme-surface,#fff);margin:22px 0}.forum-compose h3{margin:0 0 14px;font-size:21px}.forum-compose>p{font-size:13px;line-height:1.7;color:var(--theme-muted,#61818c)}.forum-manage summary{cursor:pointer;font-weight:600;font-size:14px}.forum-manage[open] summary{margin-bottom:20px}.forum-form{display:grid;gap:18px}.forum-form>label{display:grid;gap:8px;font-size:13px;font-weight:600}.forum-form input:not([type=checkbox]),.forum-form textarea,.forum-form select{box-sizing:border-box;width:100%;max-width:100%;padding:12px 14px;border:1px solid var(--forum-line);border-radius:10px;background:var(--theme-surface,#fff);color:inherit;font:inherit}.forum-form textarea{resize:vertical;min-height:100px;line-height:1.7}.forum-form small{color:var(--theme-muted,#61818c);font-size:11px}.forum-checks{display:grid;gap:14px;font-size:13px}.forum-checks input{accent-color:var(--theme-accent,#199ca6);margin-right:6px}.forum-actions{display:flex;flex-wrap:wrap;gap:10px}.forum-shell button:disabled{opacity:.55;cursor:default}.forum-shell :is(a,button,input,textarea,select):focus-visible{outline:2px solid var(--theme-accent,#199ca6);outline-offset:4px}
@media(max-width:650px){.forum-notice{padding:11px 14px}.forum-heading{align-items:flex-start;flex-direction:column}.forum-board{padding:12px;grid-template-columns:36px minmax(0,1fr) 12px;gap:10px}.forum-board-icon{width:36px;height:36px;border-radius:10px;font-size:22px}.forum-board h3{font-size:18px}.forum-post{grid-template-columns:minmax(0,1fr)}.forum-author{flex-direction:row;text-align:left;padding:16px;border-right:0;border-bottom:1px solid var(--forum-line)}.forum-author img{width:44px;height:44px}.forum-post-main{padding:18px}.forum-compose,.forum-manage{padding:20px}.forum-topic-row{padding:18px 14px;grid-template-columns:20px minmax(0,1fr);gap:10px}.forum-count{grid-column:2;font-size:12px;text-align:left}.forum-count small{display:inline;margin-left:5px}.forum-paging{gap:14px}.forum-actions{width:100%}.forum-actions>button{flex:1}.forum-body{font-size:14px}}
.forum-community{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:0 28px}
.forum-community>.forum-heading{display:contents}
.forum-community>.forum-heading>div{grid-column:1;grid-row:1;margin:22px 0 18px}
.forum-community>.forum-heading>button{grid-column:3;grid-row:1}
.forum-support{grid-column:2;grid-row:1;margin:0;font-size:12px;line-height:1.6;color:var(--muted)}
.forum-support strong{color:var(--ink)}.forum-support a{color:var(--ink);text-underline-offset:3px}
.forum-community>.forum-board-list{grid-column:1/-1;grid-row:2}
@media(max-width:850px){.forum-community{grid-template-columns:minmax(0,1fr) auto;gap:0 12px}.forum-community>.forum-heading>button{grid-column:2}.forum-support{grid-column:1/-1;grid-row:3;margin:12px 0 0}}
.forum-load-error { display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:14px 18px;margin-bottom:18px;border:1px solid var(--theme-line,#bddcde);border-left:3px solid var(--theme-gold,#b47b20);border-radius:12px;background:var(--theme-soft,#fff4dc);color:var(--theme-ink,#173c4b); }
.forum-load-error button { flex-shrink:0; }

/* Stable author geometry, including while a protected image is being resolved. */
.forum-avatar{display:block;flex:none;width:76px;height:76px;border-radius:50%;overflow:hidden;background:var(--theme-surface,#fff)}
.forum-avatar img{display:block;box-sizing:border-box;width:100%;height:100%}
.forum-author>div{min-width:0;max-width:100%}.forum-author a{display:block;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.forum-post-actions{gap:6px 18px;margin-top:16px}
.forum-post-actions button,.forum-text-button{min-height:44px;padding:10px 2px;text-underline-offset:3px}
.forum-shell .forum-manage summary{min-height:24px;align-content:center}
.forum-checks label{display:flex;align-items:center;gap:8px;min-height:32px;cursor:pointer}
.forum-checks input{width:17px;height:17px;flex:none;margin:0}
.forum-confirmation{box-sizing:border-box;width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:28px;border:1px solid var(--theme-line,#bddcde);border-radius:20px;background:var(--theme-surface,#fff);color:var(--theme-ink,#173c4b);box-shadow:0 24px 80px #0006}
.forum-confirmation::backdrop{background:#070e20a6}
.forum-confirmation h2{font-size:24px;line-height:1.2;margin:10px 0 16px;letter-spacing:-.025em}
.forum-confirmation p{font-size:14px;line-height:1.7;overflow-wrap:anywhere;color:var(--theme-muted,#61818c);margin:0 0 24px}
.forum-confirmation .forum-actions{justify-content:flex-end}
.forum-confirmation button{min-height:44px}
.forum-confirmation button:focus-visible{outline:2px solid var(--theme-accent,#199ca6);outline-offset:4px}
@media(max-width:650px){.forum-avatar{width:44px;height:44px}.forum-confirmation{padding:22px}.forum-confirmation .forum-actions{flex-direction:column}.forum-confirmation .forum-actions>button{flex:auto;width:100%}.forum-checks label{min-height:44px}.forum-manage summary{min-height:32px}}

/* The forum's lists stay intact; their section headings get a steadier rhythm. */
.game-frame[data-page="forum"] .forum-heading { margin: 18px 0 10px; gap: 16px; }
.game-frame[data-page="forum"] .forum-controls > .forum-heading:first-child { margin-top: 0; }
.game-frame[data-page="forum"] .forum-heading h2 { margin: 3px 0; line-height: 1.2; }
.game-frame[data-page="forum"] .forum-heading .eyebrow { display: block; line-height: 1.4; }
.game-frame[data-page="forum"] .forum-community { row-gap: 10px; }
.game-frame[data-page="forum"] .forum-community > .forum-heading > div { margin: 0; }
.game-frame[data-page="forum"] .forum-controls > .forum-empty { margin-block: 0; }


@media(max-width:600px){.game-frame[data-page="forum"] .forum-heading h2{font-size:24px}.game-frame[data-page="forum"] .forum-community>.forum-heading>button{padding:10px 12px;font-size:12px;min-height:44px}}
