/* Rules and compact introductions. Palette follows the existing ToastyCraft theme. */
:root{--tc-rules-tint:#d2e7e4}
[data-theme=dark]{--tc-rules-tint:#365650}
.tc-server-row{display:flex;align-items:stretch;justify-content:center;gap:12px;width:min(100%,526px)}
.tc-server-row .server-panel{flex:1;min-width:0;width:auto}
.tc-rules-button{font:inherit;color:var(--ink);cursor:pointer;border:1px solid var(--line);background:var(--tc-rules-tint);border-radius:18px;box-shadow:0 6px 24px var(--shadow,#533c3015);display:flex;align-items:center;justify-content:center;gap:10px;padding:10px 17px;transition:transform .2s,box-shadow .2s}
.tc-rules-button:hover,.tc-invite-hero:hover{transform:translateY(-4px);box-shadow:0 12px 30px var(--shadow,#533c3020)}
.tc-rules-button:active,.tc-invite-hero:active{transform:translateY(0) scale(.98)}
.tc-rules-button svg{width:42px;height:42px;flex-shrink:0;filter:drop-shadow(0 4px 0 #79573813);transition:transform .25s}
.tc-rules-button:hover svg{animation:tc-book-wiggle .55s ease}
.tc-rules-button strong{font:400 22px/1.15 'Lilita One',sans-serif}
.tc-rules-button:focus-visible,.tc-invite-hero:focus-visible{outline:3px solid #a77ed0;outline-offset:4px}
.tc-discord-hero-row{display:grid;grid-template-columns:minmax(0,1fr) 200px;gap:18px;align-items:stretch;margin-bottom:32px}
.tc-discord-hero-row .portal-hero{margin:0;color:inherit;text-decoration:none;cursor:pointer;min-width:0;transition:transform .2s,box-shadow .2s}
.tc-discord-hero-row .portal-hero h1{font-size:clamp(34px,3.6vw,48px)}
.tc-discord-hero-row .tc-rules-button{flex-direction:column;border-radius:20px;padding:24px 16px;text-align:center}
.tc-discord-hero-row .tc-rules-button svg{width:88px;height:88px}
.tc-discord-hero-row .tc-rules-button strong{font-size:28px}
.tc-rules-button small{display:block;font-size:15px;line-height:1.5;margin-top:8px;color:var(--muted)}
body.tc-vote-page .portal-hero{min-height:235px;padding-block:24px}
body.tc-vote-page .portal-hero-art{height:180px;min-height:0}
body.tc-vote-page .portal-art-disc{width:145px;height:145px}
body.tc-vote-page .portal-art-disc .food-svg{width:110px;height:108px}
body:not(.tc-community) #main>.hero{min-height:290px}
body:not(.tc-community) #main>.hero .hero-copy{padding-block:28px}
body:not(.tc-community) #main>.hero h1{margin-block:10px;font-size:clamp(36px,4vw,52px)}
.tc-rules-dialog{color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:24px;width:min(680px,calc(100vw - 28px));max-width:680px;max-height:86dvh;padding:30px;overflow:auto;overscroll-behavior:contain;box-shadow:0 20px 100px #0005}
.tc-rules-dialog[open]{animation:tc-rules-arrive .2s ease}
.tc-rules-dialog::backdrop{background:#20192099;backdrop-filter:blur(5px)}
.tc-rules-close{position:absolute;right:10px;top:10px;display:grid;place-items:center;min-width:44px;min-height:44px;border:1px solid var(--line);border-radius:50%;background:var(--paper);color:var(--ink);font:26px/1 sans-serif;cursor:pointer}
.tc-rules-heading{display:flex;gap:16px;align-items:center;padding-right:22px;margin:8px 0 24px}
.tc-rules-heading>svg{width:64px;height:64px;flex-shrink:0}
.tc-rules-eyebrow{font-size:11px;letter-spacing:1.2px;color:var(--muted)}
.tc-rules-dialog h2{font:400 30px/1.15 'Lilita One',sans-serif;margin:8px 0 0}
.tc-rules-tabs{display:flex;gap:8px;background:var(--cream);padding:6px;border:1px solid var(--line);border-radius:14px;margin-bottom:22px}
.tc-rules-tabs button{flex:1;min-height:46px;padding:10px;border:0;border-radius:10px;background:transparent;color:var(--muted);font:600 16px/1.4 'Outfit',sans-serif;cursor:pointer}
.tc-rules-tabs button[aria-selected=true]{background:var(--tc-rules-tint);color:var(--ink);box-shadow:0 2px 7px #0001}
.tc-rules-dialog [hidden]{display:none!important}
.tc-rules-dialog ol{padding:0 0 0 25px;margin:0}
.tc-rules-dialog li{font:400 16px/1.65 'Outfit',sans-serif;padding-left:5px;margin-bottom:15px}
.tc-rules-dialog li::marker{font-weight:700;color:var(--muted)}
.tc-rules-note{font:400 14px/1.6 'Outfit',sans-serif;color:var(--muted);border-top:1px solid var(--line);padding-top:16px;margin-top:20px}
.tc-rules-dialog button:focus-visible,.tc-rules-dialog [role=tabpanel]:focus-visible{outline:3px solid #a77ed0;outline-offset:3px}
@media(max-width:800px){
 .rank-line .rank-tile:nth-child(n){display:block}
 .tc-discord-hero-row{grid-template-columns:minmax(0,1fr) 155px;gap:12px}
 .tc-discord-hero-row .portal-hero-art{display:none}
 .tc-discord-hero-row .tc-rules-button strong{font-size:24px}
}
@media(max-width:600px){
 .rank-line{grid-template-columns:1fr;gap:14px}
 .rank-line .rank-tile:nth-child(n){display:grid;grid-template-columns:110px minmax(0,1fr);min-width:0}
 .rank-line .rank-art{min-height:150px;height:100%;padding:20px 10px;display:grid;place-items:center}
 .rank-line .rank-text{padding:18px 12px;text-align:left;min-width:0}
 .rank-line .rank-text h3{font-size:23px}
 .rank-line .rank-text .price-block{justify-content:flex-start}
 .rank-line .rank-text .kit-button{margin-inline:0}
 .rank-line .recommended{left:8px;max-width:100px;font-size:10px}
 .tc-discord-hero-row{grid-template-columns:minmax(0,1fr) 112px;gap:10px}
 .tc-discord-hero-row .portal-hero{min-height:275px;padding:22px 17px}
 .tc-discord-hero-row .portal-hero-copy{width:auto;flex:1}
 .tc-discord-hero-row .portal-hero h1{font-size:32px;margin:10px 0 14px}
 .tc-discord-hero-row .portal-hero p{font-size:15px}
 .tc-discord-hero-row .portal-actions .button{font-size:14px;padding:10px}
 .tc-discord-hero-row .tc-rules-button{padding:16px 8px}
 .tc-discord-hero-row .tc-rules-button svg{width:62px;height:62px}
 .tc-discord-hero-row .tc-rules-button strong{font-size:22px}
 .tc-discord-hero-row .tc-rules-button small{font-size:13px}
 body.tc-vote-page .portal-hero{min-height:220px;padding:24px 22px}
 body.tc-vote-page .portal-hero-copy{width:100%}
 body.tc-vote-page .portal-hero-art{opacity:.3;right:-20px;bottom:-35px}
 body.tc-vote-page .portal-hero h1{max-width:250px}
 body:not(.tc-community) #main>.hero{min-height:300px}
 body:not(.tc-community) #main>.hero .hero-copy{padding:22px}
 .tc-server-row{gap:9px}
 .tc-server-row .tc-rules-button{flex-direction:column;gap:1px;padding:7px 12px;border-radius:14px}
 .tc-server-row .tc-rules-button svg{width:31px;height:31px}
 .tc-server-row .tc-rules-button strong{font-size:18px}
 .tc-rules-dialog{padding:24px 18px}
 .tc-rules-heading{gap:10px}.tc-rules-heading>svg{width:45px;height:45px}
 .tc-rules-dialog h2{font-size:25px}.tc-rules-eyebrow{font-size:9px}
 .tc-rules-tabs button{font-size:14px}
}
@keyframes tc-book-wiggle{35%{transform:rotate(-5deg) translateY(-4px)}70%{transform:rotate(3deg)}}
@keyframes tc-rules-arrive{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.tc-rules-button,.tc-invite-hero,.tc-rules-button svg,.tc-rules-dialog[open]{animation:none!important;transition:none!important;transform:none!important}}
