*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

:root{
  --p1:#2f80ed;
  --p2:#ff8a00;
}

html, body{
  width:100%;
  max-width:100%;
  overflow-x:hidden;
}

body{
  font-family:Arial, sans-serif;
  background:
    radial-gradient(circle at top, rgba(255,255,255,.4), transparent 55%),
    linear-gradient(135deg,#eadfc9,#d8ccb7);
  color:#111827;
}

/* GENEL */
.app{
  width:min(1100px, 96%);
  margin:auto;
  padding:20px 0 50px;
}

/* HEADER */
.hero{
  position:relative;
  text-align:center;
  margin-bottom:18px;
}

.home-btn{
  position:absolute;
  left:0;
  top:6px;
  text-decoration:none;
  background:#111827;
  color:#fff;
  padding:10px 14px;
  border-radius:999px;
  font-weight:bold;
  box-shadow:0 8px 20px rgba(0,0,0,.15);
}

.logo{
  font-size:42px;
}

.hero h1{
  font-size:42px;
  margin:6px 0;
}

.hero p{
  color:#374151;
  font-weight:600;
}

/* PANEL */
.panel{
  background:rgba(255,247,232,.95);
  border:2px solid #c8b894;
  border-radius:24px;
  padding:14px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
  box-shadow:0 12px 28px rgba(0,0,0,.15);
}

/* INPUT + BUTTON */
input, select, button{
  padding:12px 14px;
  border-radius:14px;
  border:1px solid #b7a985;
  font-size:15px;
  outline:none;
}

input:focus, select:focus{
  border-color:#111;
  box-shadow:0 0 0 3px rgba(0,0,0,.08);
}

button{
  background:#18181b;
  color:white;
  cursor:pointer;
  font-weight:bold;
  border:none;
  transition:.2s;
}

button:hover{
  background:#333;
  transform:translateY(-1px);
}

.primary{
  background:#111;
}

.join{
  display:flex;
  gap:8px;
}

/* OYUN UI */
.game-ui{
  margin-top:18px;
  text-align:center;
}

/* ÜST BİLGİ */
.top-info{
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:12px;
}

#info, #turnInfo{
  background:#fff7e8;
  border:1px solid #c8b894;
  padding:10px 16px;
  border-radius:999px;
  font-weight:bold;
  box-shadow:0 4px 10px rgba(0,0,0,.08);
}

#copyBtn{
  background:#0f766e;
}

/* SKOR */
#scoreBoard{
  display:flex;
  justify-content:center;
  gap:10px;
  margin-bottom:14px;
  flex-wrap:wrap;
}

.score-card{
  min-width:150px;
  padding:12px;
  border-radius:18px;
  background:white;
  border:2px solid #d5c59e;
  box-shadow:0 6px 16px rgba(0,0,0,.12);
  font-weight:bold;
  transition:.2s;
}

.score-card span{
  font-size:22px;
}

.score-name{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  margin-bottom:4px;
}

.color-dot{
  width:12px;
  height:12px;
  border-radius:50%;
}

.score-card.p1{
  border-color:rgba(47,128,237,.4);
  background:linear-gradient(135deg, rgba(47,128,237,.15), white);
}

.score-card.p2{
  border-color:rgba(255,138,0,.4);
  background:linear-gradient(135deg, rgba(255,138,0,.18), white);
}

.score-card.active{
  transform:scale(1.05);
  box-shadow:0 0 0 3px rgba(47,128,237,.15), 0 10px 20px rgba(0,0,0,.2);
}

/* OYUN KAĞIDI */
.paper{
  display:inline-block;
  padding:18px;
  border-radius:24px;
  background:
    repeating-linear-gradient(#fffdf6, #fffdf6 24px, #ece4d0 25px);
  border:2px solid #b9a77f;
  box-shadow:0 18px 35px rgba(0,0,0,.25);
  max-width:100%;
  overflow:hidden;
}

/* CANVAS */
canvas{
  display:block;
  margin:auto;
  cursor:pointer;
}

/* MODAL */
.modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.5);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
}

.modal-backdrop.show{
  display:flex;
}

.game-modal{
  width:min(360px,90%);
  background:#fff7e8;
  border:2px solid #c8b894;
  border-radius:24px;
  padding:22px;
  text-align:center;
  box-shadow:0 20px 50px rgba(0,0,0,.35);
  animation:pop .2s ease;
}

@keyframes pop{
  from{transform:scale(.8);opacity:0}
  to{transform:scale(1);opacity:1}
}

.modal-icon{
  font-size:40px;
  margin-bottom:8px;
}

/* MOBİL */
@media(max-width:650px){

  .app{
    width:100%;
    padding:14px 10px;
  }

  .home-btn{
    position:static;
    margin-bottom:10px;
  }

  .hero h1{
    font-size:30px;
  }

  .panel{
    flex-direction:column;
  }

  input, select, button{
    width:100%;
  }

  .join{
    flex-direction:column;
  }

  .score-card{
    min-width:48%;
  }

  .paper{
    padding:10px;
    border-radius:18px;
  }

  canvas{
    max-width:100%;
  }
}
.modal-actions{
  display:flex;
  gap:10px;
  justify-content:center;
  margin-top:10px;
}

.modal-actions button{
  flex:1;
}
#modalText{
  font-size:18px;
  font-weight:bold;
}
.bot-dropdown{
  position:relative;
}

.bot-menu{
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  right:0;
  display:none;
  flex-direction:column;
  gap:8px;
  background:#fff7e8;
  border:1px solid #c8b894;
  border-radius:16px;
  padding:8px;
  box-shadow:0 12px 28px rgba(0,0,0,.18);
  z-index:50;
  min-width:170px;
}

.bot-menu.show{
  display:flex;
}

.bot-menu button{
  width:100%;
  background:#262626;
}

@media(max-width:650px){
  .bot-dropdown{
    width:100%;
  }

  .bot-menu{
    position:static;
    margin-top:8px;
    width:100%;
  }
}
.miss-rights{
  display:flex;
  justify-content:center;
  gap:5px;
  margin-top:8px;
}

.miss-rights b{
  width:9px;
  height:9px;
  border-radius:50%;
  background:#22c55e;
  display:block;
}

.miss-rights b.lost{
  background:#ef4444;
}
.seo-box{
  margin:34px auto 0;
  max-width:900px;
  background:rgba(255,247,232,.92);
  border:2px solid #c8b894;
  border-radius:24px;
  padding:24px;
  box-shadow:0 12px 28px rgba(0,0,0,.12);
  line-height:1.7;
  color:#1f2937;
}

.seo-box h2{
  font-size:28px;
  margin-bottom:12px;
  color:#111827;
}

.seo-box h3{
  margin-top:18px;
  margin-bottom:8px;
  font-size:20px;
  color:#111827;
}

.seo-box p{
  margin-bottom:10px;
}

@media(max-width:650px){
  .seo-box{
    padding:18px;
    margin-top:24px;
    border-radius:18px;
  }

  .seo-box h2{
    font-size:23px;
  }

  .seo-box h3{
    font-size:18px;
  }
}
.brand{
  font-size:14px;
  font-weight:bold;
  color:#0f766e;
  letter-spacing:2px;
  margin-top:-6px;
  margin-bottom:6px;
  opacity:.85;
}
.paper{
  position:relative;
}

.start-hint{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  font-size:18px;
  font-weight:600;
  color:#374151;
  line-height:1.5;
  padding:20px;
  z-index:5; /* 🔥 BU ÖNEMLİ */
}

.start-hint-inner{
  max-width:240px;
}

canvas{
  position:relative;
  z-index:1; /* hint üstte kalsın */
}