@import url('/epikfont.css');
@import url('/responsive.css');
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; background:#e5e5e5; color:#333; font:13px/1.5 Verdana,Arial,sans-serif; border-top:4px solid #124e8c; }
a { color:#005fa5; text-decoration:none; }
a:hover { text-decoration:underline; }
button,input,select,textarea { font:inherit; }
button,.button { display:inline-block; padding:6px 13px; color:#333; background:#fff; border:1px solid #aaa; border-radius:0; cursor:pointer; text-align:center; text-decoration:none; }
button:hover,.button:hover { color:#fff; background:#124e8c; text-decoration:none; }
button:disabled { cursor:default; opacity:.55; }
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline:3px solid #4c9ed9; outline-offset:2px; }
input,select,textarea { max-width:100%; padding:7px; border:1px solid #777; border-radius:0; background:#fff; color:#111; }
textarea { width:100%; min-height:150px; resize:vertical; }
fieldset { min-width:0; margin:0; padding:0; border:0; }
fieldset:disabled { opacity:.7; }
label { display:block; margin-bottom:5px; font-weight:bold; }
h1 { margin:0 0 16px; font-size:27px; font-weight:normal; line-height:1.25; }
h2 { margin:0 0 10px; font-size:19px; line-height:1.3; }
h3 { margin:0 0 8px; font-size:16px; }
p { margin:0 0 13px; }
img { max-width:100%; }
.site-header,.site-main,.site-footer { width:min(900px,calc(100% - 20px)); margin-left:auto; margin-right:auto; }
.site-header { border:1px solid #000; border-top:0; }
.site-banner { position:relative; background:#fff url('/Banner.webp') left top/100% auto no-repeat; display:grid; grid-template-columns:32% 30% minmax(0,1fr); align-items:center; }
.site-banner::after { content:''; grid-column:1/-1; grid-row:1; aspect-ratio:1342/101; pointer-events:none; }
.site-banner > * { position:relative; grid-row:1; }
.site-logo-link { position:relative; grid-column:2; justify-self:center; min-width:0; width:94%; height:84%; max-width:270px; }
.site-logo { position:absolute; inset:0; display:block; width:100%; height:100%; object-fit:contain; }
.site-auth { grid-column:1; margin:6px; min-width:0; overflow-wrap:anywhere; align-self:start; font:bold 12px Verdana,sans-serif; color:#fff; }
.site-auth > span,.site-auth > [data-member] { display:inline-block; padding:3px 5px; background:#124e8c; }
.site-auth > [data-member] { background:transparent; padding:0; }
.site-auth a,.site-auth button { color:#fff; }
.site-auth form { display:inline; }
.site-auth button { padding:0; border:0; background:transparent; font:inherit; text-decoration:underline; }
.site-play { grid-column:3; justify-self:end; display:flex; align-items:center; min-height:44px; max-width:65%; margin:0 8px; }
.site-play img { display:block; width:210px; height:auto; }
.site-nav { display:flex; flex-wrap:wrap; justify-content:center; max-width:100%; background:#124e8c; border-top:1px solid #000; padding:5px 0; }
.site-nav a { flex:0 0 auto; white-space:nowrap; padding:3px 7px; margin:0; color:#fff; border-right:1px solid #ccc; font-size:14px; }
.site-nav a:last-child { border-right:0; }
.site-nav a[aria-current="page"] { font-weight:bold; text-decoration:underline; }
.site-main { margin-top:14px; margin-bottom:20px; min-height:390px; }
.site-footer { border-top:1px solid #8a00ca; padding:12px 8px 22px; text-align:center; font-size:11px; color:#5a465f; }
.site-footer nav { margin-bottom:6px; }
.site-footer a + a { margin-left:14px; }
.panel { border:1px solid #000; min-width:0; }
.panel-title { margin:0; padding:5px 10px; background:#ff8a24; color:#333; border-bottom:1px solid #000; font-size:16px; font-weight:bold; text-align:center; }
.panel-body { padding:14px; }
.muted,time { color:#6b5570; font-size:12px; }
.status { margin:12px 0; color:#5a465f; }
.status:empty { display:none; }
.error { color:#a40000; }
.actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.yellow { background:#ff8a00; color:#333; border:1px solid #555; font-weight:bold; }
.yellow:hover { background:#ffad42; color:#333; }
.welcome { font-size:20px; margin-bottom:12px; overflow-wrap:anywhere; }
.splash { display:grid; grid-template-columns:180px minmax(0,1fr); gap:14px; }
.side-links { display:grid; gap:10px; }
.avatar-frame { display:grid; place-items:center; min-height:215px; background:#fff; }
.avatar-frame img { width:145px; height:210px; object-fit:contain; }
.glance { padding:14px; background:#fff0e2; }
.glance > h2 { font-size:27px; margin-bottom:4px; }
.glance-grid { display:grid; grid-template-columns:1fr 1.2fr; gap:18px; margin-top:20px; }
.feature { display:grid; grid-template-columns:49px 1fr; gap:8px; margin-bottom:22px; }
.feature img { width:49px; }
.feature h3 { line-height:1.2; margin-bottom:6px; }
.feature p { color:#5a465f; font-size:12px; }
.showcase { margin:0; }
.showcase img { display:block; width:100%; border:1px solid #000; aspect-ratio:4/3; object-fit:cover; }
.showcase figcaption { margin-top:10px; text-align:center; }
.showcase .button { width:100%; font-size:17px; }
.places { display:grid; grid-template-columns:180px 1fr; margin-top:14px; }
.places-label { padding:14px; background:#d9b3ff; border-right:1px solid #000; }
.places-label p { margin:0; font-size:12px; }
.places-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; padding:14px; }
.place img { display:block; width:100%; max-width:190px; aspect-ratio:16/9; object-fit:cover; border:1px solid #000; margin-bottom:5px; }
.browse-layout { display:grid; grid-template-columns:160px minmax(0,1fr); gap:20px; }
.browse-menu h2 { font-size:17px; }
.browse-menu ul { margin:0 0 25px; padding:0; list-style:none; }
.browse-menu li { margin:8px 0; }
.search-bar { display:flex; flex-wrap:wrap; align-items:center; gap:8px; background:#fff0e2; border:1px solid #aaa; padding:8px; margin-bottom:16px; }
.search-bar label { margin:0; }
.search-bar input { min-width:100px; flex:1; }
.game-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; }
.game-card img { display:block; width:100%; aspect-ratio:4/3; object-fit:cover; border:1px solid #000; }
.game-card h2 { font-size:16px; margin:8px 0 5px; }
.game-card .button { margin-top:9px; width:100%; }
.catalog-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:15px; }
.swatch { display:block; height:100px; border:1px solid #000; margin-bottom:5px; }
.catalog-item h2 { font-size:13px; }
.auth-layout { display:grid; grid-template-columns:300px minmax(0,1fr); gap:22px; }
.auth-form input { display:block; width:100%; margin-bottom:15px; border-style:dashed; }
.auth-form .button,.auth-form button { min-width:100px; }
.auth-picture { display:block; width:100%; border:1px solid #000; margin:15px 0; }
.account-layout { display:grid; grid-template-columns:220px 1fr; gap:20px; }
.account-data { margin:0 0 20px; }
.account-data dt { margin-top:10px; font-weight:bold; }
.account-data dd { margin:3px 0 12px; overflow-wrap:anywhere; }
.character-layout { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:20px; }
.character-preview { width:100%; height:390px; object-fit:contain; }
.color-row { display:grid; grid-template-columns:1fr 145px; align-items:center; gap:12px; margin:0 0 12px; }
.color-row select { width:100%; border-left:12px solid #777; }
.member-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.member { min-width:0; display:flex; align-items:center; border:1px solid #aaa; background:#fff7ef; padding:8px; gap:8px; }
.member img { width:80px; height:120px; flex-shrink:0; object-fit:contain; }
.member h2 { font-size:14px; overflow-wrap:anywhere; }
.member p { margin:0; font-size:12px; }
.member time { display:block; }
.member > div { min-width:0; }
.forum-toolbar { display:flex; gap:8px; margin-bottom:14px; }
.post { display:grid; grid-template-columns:105px minmax(0,1fr); border:1px solid #999; background:#fff; margin-top:10px; }
.post .avatar { width:100px; height:145px; object-fit:contain; padding:5px; background:#fff0e2; align-self:start; }
.post .content { padding:10px 14px; border-left:1px solid #bbb; min-width:0; }
.post h2 { padding:4px 8px; margin:-10px -14px 10px; background:#ead7f7; border-bottom:1px solid #aaa; font-size:16px; overflow-wrap:anywhere; }
.post .author { font-weight:bold; color:#005fa5; overflow-wrap:anywhere; }
.post .message { margin:10px 0 0; white-space:pre-wrap; overflow-wrap:anywhere; }
#editor { margin-top:22px; padding:14px; background:#fff0e2; border:1px solid #000; }
#editor input { width:100%; margin-bottom:12px; }
#editor button { margin-top:10px; }
.news-entry { border:1px solid #000; }
.news-entry h2 { background:#ccc; padding:8px 12px; border-bottom:1px solid #000; margin:0; }
.info-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.info-grid .panel-body { min-height:155px; }
.error-page { text-align:center; padding:45px 15px; }
.error-number { font-size:65px; color:#4c9ed9; font-weight:bold; }
.game-card img.logo-thumbnail,.place img.logo-thumbnail { object-fit:contain; padding:12px; background:#f3e5ff; }
@media (max-width:720px) {
  .site-banner { grid-template-columns:minmax(0,1fr) auto; }
  .site-logo-link { grid-column:1/-1; grid-row:1; width:28%; justify-self:start; margin-left:33%; }
  .site-auth { grid-row:2; align-self:center; }
  .site-play { grid-column:2; grid-row:2; max-width:100%; }
  .site-nav a { font-size:14px; padding:3px 9px; }
  .glance-grid { grid-template-columns:1fr; }
  .member-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .auth-layout,.account-layout { grid-template-columns:minmax(0,1fr); }
  .auth-layout > .panel { max-width:420px; width:100%; margin:auto; }
  .character-layout { grid-template-columns:minmax(0,1fr); }
  .catalog-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:500px) {
  body { font-size:14px; }
  .splash,.places,.browse-layout,.info-grid { grid-template-columns:1fr; }
  .places-label { border-right:0; border-bottom:1px solid #000; }
  .browse-menu ul { display:flex; flex-wrap:wrap; gap:15px; margin-bottom:10px; }
  .member-grid,.game-grid { grid-template-columns:1fr; }
  .member img { width:100px; height:145px; }
  .member h2 { font-size:16px; }
  .catalog-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .side-links { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .post { grid-template-columns:75px minmax(0,1fr); }
  .post .avatar { width:74px; height:110px; }
  .character-preview { height:340px; }
  .site-play img { width:180px; }
}

/* Keep the orange surround, purple headers, and readable white content. */
.site-main{background:#fff;padding:14px}
.panel,.panel-body,.glance,.places-grid,.member,.search-bar,.post .avatar,#editor{background:#fff}
.panel-title,.news-entry h2,.post h2,.places-label{background:#124e8c;color:#fff}
.places-label a,.panel-title a,.news-entry h2 a,.post h2 a{color:inherit}
.site-footer{color:#333}
.site-footer a{color:#39184e;text-decoration:underline}
body .community-bar,body .community-table th{background:#124e8c;color:#fff}
body .community-bar a,body .community-table th a{color:inherit}
body .forum-section,body .forum-section:nth-child(even),body .post-author,body .member-card,body .profile-character,body .profile-stats div{background:#fff}

.home-page .site-logo-link{width:100%;height:100%;max-width:320px}
@media(max-width:720px){
  .home-page .site-logo-link{width:32%;margin-left:31%}
}
