/*
 * Classic KotaGames look (m.kotagames.com, 2013-2015), used by guest pages, auth pages and legal pages.
 * Sizes follow the original (Arial 13px, plain inputs, thin buttons, full width).
 * Colours are the original ones; those that failed WCAG AA were darkened as little as needed:
 * grey #9c9c9c -> #6b6b6b, footer text on orange -> #4a1f00, highlight #ff3507 -> #a31d00,
 * #ff0042 -> #d10036, #339ec6 -> #1c7699, sign-up #ff1a3f -> #e01436, sign-in header #e84a26 -> #d63d1b.
 */
body.kc{margin:0;background:#f79c38;font-family:Arial,Helvetica,sans-serif;font-size:13px;color:#626262}
.kc a{color:#c61c00}
.kc a:focus-visible,.kc button:focus-visible,.kc input:focus-visible,.kc-button:focus-visible{outline:2px solid #1c7699;outline-offset:2px}
.kc-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Header (welcome / legal) */
.kc-header{background:#fff url(../img/bg_header.png) repeat-x top;text-align:center}
.kc-header-strip{box-sizing:border-box;height:28px;padding-top:3px}
.kc-logo{display:inline-block}
.kc-logo img{display:block;width:112px;height:22px;margin:0 auto}
.kc-header-cta{padding:5px}
.kc-header-in .kc-header-strip{display:flex;align-items:center;justify-content:space-between;padding:0 5px}
.kc-notif{display:inline-flex;align-items:center;gap:4px;box-sizing:border-box;height:22px;padding:0 6px;background:#d10036;border:1px solid #8a0829;color:#fff!important;font-size:13px;text-decoration:none}
.kc-notif:hover{background:#a8002b}
.kc-button{display:inline-block;padding:2px 6px;background:#d10036;color:#fff!important;border:1px solid #8a0829;text-transform:uppercase;text-decoration:none;font:13px/18px Arial,Helvetica,sans-serif;white-space:nowrap;cursor:pointer}
.kc-button:hover{background:#a8002b}
.kc-button-blue{background:#1c7699;border-color:#0b5c70}
.kc-button-blue:hover{background:#135f7c}
.kc-main{background:#fff}

/* Sections with the red title bar */
.kc-section{padding-bottom:5px}
.kc-title-bar{display:flex;align-items:center;justify-content:center;gap:4px;margin:0;padding:0 5px;min-height:20px;background:#df3008;border-top:1px solid #c02c15;border-bottom:1px solid #aa4439;color:#fff;font-size:13px;font-weight:normal;line-height:20px;text-transform:uppercase}
.kc-title-bar img{flex:none}
.kc-title-center{justify-content:center;text-align:center}
.kc-item{padding:5px;border-bottom:1px solid #ffab98}
.kc-room{text-align:center}
.kc-thumb img{border:1px solid #c8c8c8;padding:3px;background:#fff}
.kc-item-title{display:block;margin:3px 0 1px;font-size:13px;font-weight:bold;color:#c61c00;overflow-wrap:anywhere}
.kc-item-title a{color:#c61c00;text-decoration:none}
.kc-item-title a:hover,a.kc-item-title:hover{text-decoration:underline}
.kc-text{margin:2px 0;overflow-wrap:anywhere}
.kc-meta{display:block;margin:2px 0;color:#6b6b6b;font-size:12px}
.kc-actions{display:flex;align-items:center;justify-content:center;gap:8px;margin:4px 0 0}
.kc-count{color:#c61c00}
.kc-room .kc-item-title{font-weight:normal}
.kc-event,.kc-game{text-align:center}
.kc-event .kc-item-title{margin:0}
.kc-game{padding:4px 5px 5px}
.kc-game-icon{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid #c8c8c8;background:#fff}
.kc-game-icon img{max-width:40px;max-height:40px;object-fit:contain}
.kc-game .kc-item-title{margin:2px 0 0}
.kc-empty{margin:0;padding:8px 5px;text-align:center;border-bottom:1px solid #ffab98}
.kc-more{display:block;padding:5px;text-align:right;color:#1c7699!important;text-decoration:none;border-bottom:1px solid #ffab98}
.kc-more:hover{text-decoration:underline}

/* Signed-in home */
.kc-flash{margin:0;padding:5px;text-align:center;border-bottom:1px solid #ffab98}
.kc-flash-ok{background:#e7f6ec;color:#047857}
.kc-flash-error{background:#fff1ee;color:#b42318}
/* Everything is centred and stacked like the original, so the page reads the same on a phone and on a wide screen. */
.kc-mygame,.kc-status{display:flex;flex-direction:column;align-items:center;gap:2px;text-align:center}
.kc-mygame-text,.kc-status-body{display:flex;flex-direction:column;align-items:center;max-width:100%}
.kc-mygame .kc-item-title,.kc-status-body .kc-item-title{margin:0}
.kc-mygame .kc-button{margin-top:3px}
/* Player card: avatar beside the details (old KotaGames card), the pair centred on the page. */
.kc-player{display:flex;justify-content:center;align-items:center;gap:8px;padding:5px;border-bottom:1px solid #ffab98}
.kc-player .kc-thumb img{display:block;border:1px solid #78e0f0;padding:1px}
.kc-player-info{display:flex;flex-direction:column;align-items:flex-start;gap:1px;min-width:0;text-align:left}
.kc-player-info .kc-item-title{margin:0}
.kc-player-info .kc-meta{margin:0}
.kc-player-wallet b{color:#c61c00}
.kc-pending{text-align:center}
.kc-pending .kc-button{margin-left:6px}
.kc-status-body .kc-text{max-width:560px}
.kc-status-body img{max-width:100%;height:auto}
.kc-status-actions{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px;margin-top:3px}
.kc-status-actions .kc-meta{margin:0}
.kc-inline{display:inline;margin:0}
.kc-members{display:flex;justify-content:center;gap:16px}
.kc-member{display:flex;flex-direction:column;align-items:center;gap:2px;max-width:90px;color:#c61c00;text-decoration:none;overflow-wrap:anywhere}
.kc-member img{border:1px solid #c8c8c8;padding:2px;background:#fff}
.kc-member:hover span{text-decoration:underline}

/* Footer: orange block, cream highlight line */
.kc-footer{background:#f79c38;border-top:2px solid #eb7d04;color:#4a1f00;text-align:center;padding:5px 0 10px}
.kc-footer-nav{margin:6px 0 2px;line-height:20px}
.kc-footer-nav a{display:inline-block;color:#4a1f00;text-decoration:none;padding:2px 8px;border-left:1px solid #eb7d04}
.kc-footer-nav a:first-child{border-left:0}
.kc-footer-nav a:hover{text-decoration:underline}
.kc-footer-highlight{margin-top:5px;padding:5px 4px;background:#f8cd6f;color:#a31d00;font-weight:bold;text-transform:uppercase}
.kc-footer-legal{margin-top:2px;text-transform:none;font-weight:normal;font-size:12px}
.kc-footer-legal a{color:#a31d00}

/* Sign-in / sign-up (authmng pages) */
.kc-auth-header{height:28px;background:#df3008 url(../img/bg_header.png) repeat-x;display:flex;align-items:center;justify-content:center}
.kc-auth-header img{display:block;max-height:22px;width:auto}
.kc-auth{text-align:center;padding-bottom:10px}
.kc-auth-banner{background:#fff}
.kc-auth-banner img{display:block;margin:0 auto;width:100%;max-width:220px;height:auto}
.kc-auth-title{margin:1px auto 0;padding:3px 5px;color:#fff;font-size:13px;font-weight:normal;font-style:italic}
.kc-auth-title-login{background:#d63d1b}
.kc-auth-title-signup{background:#00880f}
.kc-auth-content{padding:5px 5px 0}
.kc-auth-form{display:flex;flex-direction:column;align-items:center;width:80%;max-width:185px;min-width:100px;margin:5px auto 0}
.kc-auth-form label{display:block;width:100%;padding-top:5px;color:#626262}
.kc-auth-form input[type=text],.kc-auth-form input[type=password],.kc-auth-form input[type=email]{box-sizing:border-box;width:100%;max-width:180px;height:21px;margin-top:1px;padding:1px 3px;border:1px solid #767676;border-radius:2px;font:13px Arial,Helvetica,sans-serif;color:#222;background:#fff}
.kc-optional{display:block;font-size:11px;color:#6b6b6b}
.kc-captcha{display:block;margin:2px auto;cursor:pointer;border:1px solid #c8c8c8}
.kc-turnstile{display:flex;justify-content:center;width:100%;margin-top:5px}
.kc-auth-button{box-sizing:border-box;width:100%;max-width:185px;margin-top:10px;padding:3px;color:#fff;font:13px Arial,Helvetica,sans-serif;cursor:pointer;border-top:2px solid #ffcf9b;border-left:2px solid #ffcf9b;border-bottom:2px solid #ffae53;border-right:2px solid #ffae53}
.kc-auth-button-login{background:#7f579f}
.kc-auth-button-signup{background:#e01436}
.kc-auth-error{width:100%;box-sizing:border-box;margin:4px 0;padding:4px;background:#fff1ee;border:1px solid #ffab98;color:#b42318;font-size:12px}
.kc-auth-ok{margin:8px auto;max-width:300px;color:#047857}
.kc-auth-box{margin:5px auto 0;padding:5px}
.kc-auth-box span{display:block;color:#626262}
.kc-auth-switch{display:inline-block;padding-top:3px;font-size:16px;font-weight:bold;color:#c61c00;text-decoration:underline}
.kc-auth-small{margin:5px auto 0;max-width:340px}
.kc-auth-small a{color:#626262;text-decoration:underline}
.kc-auth-footer .kc-footer-highlight{margin-top:0}
.kc-spacer{height:24px}
.kc-spacer-banner{height:40px}

/* Legal pages (freesettings/tnc) */
.kc-legal-back{text-align:center;padding:5px}
.kc-submit{display:inline-block;padding:1px 5px;line-height:18px;background:#fffd9d;color:#640d0d!important;border-top:2px solid #ff6b54;border-left:2px solid #ff6b54;border-bottom:2px solid #d81e00;border-right:2px solid #d81e00;text-transform:uppercase;text-decoration:none;font-size:13px}
.kc-submit:hover{background:#fff36b}
.kc-legal-body{padding:3px 5px 5px;border-bottom:1px solid #ffab98;text-align:left;overflow-wrap:anywhere;line-height:1.45}
.kc-legal-body h2{margin:12px 0 4px;font-size:13px;font-weight:bold;color:#626262;text-transform:uppercase}
.kc-legal-body h3{margin:8px 0 2px;font-size:13px;font-weight:bold;color:#626262}
.kc-legal-body p{margin:0 0 8px}
.kc-legal-body ul{margin:4px 0 10px;padding-left:20px}
.kc-legal-body li{margin-bottom:5px}

/* Phones keep the original compact look (buttons are 24px tall, the WCAG AA target size).
   Fields get 16px text only so iOS does not zoom in when one is tapped. */
@media (max-width:480px){
  .kc-auth-form input[type=text],.kc-auth-form input[type=password],.kc-auth-form input[type=email]{height:26px;font-size:16px}
}
