/* A single date-led list keeps the home screen easy to scan. */
#home-screen{max-width:860px;padding:14px 20px 12px}
#home-catalog{gap:14px}
#home-catalog .home-account-line{min-height:52px;margin:0;padding:0 0 12px;border-color:#cba76a2b}
#home-catalog .rg-logo{gap:8px}
#home-catalog .rg-emblem{width:40px;height:40px}
#home-catalog .rg-wordmark{width:152px;height:36px}
#home-catalog .rg-home-mascot{display:none}
#home-catalog .account-open{background:transparent;border-color:#76634766}
#home-catalog .home-heading{margin:0;gap:10px}
#home-catalog .home-heading h1{font-size:25px;line-height:1.3;margin:0;color:#fff0d4}


#home-catalog .home-heading-actions{gap:7px}
.home-options{position:relative}
.home-options>summary{display:grid;place-items:center;width:40px;height:40px;list-style:none;border:1px solid #74634566;border-radius:8px;font-size:24px;line-height:1;color:#dcc49b}
.home-options>summary::-webkit-details-marker{display:none}
.home-options-menu{position:absolute;right:0;top:48px;z-index:25;min-width:155px;padding:6px;background:#211d28;border:1px solid #967a4d;border-radius:11px;box-shadow:0 12px 36px #0009;max-height:calc(100dvh - 180px);overflow-y:auto;overscroll-behavior:contain}
.home-options-menu button,.home-options-menu a,#home-catalog #music-open{display:flex;align-items:center;justify-content:flex-start;width:100%;min-height:44px;padding:10px 12px;border:0;border-radius:6px;background:transparent;color:#fff0d8;text-decoration:none;font-size:16px;white-space:nowrap}
#home-catalog #music-open span{font-size:16px}
.home-options-menu button:hover,.home-options-menu a:hover{background:#4b392955}
#home-catalog .tour-home-tabs{gap:4px;margin:0;padding:4px;background:#17141d;border:1px solid #68573a66;border-radius:11px}
#home-catalog .tour-home-tabs button{min-height:42px;border:0;border-radius:7px;background:transparent;font-size:15px;color:#bdb4c4;padding:7px}
#home-catalog .tour-home-tabs button[aria-pressed=true]{background:#463624;color:#ffe5b4}
#home-catalog .home-date-layout,#home-catalog .tour-feed{display:flex;flex-direction:column;gap:10px;flex:1;min-height:0}
#home-catalog .home-date-layout[hidden],#home-catalog .tour-feed[hidden]{display:none!important}
.home-list-tools,.tour-feed-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:none;min-height:40px;margin:0}
.home-list-tools select{width:auto;max-width:75%;min-height:40px;padding:7px 30px 7px 10px;border-color:#7f6a4855;background:#18161e;border-radius:8px;font-size:16px;color:#f7e8cb}
.home-list-tools>span{font-size:15px;color:#d0c7d7;white-space:nowrap}
#home-catalog .home-timeline{display:grid;grid-template-columns:minmax(0,1fr);grid-auto-rows:max-content;gap:10px;align-content:start;flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:1px 2px 3px;scrollbar-width:thin}
.home-event-row{display:flex;align-items:center;gap:18px;text-align:left;padding:16px 20px;min-height:102px;width:100%;border:1px solid #94764666;border-radius:12px;background:linear-gradient(110deg,#28212d,#1b1921);color:#f8ead5;box-shadow:none}
.home-event-row:hover{border-color:#c49c61;background:#302632}
.home-event-row:focus-visible{outline:2px solid #ffe0a5;outline-offset:0}
.home-row-date{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;flex:0 0 62px;padding-right:16px;border-right:1px solid #a1855633;line-height:1.2;color:#dfc497;font-variant-numeric:tabular-nums}
.home-row-date small{font-size:14px;white-space:nowrap}
.home-row-date strong{font-size:26px;font-weight:800;line-height:1.3;color:#ffe3aa;white-space:nowrap}
.home-row-copy{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}
.home-row-copy>strong{font-size:21px;font-weight:750;line-height:1.35;color:#fff0da;overflow-wrap:anywhere;word-break:keep-all;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.home-row-copy>span{font-size:16px;line-height:1.4;color:#e1d7e9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-row-copy>small{font-size:15px;line-height:1.3;font-weight:500;color:#cfb992}
.home-list-pager{display:flex;justify-content:space-between;align-items:center;gap:12px;flex:none;padding-top:5px}
.home-list-pager button{min-width:76px;min-height:44px;padding:7px 12px;border-color:#87714d66;background:transparent;font-size:16px}
.home-list-pager>span{font-size:15px;color:#b9a991;font-variant-numeric:tabular-nums}
.home-list-empty{padding:36px 18px;text-align:center;border:1px dashed #87714d55;border-radius:12px;color:#cab9a0}
.home-list-empty strong{font-size:18px}.home-list-empty p{font-size:14px;margin:8px 0 0;color:#aaa1b5}
#home-catalog .tour-feed-tools label{font-size:14px;color:#c3bacb}
#home-catalog #tour-refresh{min-height:40px;padding:6px 10px;border-color:#75634766;background:transparent;font-size:14px}
#home-catalog .tour-feed-status{margin:0;font-size:14px;color:#cebfaa;line-height:1.5}
#home-catalog .tour-feed-status:empty{display:none}
@media(max-width:600px){
 #home-screen{padding:12px 14px 10px}#home-catalog{gap:11px}
 #home-catalog .home-heading h1{font-size:23px}
 #home-catalog .home-account-line{min-height:46px;padding-bottom:9px}
 #home-catalog .rg-emblem{width:34px;height:34px}#home-catalog .rg-wordmark{width:135px;height:32px}
 .home-event-row{min-height:102px;padding:13px 12px;gap:12px}.home-row-date{flex-basis:58px;padding-right:12px}
 .home-row-copy>strong{font-size:19px}.home-row-copy{gap:4px}.home-row-date strong{font-size:24px}
}
@media(max-height:650px){#home-screen{padding-top:8px;padding-bottom:8px}#home-catalog{gap:8px}#home-catalog .home-account-line{min-height:40px;padding-bottom:6px}#home-catalog .rg-emblem{width:30px;height:30px}#home-catalog .rg-wordmark{width:125px;height:30px}.home-list-pager{padding-top:0}}
@media(orientation:landscape) and (max-height:550px){#home-catalog{gap:7px}#home-screen{padding-top:7px;padding-bottom:7px}#home-catalog .home-account-line{min-height:35px;padding-bottom:4px}#home-catalog .home-heading h1{font-size:21px}#home-catalog .tour-home-tabs button{min-height:36px}.home-event-row{padding:10px 16px}}
@media(orientation:landscape) and (max-height:550px){
 #home-catalog:not([hidden]){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr);column-gap:20px;row-gap:7px}
 #home-catalog .home-account-line{grid-column:1;grid-row:1;padding-bottom:0;border:0}
 #home-catalog .home-heading{grid-column:2;grid-row:1}
 #home-catalog .tour-home-tabs{grid-column:1/-1;grid-row:2}
 #home-catalog .home-date-layout,#home-catalog .tour-feed{grid-column:1/-1;grid-row:3}
}


@media(max-width:390px){#home-catalog .home-heading h1{font-size:21px}#home-catalog .home-heading-actions{gap:5px}}

/* Personal photo and name live on Home. */
#home-catalog .home-profile{flex:1;min-width:0;gap:12px}
#home-catalog .home-profile .mascot-frame{width:68px;height:76px;border-radius:12px}
#home-catalog .home-profile .brand-copy h2{margin:0;font-size:23px;font-weight:800;line-height:1.25;color:#ffe5ad}
#home-catalog .home-profile #edit-brand{min-height:44px}
#home-catalog .home-profile #poker-quote{margin:2px 0 0;min-height:0;font-size:15px;line-height:1.4;color:#e9c783}
#home-catalog .rg-home-account{flex:none}
.appbar .header-actions{flex-direction:row;gap:8px}
.appbar .header-actions[aria-hidden=true]{display:none}
@media(max-width:600px){
 #home-catalog .home-profile{gap:9px}
 #home-catalog .home-profile .mascot-frame{width:58px;height:66px}
 #home-catalog .home-profile .brand-copy h2{font-size:21px}
 .appbar .header-actions{gap:4px}
}
@media(max-width:380px){
 #home-catalog .home-profile{flex-basis:auto}
 #home-catalog .home-profile .mascot-frame{width:50px;height:58px}
 #home-catalog .home-profile .brand-copy h2{font-size:20px}
}
@media(orientation:landscape) and (max-height:550px){
 #home-catalog .home-profile .mascot-frame{width:44px;height:48px}
 #home-catalog .home-profile .brand-copy h2{font-size:20px}
 #home-catalog .home-profile #poker-quote{font-size:14px}
}

.nickname-warning{padding:12px 14px;border:1px solid #dfb663;border-radius:8px;background:#4b351d55;color:#ffe1a0;font-size:17px;font-weight:650;line-height:1.6}
#brand-name-input[readonly]{background:#28232c;color:#e9ddca;border-style:dashed}
#brand-form .brand-actions{flex-wrap:wrap}
#brand-save{white-space:normal}
.grinding-launch{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}.grinding-launch>a,.grinding-launch>button{display:flex;align-items:center;justify-content:center;gap:12px;flex:1;padding:15px;border:1px solid #776344;border-radius:14px;background:#24202c;color:#f5d599;text-decoration:none;min-width:180px}.grinding-launch strong{display:block;font-size:1.1rem}.grinding-launch small{display:block;font-size:.8rem;color:#c5bccb;margin-top:4px}.grinding-launch>p{flex-basis:100%;font-size:.85rem;margin:0;color:#c5bccb}.grinding-launch>p:empty{display:none}.rg-home-account{flex-wrap:wrap;justify-content:flex-end}#feedback-open{padding:10px 12px;font-size:.85rem}.feedback-dialog{width:min(680px,94vw);max-height:88dvh;background:#211c2b;color:#f3e9d9;border:1px solid #b99a64;border-radius:20px;padding:22px}.feedback-dialog>header,.feedback-list article>header{display:flex;align-items:center;gap:10px}.feedback-dialog>header{justify-content:space-between}.feedback-dialog h2{color:#f5d599}.feedback-dialog header p{margin:4px 0 14px;color:#bcb3c2}.feedback-dialog form{display:grid;gap:10px}.feedback-dialog textarea{box-sizing:border-box;width:100%;padding:14px;background:#141119;color:#fff;border:1px solid #746246;border-radius:12px;font:inherit}.feedback-dialog small{color:#c4bbcc}.feedback-list article{border-top:1px solid #524738;padding:18px 0}.feedback-list p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}.feedback-list time{font-size:.78rem;color:#b6aebc;margin-left:auto}.feedback-delete{color:#f0aaa8}.feedback-dialog::backdrop{background:#000b}@media(max-width:480px){.home-account-line{gap:8px}.rg-home-account{gap:6px}#feedback-open{padding:8px}.grinding-launch>a,.grinding-launch>button{min-width:130px;padding:12px;font-size:.85rem}.feedback-dialog{padding:16px}}

@media(max-width:520px){#study-screen>.home-account-line{flex-wrap:wrap}#study-screen .rg-home-account{margin-left:auto;max-width:100%}}

.grinding-launch{flex-shrink:0}
