/* Original-page-inspired design: content layout is deliberately unembellished. */
:root {
  color-scheme:dark;
  --bg:#0c0a25;
  --text:#faf9ff;
  --muted:#bdbacc;
  --surface:#201d3b;
  --surface-hi:#302c4b;
  --soft:#302d46;
  --line:#353147;
  --comment:#464459;
  --comment-nested:#777582;
  --accent:#ffab00;
  --accent-strong:#ffc342;
  --accent-ink:#0c0a25;
  --faint:#a4a1b7;
  --success:#59c96f;
  --danger:#ef9aab;
  --max:960px;
}
html[data-theme='light'] {
  color-scheme:light;
  --bg:#faf9ff;
  --text:#17132a;
  --muted:#59556f;
  --surface:#f2f0f7;
  --surface-hi:#e8e6f0;
  --soft:#e5e2ed;
  --line:#ccc8d8;
  --comment:#e5e2ec;
  --comment-nested:#d2cfdd;
  --accent:#b56800;
  --accent-strong:#965700;
  --accent-ink:#fff;
  --faint:#67617b;
  --success:#217e40;
  --danger:#a33d52;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;min-width:320px;background:var(--bg);color:var(--text);font:16px/1.5 Arial,Helvetica,sans-serif;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
a:hover{text-decoration:none}
img{max-width:100%;height:auto;display:block}
button,input,textarea,select{font:inherit}
button{cursor:pointer}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.shell{width:min(var(--max),calc(100% - 36px));margin-inline:auto}
.skip-link{position:absolute;left:12px;top:-100px;padding:8px 12px;background:var(--surface);z-index:20}.skip-link:focus{top:12px}
/* Original navigation: logo left, minimal links centered, play button right. */
.site-header{width:100%;padding:0 18px}
.site-header-inner{width:min(720px,100%);height:54px;margin:auto;display:grid;grid-template-columns:1fr 1fr 1fr;gap:16px;align-items:center}
.brand{display:inline-block;width:155px;max-width:100%}
.brand img{width:155px;height:auto;object-fit:contain}
html[data-theme='light'] .brand img{filter:brightness(0)}
.main-nav{display:flex;justify-content:center;align-items:center;gap:25px;white-space:nowrap}
.main-nav a{font-size:13px;font-weight:700;color:var(--text)}
.main-nav a.active{color:var(--accent)}
.header-controls{display:flex;justify-content:flex-end;align-items:center;gap:12px}
.header-play{background:#fff;color:#0f0d21;font-size:11px;line-height:1;padding:10px 17px;border-radius:3px;font-weight:700;white-space:nowrap}
html[data-theme='light'] .header-play{background:#17132a;color:#fff}
.theme-toggle{width:30px;height:30px;border:1px solid var(--line);background:transparent;color:var(--text);border-radius:3px;display:grid;place-items:center;font-size:17px}
/* Home: content-only, like the screenshot. */
.home-logo{display:flex;justify-content:center;padding-top:1px}
.home-logo img{width:min(450px,90vw);height:auto;object-fit:contain;background:#f2f3f1}
.home-section{width:min(660px,calc(100% - 36px));margin-inline:auto}
#projects{margin-top:105px}
.section-heading{font-size:40px;line-height:1.2;text-align:center;font-weight:700;margin:0 0 16px}
.home-row{min-height:188px;display:grid;grid-template-columns:1fr 1fr;align-items:center;column-gap:28px;margin:0 auto 17px}
.home-image{justify-self:center;display:flex;align-items:center;justify-content:center;width:230px;max-width:100%;min-height:140px}
.home-image img{width:auto;height:auto;max-width:200px;max-height:195px;object-fit:contain;border-radius:12px}
.home-copy{text-align:center;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px}
.home-copy h2,.home-copy h3{font-size:20px;line-height:1.12;max-width:315px;font-weight:700;margin:0}
.orange-button{display:inline-block;background:#ffac00;color:#fff;border-radius:0;padding:8px 17px;font-size:11px;line-height:1.1;font-weight:700}
.orange-button:hover{background:#e99c00}
#projects .home-row{margin-bottom:58px}
.news-section .home-row{min-height:168px;margin-bottom:15px}
.news-section .home-row.reverse .home-image{grid-column:2;grid-row:1}
.news-section .home-row.reverse .home-copy{grid-column:1;grid-row:1}
.news-section .home-copy h3{font-size:18px}
.advent-banner{display:grid;grid-template-columns:170px 1fr;gap:22px;align-items:center;margin:78px auto 75px;width:min(660px,calc(100% - 36px));padding:16px;border:1px solid var(--line)}
.advent-banner img{height:150px;width:170px;object-fit:cover;border-radius:8px}
.advent-copy{text-align:left}.advent-copy h2{font-size:23px;line-height:1.2;margin:0 0 12px}.advent-copy span{font-size:13px;color:var(--muted)}
/* Articles preserve original paragraphs and imported visual comment markup. */
.detail-page{max-width:960px;padding-top:100px;padding-bottom:85px}
.article-header h1{font-size:clamp(32px,4vw,43px);font-weight:700;line-height:1.18;margin:0 0 14px}
.article-date{font-size:13px;color:var(--muted);margin:0 0 16px}
.article-cover{display:flex;justify-content:center;margin:20px auto 24px}
.article-cover img{max-width:min(440px,100%);height:auto}
.article-body{font-size:16px;line-height:1.68;overflow-wrap:break-word}
.article-body p{margin:0 0 14px}
.article-body h1,.article-body h2,.article-body h3,.article-body h4{line-height:1.25;font-weight:700;margin:22px 0 13px}
.article-body h1{font-size:26px}.article-body h2{font-size:20px}.article-body h3{font-size:18px}.article-body h4{font-size:16px}
.article-body :is(figure,.wp-block-image){margin:18px auto 22px;text-align:center}
.article-body figure img,.article-body>.elementor img,.article-body>div>img{margin-inline:auto}
.article-body img{width:auto;height:auto;max-width:min(440px,100%);object-fit:contain;margin-inline:auto}
.article-body figcaption{font-size:12px;color:var(--muted);text-align:center;margin:4px 0 0}
.article-body a:not(.orange-button):not(.source-button){text-decoration:underline;text-underline-offset:2px}
.article-body ul,.article-body ol{padding-left:24px}
.article-body li{margin-bottom:6px}
.article-body blockquote{border-left:2px solid var(--line);padding-left:16px;margin:18px 0}
.article-body hr{border:0;border-top:1px solid var(--line);margin:26px 0}
.article-body table{max-width:100%;display:block;overflow-x:auto;border-collapse:collapse}
.article-body td,.article-body th{border:1px solid var(--line);padding:7px 10px}
.article-body .elementor-widget-container{max-width:100%}
.article-body .elementor-heading-title{margin-top:14px}
.article-body .elementor-spacer-inner{height:14px}
.article-body .wp-block-columns{display:flex;gap:24px}.article-body .wp-block-column{min-width:0;flex:1}
/* Visual comments are not a live public comment system. */
.article-body .motm-comments{margin-top:28px}
.article-body .motm-comments h2,.article-body .motm-comments h3{margin:28px 0 14px}
.article-body .visual-comment,.article-body .comment,.article-body .comment-body,.article-body li.comment,.article-body .motm-comment {
  background:var(--comment);padding:13px 16px;margin:12px 0;border:0;border-radius:0;list-style:none;
}
.article-body .motm-comment p{margin:0 0 5px}
.article-body .motm-comment p:last-child{margin:0}
.article-body .motm-comment img,.article-body .visual-comment img,.article-body .comment img{margin:4px 0;max-width:130px}
.article-body .motm-comment .motm-comment,.article-body .comment .comment,.article-body .children .comment {background:var(--comment-nested);margin:12px 0 0;padding:12px}
.article-body .comment-list,.article-body .children{padding:0;margin:0;list-style:none}
.article-body .comment-date,.article-body .comment-metadata,.article-body .comment-meta{font-size:13px;color:var(--muted)}
.article-body .comment-author{font-weight:700}
.article-body iframe{display:block;width:100%;max-width:100%;min-height:400px;border:3px solid #080711;margin:16px auto 20px;background:transparent}
.preview-banner{padding:13px 16px;background:var(--surface);border:1px solid var(--line);margin:0 0 22px}.preview-banner a{text-decoration:underline}
/* Juicepine uses a centered title/intro and wide embedded game previews. */
.project-page{max-width:1040px;padding-top:125px}
.project-page .article-header h1{text-align:center;font-size:clamp(39px,5.5vw,64px);margin-bottom:20px}
.project-body>p:first-child,.project-body>.project-intro{text-align:center;font-size:15px;line-height:1.55;margin-bottom:32px}
.project-body .project-actions{text-align:center;display:flex;justify-content:center;gap:18px;margin:25px 0 125px}
.project-body .project-actions a{padding:12px 19px;background:#ffac00;color:#fff;text-decoration:none;font-size:13px;font-weight:700}
.project-body .project-actions a:last-child{background:#49c46d}
.project-body .project-crew{display:grid;grid-template-columns:38% 1fr;align-items:center;column-gap:60px;margin:0 auto 55px;max-width:850px}
.project-body .project-crew img{max-width:260px;border-radius:12px}
.project-body .project-crew h2{text-align:left;font-size:18px;margin:0 0 14px}
.project-body .project-crew p{font-size:15px;line-height:1.6}
.project-body .project-character{text-align:center;margin:30px auto 42px}
.project-body .project-character img{max-width:260px;max-height:270px;margin:auto}
.project-body .project-character h2{font-size:18px;margin:9px 0 0}
.project-body .project-versions{margin-top:38px;border-top:1px solid var(--text);padding-top:15px}
.project-body .project-version h2{text-align:center;font-size:19px;margin:0 0 14px}
.project-body .project-version iframe{aspect-ratio:16 / 9;min-height:0;height:auto;width:100%;border:3px solid #080711;margin:0 0 18px}
/* Legal documents and editor components use the same palette. */
.site-footer{border-top:1px solid var(--line);margin-top:35px;font-size:13px;color:var(--muted)}
.footer-content{min-height:130px;display:flex;align-items:center;justify-content:space-between;gap:22px;flex-wrap:wrap;padding:30px 0}
.footer-content nav{display:flex;gap:18px;flex-wrap:wrap}.footer-content a:hover{text-decoration:underline}
.notifications{padding-top:14px}.notice{background:var(--surface);padding:12px 16px;margin:8px 0;border:1px solid var(--line)}
.legal-page{padding-top:70px;padding-bottom:80px;max-width:840px}.legal-page h1{font-size:38px}.legal-page h2{font-size:22px;margin:24px 0 8px}.legal-page a{text-decoration:underline}.legal-intro{color:var(--muted)}.legal-note,.legal-alert{padding:14px 18px;border:1px solid var(--line);background:var(--surface)}
.error-page{min-height:50vh;padding-block:120px}.muted{color:var(--muted)}.mini{font-size:13px}
.button{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 16px;border:1px solid var(--line);border-radius:4px;font-size:14px;font-weight:600;cursor:pointer}
.button-primary{color:#111;background:#ffac00;border-color:#ffac00}.button-secondary,.button-outline{background:transparent;color:var(--text)}
@media (max-width:720px){
  .site-header{padding:0 12px}.site-header-inner{grid-template-columns:auto 1fr auto;gap:8px;height:62px}
  .brand,.brand img{width:125px}.main-nav{gap:12px}.main-nav a{font-size:12px}
  .header-controls{gap:6px}.header-play{padding:9px 10px;font-size:10px}.theme-toggle{width:28px;height:28px}
  .home-logo img{width:min(450px,92vw)}#projects{margin-top:75px}
  .section-heading{font-size:33px}
  .home-row{column-gap:12px;min-height:145px}.home-image{width:100%;min-height:100px}.home-image img{max-width:min(100%,155px);max-height:160px}
  .home-copy h2,.home-copy h3,.news-section .home-copy h3{font-size:15px}.news-section .home-row{min-height:145px}
  .advent-banner{grid-template-columns:110px 1fr;gap:12px}.advent-banner img{width:110px;height:120px}.advent-copy h2{font-size:18px}
  .detail-page{padding-top:55px;padding-bottom:55px}.article-header h1{font-size:32px}
  .article-body{font-size:15px}.project-page{padding-top:68px}.project-page .article-header h1{font-size:clamp(32px,7vw,46px)}
  .project-body .project-crew{grid-template-columns:1fr;gap:20px;text-align:center}.project-body .project-crew h2{text-align:center}
  .project-body .project-crew img{margin:auto}.project-body .project-actions{margin-bottom:60px}
  .footer-content{align-items:flex-start;flex-direction:column;gap:12px}
}
@media (max-width:430px){
 .site-header-inner{grid-template-columns:auto 1fr auto}.brand,.brand img{width:92px}.main-nav{gap:9px}.main-nav a{font-size:11px}
 .header-play{display:none}.home-row{grid-template-columns:45% 55%;column-gap:0}.home-image img{max-width:95%;max-height:140px}
 .home-copy h2,.home-copy h3,.news-section .home-copy h3{font-size:14px}.orange-button{padding:7px 13px}
 .advent-banner{grid-template-columns:90px 1fr}.advent-banner img{width:90px;height:90px}
 .article-body{font-size:14px}.project-body .project-version iframe{aspect-ratio:16/10}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* v5: full-page screenshots were scaled down. Use actual viewport proportions. */
:root{--max:1080px}
.site-header{padding-inline:22px}
.site-header-inner{width:min(1080px,100%);height:68px;grid-template-columns:1fr auto 1fr;gap:24px}
.brand,.brand img{width:160px}
.main-nav{gap:28px}
.main-nav a{font-size:14px}
.header-controls{gap:14px}
.header-play{font-size:12px;padding:10px 16px}
.home-logo{padding-top:18px}
.home-logo img{width:min(310px,85vw)}
.home-section{width:min(760px,calc(100% - 36px))}
#projects{margin-top:56px}
.section-heading{font-size:34px;margin-bottom:18px}
.home-row{min-height:150px;margin-bottom:16px;gap:24px}
.home-image{width:210px;min-height:120px}
.home-image img{max-width:188px;max-height:170px}
.home-copy h2,.home-copy h3{font-size:18px;line-height:1.22}
.news-section .home-copy h3{font-size:17px}
.news-section .home-row{min-height:145px;margin-bottom:12px}
#projects .home-row{margin-bottom:48px}
.orange-button{padding:9px 16px;font-size:12px}
.advent-banner{width:min(760px,calc(100% - 36px));grid-template-columns:150px 1fr;gap:20px;margin:30px auto 12px;padding:12px 16px;border-radius:4px}
.advent-banner img{width:150px;height:105px;object-fit:cover;border-radius:6px}
.advent-copy h2{font-size:20px;line-height:1.3;margin:0}
.detail-page{max-width:860px;padding-top:55px;padding-bottom:75px}
.article-header h1{font-size:clamp(27px,3vw,36px);line-height:1.18;margin:0 0 10px}
.article-body{font-size:16px;line-height:1.64}
.article-body p{margin-bottom:16px}
.article-body h2{font-size:21px}
.article-body h3{font-size:18px}
.article-body figure img,.article-body img{max-width:min(440px,100%)}
.project-page{max-width:1000px;padding-top:80px}
.project-page .article-header h1{font-size:clamp(31px,3.6vw,46px)}
.project-body .project-actions{margin-bottom:75px}
.project-body .project-crew{max-width:820px;column-gap:44px}
.project-body .project-crew img{max-width:240px}
.project-body .project-character img{max-width:230px;max-height:245px}

/* Editor image layout classes are persisted as HTML and rendered publicly. */
.article-body figure.image-align-left{margin-left:0;margin-right:auto;text-align:left}
.article-body figure.image-align-center{margin-left:auto;margin-right:auto;text-align:center}
.article-body figure.image-align-right{margin-left:auto;margin-right:0;text-align:right}
.article-body figure.image-size-25{width:25%}
.article-body figure.image-size-50{width:50%}
.article-body figure.image-size-75{width:75%}
.article-body figure.image-size-100{width:100%}
.article-body figure[class*="image-size-"] img{display:block;width:100%;max-width:100%;height:auto}
.article-body figure[class*="image-size-"] figcaption{width:100%}
.article-body .image-align-left figcaption{text-align:left}
.article-body .image-align-center figcaption{text-align:center}
.article-body .image-align-right figcaption{text-align:right}

@media(max-width:720px){
  .site-header{padding-inline:14px}
  .site-header-inner{height:64px;grid-template-columns:auto 1fr auto;gap:10px}
  .brand,.brand img{width:130px}
  .main-nav{gap:12px}.main-nav a{font-size:12px}
  .header-controls{gap:8px}.header-play{font-size:10px;padding:8px 10px}
  .home-logo{padding-top:12px}.home-logo img{width:min(310px,85vw)}
  .section-heading{font-size:30px}
  #projects{margin-top:44px}
  .home-row{min-height:130px;column-gap:12px}
  .home-image img{max-height:145px;max-width:170px}
  .home-copy h2,.home-copy h3,.news-section .home-copy h3{font-size:15px}
  .advent-banner{grid-template-columns:112px 1fr;gap:12px;margin:24px auto 8px}
  .advent-banner img{height:96px;width:112px}
  .advent-copy h2{font-size:17px}
  .detail-page{padding-top:34px;padding-bottom:50px}
  .article-header h1{font-size:clamp(25px,5vw,32px)}
  .project-page{padding-top:54px}
  .project-page .article-header h1{font-size:clamp(28px,6vw,40px)}
}
@media(max-width:430px){
  .brand,.brand img{width:104px}.main-nav{gap:10px}.main-nav a{font-size:11px}
  .home-row{grid-template-columns:45% 55%;gap:0}
  .home-image img{max-height:128px;max-width:95%}
  .advent-banner{grid-template-columns:88px 1fr;padding:10px}
  .advent-banner img{width:88px;height:88px}
  .advent-copy h2{font-size:15px}
  .article-body{font-size:15px}
}

/* v6: original page proportions on normal, non-scaled desktop viewports. */
:root{--max:1180px;--text:#f1f0f6;--muted:#c6c4d2}
.site-header{padding-inline:28px}
.site-header-inner{width:min(1180px,100%);height:92px;gap:28px}
.brand{display:inline-flex;align-items:center;justify-self:start;gap:12px;width:auto;min-width:230px;max-width:none;text-decoration:none}
.brand .brand-icon{width:48px;height:48px;object-fit:contain;flex-shrink:0}
.brand-name{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:0;color:var(--text);font-size:21px;font-weight:800;line-height:1.04;letter-spacing:-.02em;text-align:left;white-space:nowrap}
html[data-theme='light'] .brand .brand-icon{filter:brightness(0)}
.main-nav{gap:34px}
.main-nav a{font-size:16px}
.header-play{font-size:14px;padding:12px 20px}
.theme-toggle{width:38px;height:38px;font-size:20px}
.home-logo{padding-top:26px}
.home-logo img{width:min(430px,90vw)}
.home-section{width:min(970px,calc(100% - 48px))}
#projects{margin-top:68px}
.section-heading{font-size:40px;margin-bottom:26px}
.home-row{min-height:213px;gap:34px;margin-bottom:26px}
.home-image{width:295px;min-height:180px}
.home-image img{max-width:265px;max-height:225px}
.home-copy h2,.home-copy h3{font-size:23px;max-width:410px;line-height:1.22}
.news-section .home-copy h3{font-size:21px}
.news-section .home-row{min-height:205px;margin-bottom:22px}
#projects .home-row{margin-bottom:66px}
.orange-button{font-size:14px;padding:11px 22px}
.advent-banner{width:min(970px,calc(100% - 48px));grid-template-columns:210px 1fr;gap:26px;padding:18px 24px;margin:32px auto 18px}
.advent-banner img{width:210px;height:144px}
.advent-copy h2{font-size:28px}
.detail-page{max-width:1060px;padding-top:78px;padding-bottom:90px}
.article-header h1{font-size:clamp(34px,3.8vw,48px);line-height:1.16;margin-bottom:16px}
.article-date{font-size:16px;margin-bottom:22px}
.article-body{font-size:18px;line-height:1.68}
.article-body p{margin-bottom:19px}
.article-body h1{font-size:32px}.article-body h2{font-size:26px}.article-body h3{font-size:21px}.article-body h4{font-size:18px}
.article-body figure img,.article-body img{max-width:min(560px,100%)}
.article-body .motm-comment,.article-body .comment,.article-body .visual-comment{padding:16px 20px}
.project-page{max-width:1120px;padding-top:100px}
.project-page .article-header h1{font-size:clamp(44px,5vw,64px)}
.project-body>.project-intro{font-size:17px}
.project-body .project-crew{max-width:1000px;column-gap:65px}
.project-body .project-crew img{max-width:300px}
.project-body .project-character img{max-width:270px;max-height:290px}
.project-body .project-crew p{font-size:17px}
.project-body .project-actions{margin-bottom:100px}
/* Game tabs replace three simultaneously loaded Unity iframes. */
.project-body .project-versions{margin:48px auto 0;max-width:1060px;padding-top:22px}
.project-body .game-section-heading{text-align:center;margin:0 0 20px;font-size:26px}
.game-tabs{display:flex;justify-content:center;gap:10px;margin-bottom:16px;flex-wrap:wrap}
.game-tab{font-size:16px;font-weight:700;line-height:1.2;color:var(--text);background:var(--surface);border:1px solid var(--line);border-radius:5px;padding:11px 22px;min-width:126px;transition:background-color .15s,border-color .15s}
.game-tab:hover{background:var(--surface-hi)}
.game-tab.is-active{background:var(--accent);border-color:var(--accent);color:#121021}
.game-viewport{position:relative;width:100%;aspect-ratio:16/9;background:#11101d;border:2px solid var(--line)}
.project-body .game-viewport iframe{display:block;width:100%;height:100%;min-height:0;aspect-ratio:auto;margin:0;border:0}
@media(max-width:900px){
  .site-header-inner{height:80px;gap:14px}
  .brand{gap:8px;min-width:190px}.brand .brand-icon{width:41px;height:41px}.brand-name{font-size:18px}
  .main-nav{gap:18px}.main-nav a{font-size:14px}
  .header-play{font-size:12px;padding:10px 12px}
  .home-section,.advent-banner{width:min(820px,calc(100% - 40px))}
  .home-image{width:245px}.home-image img{max-width:230px;max-height:190px}
  .home-row{min-height:180px}.news-section .home-row{min-height:178px}
  .home-copy h2,.home-copy h3{font-size:20px}.news-section .home-copy h3{font-size:19px}
  .detail-page{padding-top:55px}
}
@media(max-width:720px){
  .site-header{padding-inline:14px}
  .site-header-inner{height:76px;grid-template-columns:auto 1fr auto;gap:10px}
  .brand{min-width:0;gap:7px}.brand .brand-icon{width:36px;height:36px}.brand-name{font-size:15px}
  .main-nav{justify-content:center;gap:10px}.main-nav a{font-size:12px}
  .header-controls{gap:6px}.header-play{font-size:11px;padding:8px 9px}
  .theme-toggle{width:32px;height:32px;font-size:17px}
  .home-logo{padding-top:16px}.home-logo img{width:min(390px,90vw)}
  .home-section,.advent-banner{width:calc(100% - 30px)}
  #projects{margin-top:48px}.section-heading{font-size:33px;margin-bottom:18px}
  .home-row{min-height:160px;gap:16px;margin-bottom:16px}
  .home-image{width:100%;min-height:110px}.home-image img{max-width:min(100%,200px);max-height:160px}
  .home-copy h2,.home-copy h3,.news-section .home-copy h3{font-size:16px}
  .news-section .home-row{min-height:155px;margin-bottom:12px}
  .orange-button{font-size:12px;padding:9px 16px}
  .advent-banner{grid-template-columns:120px 1fr;gap:14px;margin:25px auto 18px;padding:12px}
  .advent-banner img{width:120px;height:105px}.advent-copy h2{font-size:18px}
  .detail-page{padding-top:44px;padding-bottom:55px}
  .article-header h1{font-size:clamp(29px,5.5vw,38px)}
  .article-body{font-size:17px;line-height:1.62}
  .article-body p{margin-bottom:16px}
  .article-body h2{font-size:23px}
  .project-page{padding-top:65px}.project-page .article-header h1{font-size:clamp(32px,6vw,45px)}
  .project-body .project-crew{grid-template-columns:1fr;gap:22px}.project-body .project-crew img{margin:auto}
  .project-body .project-actions{margin-bottom:60px}
  .game-tab{flex:1;min-width:88px;font-size:14px;padding:10px 12px}
}
@media(max-width:470px){
  .site-header{padding-inline:10px}.site-header-inner{gap:6px;height:72px}
  .brand .brand-icon{width:31px;height:31px}.brand-name{font-size:12px}
  .main-nav{gap:8px}.main-nav a{font-size:11px}
  .header-play{display:none}.theme-toggle{width:31px;height:31px}
  .home-row{grid-template-columns:45% 55%;gap:0;min-height:143px}
  .home-image img{max-width:95%;max-height:140px}
  .home-copy h2,.home-copy h3,.news-section .home-copy h3{font-size:15px}
  .advent-banner{grid-template-columns:92px 1fr}.advent-banner img{width:92px;height:92px}.advent-copy h2{font-size:16px}
  .article-body{font-size:16px}
}

/* Visually authored comments: keep attachments and nested replies in ONE card.
   Applied at render time; original post HTML in SQLite is untouched. */
.article-body .motm-comment-card {
  background:var(--comment);
  padding:16px 20px;
  margin:12px 0;
  border:0;
  border-radius:0;
  min-width:0;
}
.article-body .motm-comment-card > .motm-comment {
  background:transparent;
  border:0;
  padding:0;
  margin:0;
  min-width:0;
}
.article-body .motm-comment-card > .motm-comment .elementor-widget-container {
  background:transparent;
}
.article-body .motm-comment-card figure.motm-comment-attachment {
  display:block;
  margin:8px 0 4px;
  text-align:left;
}
.article-body .motm-comment-card .motm-comment-attachment img {
  display:block;
  width:auto;
  height:auto;
  max-width:min(200px,100%);
  max-height:260px;
  object-fit:contain;
  margin:0;
}
.article-body .motm-comment-card .motm-comment-attachment figcaption {
  text-align:left;
}
.article-body .motm-comment-replies {
  display:grid;
  gap:10px;
  margin-top:12px;
}
.article-body .motm-comment-replies > .motm-comment-card,
.article-body .motm-comment-card .motm-comment-card {
  background:var(--comment-nested);
  margin:0;
  padding:12px 15px;
}
.article-body .motm-comment-card .motm-comment-card > .motm-comment {
  background:transparent;
  margin:0;
  padding:0;
}
@media(max-width:600px) {
  .article-body .motm-comment-card {padding:13px 14px}
  .article-body .motm-comment-card .motm-comment-card {padding:10px 12px}
}

/* Adventskalender CTA – contained override; the remaining homepage stays untouched. */
.advent-banner {
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}
.advent-banner:hover {
  color: var(--text);
  background: var(--surface-hi);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.advent-banner:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.advent-banner .advent-copy { min-width: 0; }
.advent-banner .advent-copy h2 { margin: 0 0 10px; }
.advent-banner .advent-copy p {
  margin: 0 0 17px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}
.advent-banner .advent-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  padding: 11px 17px;
  border-radius: 4px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  transition: background-color 160ms ease;
}
.advent-banner:hover .advent-cta { background: var(--accent-strong); }
@media (max-width: 720px) {
  .advent-banner .advent-copy h2 { margin-bottom: 8px; }
  .advent-banner .advent-copy p { font-size: 14px; line-height: 1.4; margin-bottom: 12px; }
  .advent-banner .advent-cta { padding: 9px 12px; font-size: 12px; gap: 5px; }
}
@media (max-width: 470px) {
  .advent-banner { align-items: start; }
  .advent-banner .advent-copy p { font-size: 13px; }
  .advent-banner .advent-cta { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .advent-banner, .advent-banner .advent-cta { transition: none; }
  .advent-banner:hover { transform: none; }
}
