.account-page { background: #171511; }
.account-page input:focus-visible,.account-page [role=tabpanel]:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 4px; }
.account-page button:disabled { opacity: .45; cursor: default; }
/* A quiet arrival at the hall, with the sign-in invitation opposite the doorway. */
.signin-main { position: relative; isolation: isolate; min-height: calc(100svh - 188px); border-bottom: 1px solid #80663b44; }
.signin-scenery { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg,#18140f66,#17151112 37%,#171511ee 70%),linear-gradient(0deg,#171511,transparent 30%,#17151144),url('assets/path-join.png') 15% 46% / 69% auto no-repeat; }
.signin-layout { display: grid; grid-template-columns: minmax(0,1fr) 430px; align-items: center; gap: 95px; padding-block: 65px 80px; }
.signin-story { padding-block: 25px; }
.signin-story .eyebrow { color: #d4b875; }
.signin-story h1 { font: 77px/1.08 var(--serif); letter-spacing: -2px; color: #efe0be; margin: 23px 0 28px; }
.signin-story h1 em { color: #e3c38a; }
.signin-lead { font: 21px/1.75 var(--serif); color: #d9c7a6; text-shadow: 0 2px 6px #000; }
.signin-promises { border-top: 1px solid #ac8a4d66; width: fit-content; margin-top: 35px; padding-top: 20px; }
.signin-promises > div { display: flex; align-items: center; gap: 14px; margin-block: 14px; font-size: 12px; color: #d1bd99; text-shadow: 0 1px 6px #000; }
.signin-promises svg { width: 21px; height: 23px; color: #d4b475; }
.signin-caption { font: italic 15px var(--serif); color: #c1a77c; margin: 43px 0 0; }
.signin-panel { padding: 36px 34px 28px; text-align: center; border: 1px solid #aa854e; background: linear-gradient(150deg,#372e20ed,#201b14f5 65%); box-shadow: inset 0 0 0 4px #14110d,inset 0 0 0 5px #82673b66,0 20px 60px #0005; position: relative; }
.signin-panel::before,.signin-panel::after { content: '◆'; position: absolute; color: #b59a62; font-size: 7px; top: -7px; background: #231d15; padding-inline: 7px; }
.signin-panel::before { left: 20px; }.signin-panel::after { right: 20px; }
.journal-seal { display: grid; place-items: center; width: 74px; height: 74px; border: 1px solid #9e7c3f88; border-radius: 50%; margin: 0 auto 27px; background: radial-gradient(#65502b55,transparent); outline: 1px solid #96743d33; outline-offset: 5px; }
.journal-seal svg { width: 33px; height: 33px; color: #d4b678; }
.signin-panel .eyebrow { font-size: 9px; margin-bottom: 9px; }
.signin-panel h2 { font-size: 37px; color: #e9d3a8; margin: 0 0 16px; }
#signin-intro { color: #c2af8e; font-size: 13px; line-height: 1.9; margin: 0 0 28px; }
.signin-panel :is(.discord-button,#open-account) { width: 100%; min-height: 51px; font-size: 13px; }
.discord-button svg:last-child { margin-left: auto; }
.signin-small { color: #b8a27c; font-size: 11px; line-height: 1.8; max-width: 290px; margin: 19px auto; }
.signin-divider { display: flex; align-items: center; justify-content: center; gap: 12px; margin-block: 24px; color: #9f804a; }
.signin-divider span { height: 1px; flex: 1; background: #96764355; }.signin-divider svg { width: 18px; height: 22px; }
.signin-privacy { display: flex; align-items: center; justify-content: center; gap: 8px; color: #bda982; font-size: 10px; margin: 0; }
.signin-privacy svg { width: 13px; height: 15px; flex-shrink: 0; }
.signin-panel > .text-button { margin-top: 10px; font-size: 10px; line-height: 1.6; }
.signin-demo { color: #9f8d6e; font-size: 9px; margin: 22px 0 0; }
#signin-feedback { padding: 14px; color: #dfc093; border: 1px solid #98734988; background: #21190f; font-size: 12px; margin-bottom: 24px; text-align: left; }
#signin-feedback strong { display: block; margin-bottom: 5px; }
/* The account reads like a personal journal, with a narrow margin for context. */
.account-hero { position: relative; isolation: isolate; border-block: 1px solid #80663b66; overflow: hidden; }
.account-scenery { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#211c15 10%,#211c15a6 56%,#211c1580),url('assets/path-join.png') right 41% / 66% auto no-repeat; opacity: .6; }
.account-hero-inner { display: flex; gap: 27px; align-items: center; padding-block: 38px 42px; }
.account-hero .eyebrow { font-size: 9px; margin-bottom: 8px; }
.account-hero h1 { font-size: 51px; margin: 0 0 11px; color: #e7cfa0; }
#account-greeting { color: #c5b18d; font-size: 13px; margin: 0; }
.account-crest { width: 80px; height: 98px; display: grid; place-items: center; background: linear-gradient(135deg,#5b4928,#231e15); border: 1px solid #b28c4b; box-shadow: inset 0 0 0 4px #231e15,inset 0 0 0 5px #82673b; border-radius: 3px 3px 28px 28px; flex-shrink: 0; }
.account-crest svg { width: 40px; height: 50px; color: #d4b573; }
.privacy-seal { margin-left: auto; display: flex; align-items: center; gap: 9px; color: #c3a979; font-size: 10px; }
.privacy-seal svg { width: 15px; height: 18px; }
.journal-tabs { display: flex; gap: 35px; border-bottom: 1px solid #8e70444d; padding-top: 20px; }
.journal-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 11px; position: relative; background: none; border: 0; color: #ae9b7a; font: 18px var(--serif); min-height: 62px; padding: 15px 0 21px; }
.journal-tabs svg { width: 19px; height: 21px; }
.journal-tabs button[aria-selected=true] { color: #ebca8d; }
.journal-tabs button[aria-selected=true]::after { content:''; position: absolute; inset: auto 0 -1px; height: 2px; background: linear-gradient(90deg,transparent,#e3b86c,transparent); box-shadow: 0 -4px 17px #a17c3633; }
.journal-layout { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 46px; padding-block: 37px 43px; align-items: start; }
.journal-panel { padding: 32px 35px; border: 1px solid #84683c99; background: linear-gradient(135deg,#30271c88,#201b14 75%); box-shadow: inset 0 0 0 3px #15120e; }
.journal-heading { display: flex; align-items: center; gap: 17px; }
.chapter-number { width: 40px; height: 49px; flex-shrink: 0; display: grid; place-items: center; font: 19px var(--serif); color: #d3b477; border: 1px solid #94713e; background: #241e14; box-shadow: inset 0 0 0 3px #17130e; }
.journal-heading .eyebrow { font-size: 8px; margin-bottom: 5px; }
.journal-heading h2 { font: 31px/1.2 var(--serif); color: #dfc59a; margin: 0; }
.section-intro { color: #b8a484; font-size: 12px; margin: 22px 0 28px; line-height: 1.9; }
.account-page form label:not(.choice-row,.scope-choice) { display: block; font-size: 12px; color: #d0ba91; margin: 23px 0 8px; }
.account-page input:not([type=radio],[type=checkbox]) { width: 100%; border: 1px solid #82673c99; background: #17140f; min-height: 47px; padding: 11px 14px; color: #dfcca8; font-size: 14px; border-radius: 0; }
.account-page select { min-height: 47px; }
.account-page .field-hint { color: #ad9977; font-size: 11px; line-height: 1.9; margin: 9px 0 0; }
.time-example { display: flex; gap: 13px; padding: 17px; border-left: 2px solid #aa8446; background: #12100b88; margin-top: 22px; }
.time-example > svg { width: 22px; height: 22px; flex-shrink: 0; color: #c3a163; margin-top: 3px; }
.time-example span { display: block; font-size: 10px; color: #b59e77; }
.time-example strong { display: block; font: 19px/1.5 var(--serif); color: #dfc796; margin-block: 3px; }
.time-example small { font-size: 10px; color: #a99470; }
.profile-actions { display: flex; align-items: center; gap: 23px; flex-wrap: wrap; margin-top: 29px; }
#profile-status { width: 100%; margin: -6px 0 0; color: #c6d1a1; font-size: 12px; }
.connection-card { padding: 25px 24px; border-block: 1px solid #8e704477; background: #2a231866; }
.aside-heading { display: flex; align-items: center; gap: 10px; }
.aside-heading > svg { width: 21px; height: 21px; color: #bd9a5d; }
.aside-heading h3 { font-size: 22px; color: #d8bd90; line-height: 1.3; }
.discord-identity { display: flex; align-items: center; gap: 15px; padding-block: 24px 18px; }
.avatar-seal { display: grid; place-items: center; width: 47px; height: 47px; border: 1px solid #997943; background: #393022; color: #d5b77b; font: 25px var(--serif); border-radius: 50%; flex-shrink: 0; }
.discord-identity strong { display: block; font-size: 13px; color: #dfc8a0; font-weight: 400; }
.discord-identity div > span { display: block; color: #ad9771; font-size: 10px; margin-top: 3px; }
.connection-card > p { color: #b49f7d; font-size: 11px; line-height: 1.9; margin-bottom: 12px; }
.connection-card .text-button { font-size: 11px; color: #d4b77c; }
.adventure-card { position: relative; isolation: isolate; border: 1px solid #80663b88; margin-top: 27px; padding: 75px 24px 20px; overflow: hidden; }
.adventure-card-art { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg,#211b13 5%,#211b13de 46%,#211b1355),url('assets/path-events.png') center 35%/cover; }
.adventure-card .eyebrow { font-size: 8px; }.adventure-card h3 { font-size: 29px; color: #e1c99a; }
.adventure-card p:not(.eyebrow) { color: #b9a27d; font-size: 12px; margin: 11px 0 0; }
.adventure-card .section-link { padding-left: 0; font-size: 11px; margin-top: 5px; }
.journal-margin-note { display: flex; align-items: flex-start; gap: 10px; font-size: 10px; color: #a18b65; margin: 20px 10px 0; }
.journal-margin-note svg { width: 13px; height: 16px; flex-shrink: 0; margin-top: 3px; }
.account-example-note { text-align: center; color: #958263; font-size: 9px; padding: 0 0 35px; }
.character-link-row { display: flex; gap: 16px; align-items: center; border-block: 1px solid #80663b66; padding: 20px 0; }
.character-link-row + .character-link-row { border-top: 0; }
.character-link-row .avatar-seal { border-radius: 2px 2px 17px 17px; height: 57px; }
.character-link-row .avatar-seal svg { width: 26px; height: 29px; }
.character-link-copy { flex: 1; min-width: 0; }
.character-link-copy h3 { font-size: 23px; color: #dfc59a; }.character-link-copy h3 a:hover { color: #f1dba9; }
.character-link-copy p { font-size: 10px; color: #b29b76; margin: 4px 0 7px; }
.link-state { display: inline-block; color: #c8c99a; font-size: 9px; border: 1px solid #81834b88; padding: 2px 7px; }
.link-state.pending { color: #d2b179; border-color: #b0864988; }
.character-link-row > button { font-size: 10px; color: #c5ad82; }
.link-request { padding-top: 30px; }.link-request > h3 { font-size: 26px; color: #d6bb8d; }
.link-request > p { font-size: 12px; color: #b5a080; margin-top: 9px; }
.account-search { display: flex; align-items: center; border: 1px solid #82673c99; background: #17140f; padding-left: 14px; }
.account-search svg { width: 18px; height: 18px; flex-shrink: 0; color: #b69556; }
.account-search input[type=search] { border: 0; background: none; }
#character-results { margin-top: 10px; }
.search-result { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 0; border-bottom: 1px solid #7a603633; }
.search-result strong { display: block; color: #dbc39a; font: 21px var(--serif); }.search-result span { font-size: 10px; color: #ac9671; }
.search-result button { font-size: 10px; min-height: 40px; padding-inline: 12px; }
.search-empty { font-size: 12px; padding: 15px 0; color: #bca582; }
#link-status { color: #cfbf94; font-size: 12px; }
.linking-guide,.privacy-guide { padding: 24px 5px; }
.guide-rune { display: block; margin-bottom: 26px; color: #ac8c50; }.guide-rune svg { width: 40px; height: 43px; }
.journal-aside > .eyebrow { font-size: 8px; }.journal-aside > h3 { font: 30px/1.3 var(--serif); color: #d7bd90; margin-bottom: 25px; }
.linking-guide ol { list-style: none; padding: 0; counter-reset: steps; }
.linking-guide li { counter-increment: steps; position: relative; padding: 0 0 22px 35px; }
.linking-guide li::before { content: counter(steps,upper-roman); position: absolute; left: 0; top: 1px; color: #b59454; font: 15px var(--serif); }
.linking-guide li strong { display: block; font-size: 12px; color: #c9b18b; font-weight: 400; }.linking-guide li span { display: block; font-size: 11px; color: #ad9671; line-height: 1.9; margin-top: 6px; }
.journal-aside .preview-note { border-top: 1px solid #725a354d; padding-top: 20px; margin-top: 25px; color: #a18b68; font-size: 10px; line-height: 1.9; }
.data-boundary { margin: 0 0 30px; border-top: 1px solid #80663b66; }
.data-boundary > div { padding: 19px 0; border-bottom: 1px solid #80663b44; }
.data-boundary dt { font: 22px var(--serif); color: #d5bc92; }.data-boundary dd { color: #b8a281; margin: 8px 0 0; font-size: 12px; line-height: 1.9; }
#removal-form fieldset { margin: 0; padding: 0; border: 0; }#removal-form legend { color: #d4b98b; font-size: 12px; margin-bottom: 12px; }
.choice-row { display: flex; align-items: flex-start; gap: 12px; border: 1px solid #80663b77; padding: 15px; margin-bottom: 10px; cursor: pointer; }
.choice-row:has(:checked) { background: #49341c44; border-color: #b48d4e; }
.choice-row input,.scope-choice input { accent-color: #bd9854; width: 17px; height: 17px; flex-shrink: 0; margin-top: 4px; }
.choice-row strong { display: block; font-size: 12px; font-weight: 400; color: #dbc096; }.choice-row small { display: block; font-size: 10px; color: #b5a07c; margin-top: 5px; }
#removal-scope { padding: 20px 0 8px !important; }.scope-choice { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #c7ae86; padding-block: 5px; }
.removal-button { margin-top: 18px; border-color: #aa7453; color: #dec2a5; }
.privacy-guide > p:not(.eyebrow,.preview-note) { font-size: 12px; color: #b39a76; line-height: 1.9; }
.privacy-guide .section-link { font-size: 11px; padding-left: 0; white-space: normal; }
#removal-error { color: #e3ae8d; font-size: 12px; }#removal-status { color: #d4b784; font-size: 12px; margin-top: 20px; }
.account-empty { text-align: center; padding: 65px 20px; }.account-empty > svg { display: block; width: 37px; height: 43px; margin: 0 auto 23px; color: #b3965b; }.account-empty h2 { font-size: 34px; color: #dcc295; }.account-empty p { font-size: 13px; color: #b6a07d; max-width: 450px; margin: 15px auto 27px; }
.account-dialog-summary { border-block: 1px solid #80663b77; padding-block: 15px; margin: 20px 0; color: #d4ba8f; font-size: 13px; }.account-dialog-summary strong { display: block; color: #ead1a0; font: 24px var(--serif); margin-bottom: 10px; }
#account-dialog .dialog-actions { justify-content: flex-end; flex-wrap: wrap; }
@media(max-width:1100px) {
 .signin-layout { grid-template-columns: minmax(0,1fr) 390px; gap: 40px; }.signin-story h1 { font-size: 64px; }.signin-panel { padding-inline: 28px; }.signin-scenery { background-size: 90% auto; }
 .journal-layout { grid-template-columns: minmax(0,1fr) 285px; gap: 28px; }.journal-panel { padding: 28px; }.journal-heading h2 { font-size: 28px; }.privacy-seal { max-width: 150px; }
}
@media(max-width:900px) {
 .signin-layout { grid-template-columns: minmax(0,1fr) 360px; gap: 30px; padding-block: 45px; }.signin-story h1 { font-size: 53px; }.signin-lead { font-size: 18px; }.signin-promises { margin-top: 23px; }.signin-promises > div { font-size: 11px; }.signin-story .eyebrow { font-size: 8px; }
 .journal-layout { grid-template-columns: minmax(0,1fr); }.journal-aside:not(.linking-guide,.privacy-guide) { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }.adventure-card { margin: 0; }.journal-margin-note { grid-column: 1/-1; margin: 0; }
 .linking-guide,.privacy-guide { max-width: 600px; padding: 15px 10px; }.journal-tabs { gap: 25px; }.journal-tabs button { font-size: 17px; }.privacy-seal { display: none; }
}
@media(max-width:700px) {
 .signin-layout { display: flex; flex-direction: column; gap: 30px; padding-block: 30px 43px; }.signin-story { padding: 0; width: 100%; }.signin-story h1 { font-size: 55px; margin: 15px 0 19px; }.signin-story h1 br { display: none; }.signin-lead { font-size: 18px; margin-bottom: 0; }.signin-promises,.signin-caption { display: none; }.signin-scenery { background-size: 165% auto; background-position: 50% 4%; background-image: linear-gradient(0deg,#171511 30%,#17151166 75%),url('assets/path-join.png'); }
 .signin-panel { width: 100%; max-width: 430px; padding: 30px 25px 23px; }.signin-panel h2 { font-size: 34px; }.signin-privacy { line-height: 1.8; }
 .account-hero-inner { gap: 17px; padding-block: 27px 30px; }.account-crest { width: 59px; height: 74px; }.account-crest svg { width: 30px; height: 36px; }.account-hero h1 { font-size: 39px; }#account-greeting { font-size: 11px; }.account-hero .eyebrow { font-size: 8px; }.account-scenery { background-size: 100% auto; }
 .journal-tabs { gap: 0; justify-content: space-between; padding-top: 8px; }.journal-tabs button { flex: 1; font: 13px/1.4 var(--serif); gap: 7px; padding: 15px 6px; flex-direction: column; min-height: 73px; }.journal-tabs svg { width: 17px; height: 19px; }
 .journal-layout { padding-block: 25px 34px; gap: 28px; }.journal-panel { padding: 25px 19px; }.journal-heading { gap: 12px; }.journal-heading h2 { font-size: 27px; }.journal-heading .eyebrow { font-size: 7px; letter-spacing: 1.5px; }.chapter-number { width: 31px; height: 42px; font-size: 15px; }.section-intro { font-size: 12px; margin-top: 20px; }
 .account-page input:not([type=radio],[type=checkbox]),.account-page select { font-size: 16px; }.time-example { padding: 14px; gap: 10px; }.time-example strong { font-size: 18px; }.profile-actions { gap: 14px; }.profile-actions .brass-button { padding-inline: 16px; }
 .journal-aside:not(.linking-guide,.privacy-guide) { display: block; }.adventure-card { margin-top: 24px; }.journal-margin-note { margin: 20px 10px 0; }.character-link-row { flex-wrap: wrap; }.character-link-row > button { margin-left: 63px; }.character-link-copy h3 { font-size: 22px; }.search-result { flex-wrap: wrap; }.search-result strong { font-size: 20px; }.search-result button { min-height: 44px; }
 .data-boundary dt { font-size: 21px; }.choice-row { padding: 13px 10px; }.removal-button { width: 100%; font-size: 11px; }.account-example-note { font-size: 8px; }.account-page dialog { padding: 30px 24px; }.account-page dialog h2 { font-size: 29px; }.account-page .dialog-actions { gap: 10px; }.account-page .dialog-actions .brass-button { padding-inline: 13px; font-size: 11px; }
}
@media(prefers-reduced-motion:reduce) { .account-page { scroll-behavior: auto; } }
