/* Toontown look for the public and account pages. Loaded after home.css; admin pages don't use it. */
@font-face {
  font-family: 'Housearama';
  src: url('../fonts/Housearama-Kingpin.woff2') format('woff2'), url('../fonts/Housearama-Kingpin.woff') format('woff');
  font-display: swap;
}

:root {
  --tt-sky: #3c8bd8;
  --tt-sky-deep: #1f5fae;
  --tt-orange: #f78c19;
  --tt-orange-deep: #c9650a;
  --tt-yellow: #fff200;
  --tt-ink: #13284a;
  --tt-ink-soft: #4a5f80;
  --tt-paper: #eef5fd;
  --tt-line: #cfe0f3;
  --tt-go: #2fa84f;
  --tt-stop: #d64545;
  --tt-display: 'Housearama', 'Sigmar One', 'Arial Black', Impact, sans-serif;
  --tt-clouds: url('../images/sky-clouds.jpg');
}

body { background-color: var(--tt-paper); color: var(--tt-ink); }
h1, h2, h3, h4, h5 { font-family: var(--tt-display); font-weight: 400; letter-spacing: .02em; }
h1, h2, h3 { color: var(--tt-sky-deep); text-wrap: balance; }

/* Navbar */
.navbar { background-color: var(--tt-sky); box-shadow: 0 3px 0 var(--tt-sky-deep); padding-inline: max(16px, 3vw); font-family: var(--tt-display); }
.navbar .nav-link, .navbar .navbar-text, .navbar .btn-link { font-family: var(--tt-display); font-size: 19px; letter-spacing: .02em; color: #fff; border-bottom: 0 !important; }
.navbar .nav-item.active .nav-link, .navbar .nav-link:hover, .navbar .nav-link:focus, .navbar .btn-link:hover, .navbar .btn-link:focus { color: var(--tt-yellow); }
.navbar .navbar-text { opacity: .85; }

/* Headline lettering: white with an orange then black outline, like the logo */
.tt-toon {
  color: #fff;
  text-shadow:
    -2px -2px 0 var(--tt-orange), 2px -2px 0 var(--tt-orange), -2px 2px 0 var(--tt-orange), 2px 2px 0 var(--tt-orange),
    0 5px 0 #111, 3px 5px 0 #111, -3px 5px 0 #111;
}

/* Sky bands */
.tt-sky { background: var(--tt-sky) var(--tt-clouds) center / cover no-repeat; text-align: center; padding-inline: max(16px, 4vw); }
.tt-hero { padding-block: 40px 72px; display: grid; justify-items: center; gap: 14px; }
.tt-hero .tt-logo { width: min(400px, 78vw); height: auto; filter: drop-shadow(0 8px 0 rgba(10, 40, 90, .25)); }
.tt-hero h1 { font-size: clamp(34px, 6vw, 58px); line-height: 1.05; margin: 4px 0 0; }
.tt-band { padding-block: 34px 44px; }
.tt-band h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.05; margin: 0; }
.tt-lede { color: #fff; font-size: 18px; max-width: 36em; margin: 10px auto 0; text-shadow: 0 1px 3px rgba(0, 30, 80, .55); text-wrap: balance; }
.tt-hero .tt-lede { margin: 0; }

/* Buttons */
.tt-btn {
  font-family: var(--tt-display); font-size: 22px; letter-spacing: .02em; line-height: 1.2;
  border: 3px solid #111; border-radius: 999px; padding: 11px 30px 9px;
  text-decoration: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px;
  color: #fff; transition: transform .12s ease, box-shadow .12s ease;
}
.tt-btn:hover { color: #fff; transform: translateY(-2px); }
.tt-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #111; }
.tt-btn:focus-visible { outline: 3px solid var(--tt-orange); outline-offset: 3px; }
.tt-btn-get { background: var(--tt-orange); box-shadow: 0 6px 0 #111; text-shadow: 0 2px 0 var(--tt-orange-deep); }
.tt-btn-play { background: var(--tt-go); box-shadow: 0 6px 0 #111; font-size: 28px; padding: 14px 42px 12px; }
.tt-btn-blue { background: var(--tt-sky); box-shadow: 0 4px 0 #111; }
.tt-btn-white, .tt-btn-white:hover { background: #fff; color: var(--tt-sky-deep); box-shadow: 0 4px 0 #111; }
.tt-btn-small { font-size: 17px; padding: 7px 20px 5px; box-shadow: 0 4px 0 #111; }
.tt-btn[aria-disabled="true"] { background: #d7dee8; color: #7b8799; box-shadow: 0 4px 0 #7b8799; border-color: #7b8799; cursor: not-allowed; transform: none; }
.tt-row-btns { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.tt-meta { color: #fff; font-size: 14px; font-weight: 700; text-shadow: 0 1px 3px rgba(0, 30, 80, .6); }
.tt-session { display: grid; justify-items: center; gap: 8px; }
.tt-session p { margin: 0; color: #fff; font-weight: 700; text-shadow: 0 1px 3px rgba(0, 30, 80, .6); }
.tt-session form { margin: 0; }
.tt-or { color: #fff; font-family: var(--tt-display); font-size: 18px; margin-top: 6px; }

/* Content */
.tt-wrap { max-width: 1060px; margin: 0 auto; padding: 52px max(16px, 4vw) 28px; display: grid; gap: 60px; }
.tt-wrap h2 { font-size: clamp(28px, 4vw, 38px); line-height: 1.1; margin: 0 0 18px; }
.tt-narrow { max-width: 820px; }
.tt-prose p { max-width: 64ch; }
.tt-panel { background: #fff; border: 3px solid #111; border-radius: 22px; box-shadow: 0 7px 0 #111; padding: 26px 28px; }
.tt-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; align-items: start; }
.tt-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; padding: 0; list-style: none; }
.tt-chips li { background: var(--tt-yellow); border: 2px solid #111; border-radius: 999px; padding: 3px 12px; font-weight: 900; font-size: 14px; }
.tt-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tt-section-head a { font-weight: 700; }

/* News cards: every post is a release, so the title is the art */
.tt-news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 26px; }
/* Home shows four posts, so two columns keep the rows even */
.tt-news-grid.tt-two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.tt-news-card { background: #fff; border: 3px solid #111; border-radius: 22px; box-shadow: 0 7px 0 #111; overflow: hidden; display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: inherit; transition: transform .12s ease; }
.tt-news-card:hover { color: inherit; transform: translateY(-3px); }
.tt-news-art { border-bottom: 3px solid #111; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; min-height: 120px; background: var(--tt-sky); }
.tt-news-art.tt-c0 { background: #3c8bd8; } .tt-news-art.tt-c1 { background: #e3591d; } .tt-news-art.tt-c2 { background: #2fa84f; }
.tt-news-art.tt-c3 { background: #8a4fd6; } .tt-news-art.tt-c4 { background: #1f9fb3; } .tt-news-art.tt-c5 { background: #d6457a; }
.tt-news-art .tt-title { font-family: var(--tt-display); font-size: 32px; line-height: 1.05; min-width: 0; overflow-wrap: break-word; }
.tt-news-art img { width: 84px; height: 84px; object-fit: contain; flex: none; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .25)); }
.tt-news-body { padding: 18px 22px 22px; display: grid; gap: 8px; align-content: start; }
.tt-news-body h3 { font-size: 24px; margin: 0; }
.tt-news-body p { margin: 0; color: var(--tt-ink-soft); font-size: 15px; }
.tt-more { font-weight: 900; color: var(--tt-orange-deep); font-size: 14px; }

/* Article */
.tt-article { padding: 0; overflow: hidden; }
.tt-article .tt-news-art { min-height: 150px; }
.tt-article .tt-news-art .tt-title { font-size: 60px; }
.tt-article-body { padding: 26px 30px 30px; }
.tt-article-body time { font-weight: 900; color: var(--tt-ink-soft); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.tt-article-body h2, .tt-article-body h3, .tt-article-body h4 { font-size: 26px; margin: 26px 0 8px; }
.tt-article-body ul { padding-left: 1.2em; }
.tt-article-body li { margin-bottom: 6px; max-width: 66ch; }
.tt-article-body img { max-width: 100%; height: auto; border-radius: 12px; }
.tt-back { font-weight: 900; text-decoration: none; }

/* Downloads */
.tt-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.tt-card { background: #fff; border: 3px solid #111; border-radius: 22px; box-shadow: 0 7px 0 #111; padding: 22px 22px 24px; display: grid; grid-template-rows: auto auto 1fr auto auto; gap: 14px; position: relative; }
.tt-card.tt-mine { border-color: var(--tt-orange-deep); box-shadow: 0 7px 0 var(--tt-orange-deep); }
.tt-tag { position: absolute; top: -15px; left: 20px; background: var(--tt-yellow); color: #111; border: 2px solid #111; border-radius: 999px; font: 900 12px/1 'Lato', sans-serif; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; }
.tt-card h3 { font-size: 30px; margin: 4px 0 0; line-height: 1; }
.tt-file { font-size: 14px; color: var(--tt-ink-soft); margin: 0; }
.tt-file b { color: var(--tt-ink); }
.tt-card ul { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; font-size: 15px; }
.tt-note { font-size: 13.5px; color: var(--tt-ink-soft); background: var(--tt-paper); border-radius: 12px; padding: 10px 12px; margin: 0; }
.tt-note b { color: var(--tt-ink); }
.tt-card .tt-btn { justify-self: start; }
.tt-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; counter-reset: tt-step; }
.tt-steps li { counter-increment: tt-step; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.tt-steps li::before { content: counter(tt-step); font-family: var(--tt-display); font-size: 30px; line-height: 1; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; padding-top: 4px; background: var(--tt-yellow); color: #111; border: 3px solid #111; box-shadow: 0 4px 0 #111; }
.tt-steps h3 { font-size: 22px; margin: 2px 0 4px; }
.tt-steps p { margin: 0; font-size: 15px; color: var(--tt-ink-soft); }

/* My Toons */
.tt-toons { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.tt-toon-slot { border: 3px solid #111; border-radius: 22px; box-shadow: 0 7px 0 #111; overflow: hidden; background: #fff; }
.tt-toon-slot .tt-portrait { display: grid; place-items: end center; height: 170px; border-bottom: 3px solid #111; background: #4f9be6; }
.tt-toon-slot .tt-portrait img { height: 150px; }
.tt-toon-slot:nth-child(5n+2) .tt-portrait { background: #47b86a; }
.tt-toon-slot:nth-child(5n+3) .tt-portrait { background: #e86aa6; }
.tt-toon-slot:nth-child(5n+4) .tt-portrait { background: #9a6be0; }
.tt-toon-slot:nth-child(5n+5) .tt-portrait { background: #e65c4f; }
.tt-toon-fields { padding: 16px; display: grid; gap: 12px; }
.tt-toon-fields label { font-weight: 900; font-size: 14px; margin-bottom: 4px; }
.tt-id { font-size: 12px; color: var(--tt-ink-soft); word-break: break-all; }
.tt-savebar { display: flex; justify-content: flex-end; margin-top: 26px; }

/* Forms on these pages */
.tt-form .form-control, .tt-form .form-select { border: 2px solid var(--tt-line); border-radius: 12px; padding: 10px 12px; color: var(--tt-ink); }
.tt-form .form-control:focus, .tt-form .form-select:focus { border-color: var(--tt-sky); box-shadow: 0 0 0 3px rgba(60, 139, 216, .25); }
.tt-form label { font-weight: 900; font-size: 14px; }

/* Account pages share one card on the sky */
.account-page { background: var(--tt-sky) var(--tt-clouds) center / cover no-repeat fixed; min-height: 100vh; height: auto !important; padding-bottom: 56px; }
.account-page .login-div { background: #fff; border: 3px solid #111; border-radius: 22px; box-shadow: 0 7px 0 #111; padding: 26px 28px !important; max-width: 460px; }
.account-page .login-div h2 { font-size: 40px; line-height: 1; margin: 0 0 4px; }
.account-page .login-div .text-muted { color: var(--tt-ink-soft) !important; font-size: 15px; }
.account-page .login-div .form-control { border: 2px solid var(--tt-line); border-radius: 12px; padding: 10px 12px; }
.account-page .login-div .form-control:focus { border-color: var(--tt-sky); box-shadow: 0 0 0 3px rgba(60, 139, 216, .25); }
.account-page .login-div .btn-primary {
  font-family: var(--tt-display); font-size: 22px; letter-spacing: .02em; color: #fff;
  background: var(--tt-orange); border: 3px solid #111; border-radius: 999px; box-shadow: 0 6px 0 #111;
  padding: 9px 34px 7px; margin-top: 8px; text-shadow: 0 2px 0 var(--tt-orange-deep);
}
.account-page .login-div .btn-primary:hover { background: var(--tt-orange); transform: translateY(-2px); }
.account-page .link-white { color: var(--tt-yellow); font-weight: 700; }
.account-page .text-white { font-weight: 700; text-shadow: 0 1px 3px rgba(0, 30, 80, .6); }

/* Workshop: keep its layout and scripts, restyle the frame */
.workshop-heading h1 { font-size: clamp(36px, 6vw, 52px); color: var(--tt-sky-deep); }
.workshop-tabs a { font-family: var(--tt-display); font-size: 19px; border: 3px solid #111; border-radius: 14px; color: var(--tt-sky-deep); padding: .55rem 1.2rem .35rem; }
.workshop-tabs a[aria-current="page"] { background: var(--tt-yellow); color: #111; border-color: #111; }
.workshop-sidebar, .workshop-card { border: 3px solid #111; box-shadow: 0 6px 0 #111; }
.workshop-sidebar { border-radius: 22px; }
.workshop-sidebar h2, .workshop-library h2 { font-family: var(--tt-display); font-weight: 400; color: var(--tt-sky-deep); font-size: 26px; }
.workshop-sidebar .btn-primary { font-family: var(--tt-display); font-weight: 400; font-size: 20px; background: var(--tt-orange); border: 3px solid #111; border-radius: 999px; box-shadow: 0 5px 0 #111; }
.workshop-sidebar .btn-primary:hover { background: var(--tt-orange); }
.workshop-card { border-radius: 18px; }
.dressing-stage { border: 3px solid #111; border-radius: 22px; box-shadow: 0 6px 0 #111; }
.workshop-verification form { border: 3px solid #111; border-radius: 22px; box-shadow: 0 7px 0 #111; }
.workshop-verification .btn-primary { font-family: var(--tt-display); font-size: 22px; letter-spacing: .02em; color: #fff; background: var(--tt-orange); border: 3px solid #111; border-radius: 999px; box-shadow: 0 6px 0 #111; padding: 9px 20px 7px; text-shadow: 0 2px 0 var(--tt-orange-deep); }
.workshop-verification .btn-primary:hover { background: var(--tt-orange); }

/* Footer */
footer.container { color: var(--tt-ink-soft); font-size: 13px; padding-block: 8px 40px; }

@media (max-width: 560px) {
  .navbar .nav-link, .navbar .navbar-text, .navbar .btn-link { font-size: 17px; }
  .tt-btn { font-size: 19px; }
  .tt-panel { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .tt-btn, .tt-news-card { transition: none; }
  .tt-btn:hover, .tt-btn:active, .tt-news-card:hover, .account-page .login-div .btn-primary:hover { transform: none; }
}
