﻿.gc-dialog{--gc-bg:#141d30;--gc-card:#202c40;--gc-text:#f5f7ff;--gc-sub:#b6c4d8;--gc-line:#40516a;box-sizing:border-box;width:min(94vw,540px);max-width:100%;max-height:85dvh;margin:auto;padding:0;border:1px solid var(--gc-line);border-radius:18px;background:var(--gc-bg);color:var(--gc-text);box-shadow:0 18px 65px #0006;font:inherit}
.gc-dialog[open]{display:flex;flex-direction:column}.gc-dialog::backdrop{background:#050c1cb0}
.local-light .gc-dialog{--gc-bg:#fff;--gc-card:#eef3fa;--gc-text:#15243b;--gc-sub:#425773;--gc-line:#adbdcf}
.for314-classic-theme .gc-dialog{--gc-bg:#d4d0c8;--gc-card:white;--gc-text:#111;--gc-sub:#444;--gc-line:#606060;border-radius:0}
.gc-dialog *{box-sizing:border-box;text-shadow:none}.gc-dialog [hidden]{display:none!important}
.gc-dialog button{font:inherit;font-weight:650;color:var(--gc-text);background:var(--gc-card);border:1px solid var(--gc-line);border-radius:10px;cursor:pointer}
.gc-head,.gc-hero,.gc-row{display:flex;align-items:center;gap:10px}.gc-head{padding:12px 16px;border-bottom:1px solid var(--gc-line)}
.gc-head h2,.gc-hero h3{margin:0;flex:1;font-size:1.1em;color:inherit}.gc-head button{min-width:36px;min-height:36px;font-size:1.25em}
.gc-body{overflow:auto;overscroll-behavior:contain;padding:14px}.gc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.gc-grid .gc-tile{padding:0 0 8px;overflow:hidden}.gc-art{display:grid;place-items:center;aspect-ratio:1;background:linear-gradient(135deg,#264563,#466480);font-size:2.5em;margin-bottom:7px}
.gc-art[data-game]:not([data-game=""]){background-image:url('./gamecenter-icons.webp');background-size:200% 200%}
.gc-art[data-game="nextbot"]{background-position:100% 0}.gc-art[data-game="fpsgame"]{background-position:0 100%}.gc-art[data-game="egyptfps"]{background-position:100% 100%}
.gc-hero{padding:10px;background:var(--gc-card);border:1px solid var(--gc-line);border-radius:12px;flex-wrap:wrap}.gc-hero .gc-art{width:clamp(40px,12vw,68px);border-radius:8px;margin:0}
.gc-dialog .gc-play{background:#165cd4;color:white;border-color:#4382eb;padding:10px}.gc-heading{margin:18px 0 3px;color:inherit}.gc-sub{color:var(--gc-sub);font-size:.85em;margin:5px 0}.gc-sub:empty{display:none}
.gc-rows{margin:10px 0;padding:0}.gc-row{padding:8px 4px;border-bottom:1px solid var(--gc-line);font-variant-numeric:tabular-nums}.gc-rank{min-width:2ch}.gc-avatar{width:30px;height:30px;flex:none;display:grid;place-items:center;border-radius:50%;overflow:hidden;background:var(--gc-card)}.gc-avatar img{width:100%;height:100%;object-fit:cover}.gc-name{flex:1;min-width:0;overflow-wrap:anywhere}.gc-score{white-space:nowrap}.gc-more{padding:8px 12px}.gc-dialog button:focus-visible{outline:3px solid #5396ff;outline-offset:-3px}
@media(max-width:340px){.gc-dialog{width:98vw}.gc-body,.gc-head{padding:7px}.gc-grid{gap:6px}.gc-row{gap:4px;font-size:.85em}.gc-hero{gap:5px}.gc-dialog .gc-play{padding:7px}}

.gc-art[data-game="piano"]:not([data-game=""]),.gc-art[data-game="roulette"]:not([data-game=""]){background-size:cover;background-position:center}
.gc-art[data-game="piano"]:not([data-game=""]){background-image:url('./gamecenter-piano.webp')}
.gc-art[data-game="roulette"]:not([data-game=""]){background-image:url('./gamecenter-roulette.webp')}

.gc-dialog .gc-art[data-command="nextbot"] {
  background: #17231f url("./gamecenter-shots/nextbot-795.png") center / cover no-repeat;
  font-size: 0;
}

.gc-dialog .gc-art[data-command="siritori"] {
  background: #f4f6fa url("./gamecenter-shots/siritori-795.png") center / 145% auto no-repeat;
  font-size: 0;
}

.gc-dialog .gc-art[data-command="watergame"] {
  background: #f4f6fa url("./gamecenter-shots/watergame.webp") center / contain no-repeat;
  font-size: 0;
}

.gc-dialog .gc-art[data-command="masugame"] {
  background: #f4f6fa url("./gamecenter-shots/masugame.webp") center / contain no-repeat;
  font-size: 0;
}

.gc-dialog .gc-art[data-command="flowergame"] {
  background: #edf8fa url("./gamecenter-shots/flowergame-795.png") center / cover no-repeat;
}

.gc-dialog[open]{
  --gc-top:calc(max(var(--gc-tabs,0px),env(safe-area-inset-top,0px)) + 8px);
  --gc-bottom:calc(env(safe-area-inset-bottom,0px) + 8px);
  position:fixed;
  inset:var(--gc-top) 0 var(--gc-bottom);
  height:fit-content;
  max-height:min(85dvh,calc(100dvh - var(--gc-top) - var(--gc-bottom)));
  margin:auto;
}
.gc-head{flex:none}
.gc-body{min-height:0}

.gc-dialog .gc-art[data-command="cablegame"]{background:#302d43 url('./gamecenter-shots/cable.png') center/contain no-repeat}
.gc-dialog.cable-dialog[open]{width:min(94vw,840px);height:min(80dvh,740px);overflow:hidden;background:#302d43}
.cable-dialog iframe{width:100%;flex:1;min-height:0;border:0}
.gc-dialog.cable-dialog button{position:absolute;right:6px;top:5px;width:44px;height:44px;font-size:23px;background:#312d43;color:white;border:1px solid #aaa}
