
    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: Arial, Helvetica, sans-serif;
      background: #f3f5f7;
      color: #17202a;
    }

    .wrap {
      width: min(100%, 760px);
      margin: 0 auto;
      padding: 16px;
    }

    .header {
      text-align: center;
      padding: 18px 8px 10px;
    }

    .header img {
      width: 84px;
      height: auto;
      margin-bottom: 10px;
    }

    .header h1 {
      margin: 0;
      font-size: 24px;
    }

    .header p {
      margin: 8px 0 0;
      color: #667085;
      font-size: 14px;
    }

    .card {
      background: #fff;
      border-radius: 16px;
      padding: 18px;
      margin-bottom: 16px;
      box-shadow: 0 4px 18px rgba(0,0,0,.07);
    }

    .card h2 {
      margin-top: 0;
      font-size: 20px;
    }

    .muted {
      color: #667085;
      font-size: 14px;
      line-height: 1.5;
    }

    .rules-box {
      max-height: 50vh;
      overflow-y: auto;
      border: 1px solid #d8dee6;
      border-radius: 12px;
      padding: 14px;
      background: #fafafa;
      line-height: 1.5;
    }

    .accept-box {
      display: flex;
      gap: 10px;
      align-items: flex-start;
      margin-top: 16px;
      font-weight: 600;
    }

    .accept-box input {
      width: 22px;
      height: 22px;
      margin-top: 1px;
      flex: 0 0 auto;
    }

    label {
      display: block;
      margin-bottom: 14px;
      font-weight: 600;
      font-size: 14px;
    }

    input,
    select {
      width: 100%;
      margin-top: 7px;
      padding: 13px 14px;
      border: 1px solid #cfd6df;
      border-radius: 10px;
      font-size: 16px;
      background: #fff;
      min-height: 48px;
    }

    input:focus,
    select:focus {
      outline: 2px solid #2f6fed;
      outline-offset: 1px;
      border-color: #2f6fed;
    }

    button {
      width: 100%;
      border: 0;
      border-radius: 12px;
      min-height: 50px;
      padding: 13px 16px;
      font-size: 16px;
      font-weight: 700;
      cursor: pointer;
    }

    .primary {
      background: #1f5fbf;
      color: #fff;
    }

    .primary:disabled {
      opacity: .45;
      cursor: not-allowed;
    }

    .secondary {
      background: #e9eef5;
      color: #17202a;
    }

    .section-title {
      margin-bottom: 14px;
      padding-bottom: 10px;
      border-bottom: 1px solid #eef1f4;
    }

    .section-title strong {
      display: block;
      font-size: 18px;
    }

    .section-title span {
      color: #667085;
      font-size: 13px;
    }

    #registrationSection {
      display: none;
    }

    #status,
    #rulesStatus {
      margin-top: 12px;
      font-size: 14px;
      line-height: 1.5;
    }

    .error {
      color: #b42318;
    }

    .success {
      color: #087443;
    }

    .result-box {
      border: 2px solid #1f5fbf;
      background: #f5f9ff;
    }

    .credential {
      padding: 12px;
      border-radius: 10px;
      background: #fff;
      margin-top: 10px;
      border: 1px solid #d6e2f2;
    }

    .credential strong {
      display: block;
      font-size: 14px;
      color: #475467;
      margin-bottom: 4px;
    }

    .credential span {
      font-size: 20px;
      font-weight: 700;
      word-break: break-word;
    }

     .wrap .pin {
      font-size: 28px;
      letter-spacing: 4px;
    }

    body .wrap .hidden {
      display: none;
    }

    @media (min-width: 700px) {
      .two-col {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
      }

      .two-col label {
        margin-bottom: 0;
      }
    }

/* BİASDER 2026 — premium registration visual layer; functional IDs untouched */
:root{--gold:#f6bd4c;--navy:#071426;--ink:#f1f6ff;--muted:#aebed1}
body{background:radial-gradient(ellipse at 50% -12%,#244f78 0%,#0a1c32 40%,#06111f 100%);color:var(--ink);min-height:100vh;font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
body:before{content:"";position:fixed;inset:0;pointer-events:none;background:linear-gradient(120deg,transparent 35%,#dca43a09 50%,transparent 70%)}
.wrap{width:min(100%,900px);padding:20px clamp(14px,3vw,30px) 65px;position:relative}
.header{position:relative;padding:28px 18px 30px;margin:8px 0 24px;border:1px solid #d9a94b55;border-radius:24px;background:linear-gradient(135deg,#102c4ce8,#08172af5);box-shadow:0 24px 55px #0006;overflow:hidden}
.header:after{content:"";position:absolute;bottom:0;left:12%;right:12%;height:2px;background:linear-gradient(90deg,transparent,var(--gold),transparent)}
/* BİASDER hakem logosu: amblemin tum dis halkasini koru, maske ve golge kullanma. */
body:not([data-roles]) .wrap .header > a {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
}
body:not([data-roles]) .wrap .header > a > img {
  display: block;
  width: 90px;
  height: 90px;
  max-width: 100%;
  margin: 0 auto 10px;
  padding: 0;
  object-fit: contain;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: none;
  -webkit-mask-image: none;
  mask-image: none;
  clip-path: none;
}
@media (max-width: 600px) {
  body:not([data-roles]) .wrap .header > a > img { width: 76px; height: 76px; }
}
.header h1{font-size:clamp(26px,4vw,39px);font-weight:850;letter-spacing:-.035em;color:#47708a}
.header p{color:#d8e3f1;font-size:15px}
.tournament-kicker{font-size:11px;letter-spacing:.23em;color:var(--gold);font-weight:850;margin:8px 0 13px}
.tournament-meta{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin:15px 0 0;color:#e9d6ad;font-size:12px;font-weight:750}
.tournament-meta span{border:1px solid #f6bd4c55;border-radius:100px;padding:8px 12px;background:#f6bd4c12}
.card{background:linear-gradient(155deg,#132942,#0b1c30);border:1px solid #46617e88;border-radius:20px;padding:clamp(20px,3vw,30px);margin-bottom:18px;box-shadow:0 14px 36px #0003;color:#f3f7fd}
.card h2{font-size:23px;color:#fff}.wrap .muted,.wrap .section-title span{color:#b6c6d8}
.section-title{border-bottom:1px solid #ffffff20;padding-bottom:16px;margin-bottom:22px}.section-title strong{font-size:21px;color:#f7c565}
.rules-box{background:#09182a;border:1px solid #426080;color:#e6eef9;border-radius:14px;padding:20px;scrollbar-color:#bd8f38 #102a45}
label{color:#e8f0fa;font-weight:650}body:not([data-roles]) .wrap input:not([type=checkbox]),body:not([data-roles]) .wrap select,body:not([data-roles]) .wrap textarea{background:#07182a;color:#fff;border:1px solid #48627d;border-radius:12px;min-height:51px;transition:border-color .2s,box-shadow .2s}body:not([data-roles]) .wrap input:focus,body:not([data-roles]) .wrap select:focus,body:not([data-roles]) .wrap textarea:focus{outline:none;border-color:#f6bd4c;box-shadow:0 0 0 3px #f6bd4c2b}input::placeholder{color:#91a7bd}
input[type=checkbox]{accent-color:#e9ad3d}
body:not([data-roles]) .wrap button.primary,body:not([data-roles]) .wrap .primary{background:linear-gradient(115deg,#f9d37b,#e7a831);color:#102038;border:0;border-radius:12px;min-height:54px;font-size:16px;font-weight:850;box-shadow:0 9px 22px #c38b3330;transition:transform .2s,filter .2s}button.primary:hover:not(:disabled){transform:translateY(-2px);filter:brightness(1.06)}button.primary:disabled{opacity:.55;cursor:not-allowed}
.accept-box{padding:14px;border:1px solid #4d6884;border-radius:12px;background:#ffffff08}
.result-box{border-color:#e9b657}#status,#rulesStatus{line-height:1.6}
@media(max-width:600px){.wrap{padding:12px 12px 40px}.header{padding:22px 13px}.card{border-radius:16px;padding:18px}.tournament-meta{gap:7px}.tournament-meta span{font-size:11px}.header img{width:76px}}
/* Şartname okunabilirliği: çakışan satır içi stiller yükleme sırasında temizlenir. */
.wrap #rulesSection #rulesBox{border:1px solid #9cb6d0;line-height:1.7;}
.wrap #rulesSection #rulesBox, .wrap #rulesSection #rulesBox *:not(a){opacity:1;text-shadow:none;}
.wrap #rulesSection #rulesBox h1,.wrap #rulesSection #rulesBox h2,.wrap #rulesSection #rulesBox h3,.wrap #rulesSection #rulesBox h4,.wrap #rulesSection #rulesBox strong,.wrap #rulesSection #rulesBox b{font-weight:800;}
.wrap #rulesSection #rulesBox a{color:#0759a4;-webkit-text-fill-color:#0759a4;text-decoration:underline;}
.wrap #rulesSection #rulesBox li,.wrap #rulesSection #rulesBox p{line-height:1.75;}


@media(prefers-reduced-motion:reduce){body *,body *:before,body *:after{transition:none;animation:none}}

/* BİASDER başlık ve şartname renk düzeltmeleri */
body:not([data-roles]) .wrap .header h1 { color: #d8e3f1; }
.wrap #rulesSection { background: #ffffff; color: #071d38; }
.wrap #rulesSection h2, .wrap #rulesSection .muted,
.wrap #rulesSection .accept-box, .wrap #rulesSection .accept-box span,
.wrap #rulesSection #rulesStatus { color: #071d38; }
.wrap #rulesSection .accept-box { background: #eaf4fb; }
.wrap #rulesSection #rulesBox { background: #f7fafc; color: #071d38; -webkit-text-fill-color:#14263f; }
.wrap #rulesSection #rulesBox *:not(a) { color: #071d38; -webkit-text-fill-color: #071d38; }
/* BİASDER kayıt formu okunabilirlik düzeltmesi */

/* Form etiketleri */
#registrationSection label {
  color: #071d38;
  -webkit-text-fill-color: #071d38;
}

/* Bölüm açıklamaları */
#registrationSection .section-title span,
#registrationSection .muted {
  color: #526780;
  -webkit-text-fill-color: #526780;
}

/* Giriş alanlarının içindeki yazılar */
#registrationSection input:not([type="checkbox"]),
#registrationSection select {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

/* Alanların örnek yazıları */
#registrationSection input::placeholder {
  color: #b6c6d8;
  -webkit-text-fill-color: #b6c6d8;
}

/* Giriş kutularındaki yazılar altın sarısı */
#registrationSection input:not([type="checkbox"]),
#registrationSection select {
  color: #f6bd4c;
  -webkit-text-fill-color: #f6bd4c;
}

/* Örnek yazılar da altın sarısı */
#registrationSection input::placeholder {
  color: #f6bd4c;
  -webkit-text-fill-color: #f6bd4c;
  opacity: 1;
}


/* Yarışmacı vesikalık kadraj düzenleyicisi */
.passport-warning{display:block;margin:12px 0;padding:12px 14px;border:1px solid #f6bd4c;border-radius:10px;background:#29301f;color:#ffe7a3;font-size:13px;line-height:1.55}
.passport-editor{margin-top:12px;padding:12px;border:1px solid #31597a;border-radius:12px;background:#071a2b;color:#fff}
body .wrap .passport-editor[hidden]{display:none}
.passport-editor canvas{display:block;width:min(100%,240px);height:auto;aspect-ratio:3/4;touch-action:none;cursor:grab;border:2px solid #49c8e8;border-radius:8px;margin:8px 0;background:#e5ebf0}
.passport-editor canvas:active{cursor:grabbing}
.passport-editor label{display:flex;align-items:center;gap:10px;margin:10px 0;color:#fff;font-size:13px}
.passport-editor input[type=range]{width:min(100%,230px);accent-color:#25c1e4}
.passport-editor button{padding:10px 15px;border:0;border-radius:9px;background:#0b7899;color:white;font-weight:800;cursor:pointer}
.passport-editor .passport-save{background:#17844d}

.passport-field{display:grid;grid-template-columns:220px minmax(0,1fr);gap:24px;align-items:center;margin:4px 0 22px;padding:22px;border:1px solid #31597a;border-radius:16px;background:linear-gradient(135deg,#07182a 0%,#08233a 100%)}
.passport-photo-stage{display:flex;flex-direction:column;align-items:center;gap:9px;padding:12px 12px 15px;border-radius:16px;background:#f1f5f8;box-shadow:0 12px 30px rgba(0,0,0,.24)}
.passport-photo-label{color:#0b2940;font-size:11px;font-weight:900;letter-spacing:.11em;text-transform:uppercase}
.passport-preview{position:relative;width:180px;aspect-ratio:3/4;margin:0 auto;border:3px solid #fff;border-radius:9px;overflow:hidden;display:grid;place-items:center;background:linear-gradient(#eef3f6,#dce6ec);color:#607588;text-align:center;font-size:12px;font-weight:800;line-height:1.35;box-shadow:0 0 0 1px #b7cad7}
.passport-preview::before{content:"";position:absolute;z-index:2;left:50%;top:12%;width:43%;height:43%;transform:translateX(-50%);border:1px dashed rgba(0,161,211,.7);border-radius:50%;pointer-events:none}
.passport-preview::after{content:"";position:absolute;z-index:2;left:17%;right:17%;top:56%;border-top:1px dashed rgba(0,161,211,.58);pointer-events:none}
.passport-preview.is-approved::before,.passport-preview.is-approved::after{display:none}
.passport-preview img{position:relative;z-index:1;width:100%;height:100%;object-fit:cover;display:none}
.passport-preview span{position:relative;z-index:1}
.passport-upload input[type=file]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.passport-upload-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.passport-upload-actions .passport-upload{margin:0}.wrap .passport-upload .passport-upload-button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 18px;border:1px solid #2bbce2;border-radius:12px;background:#0b7899;color:#fff;-webkit-text-fill-color:#fff;font-weight:800;cursor:pointer}
.passport-title{display:block;margin-bottom:10px;color:#fff;font-size:17px}
.passport-note{display:block;margin-top:10px;color:#a9bdd0;font-size:13px;line-height:1.45}
.passport-biometric-note{display:block;margin-top:8px;color:#79daf2;font-size:12px;line-height:1.5}
.passport-state{min-height:20px;margin-top:8px;color:#73df9a;font-size:13px}
@media(max-width:560px){.passport-field{grid-template-columns:1fr;text-align:center}.passport-photo-stage{width:min(100%,220px);margin:auto}.passport-preview{width:170px}}


/* BİASDER — yalnızca mobil şartname görünümü; kayıt/yayın akışı değiştirilmez. */
@media (max-width: 600px) {
  #rulesSection #rulesBox {
    padding: 14px;
    font-size: 14px;
    line-height: 1.55;
    overflow-x: hidden;
    overflow-y: auto;
    max-width: 100%;
  }
  #rulesSection #rulesBox p,
  #rulesSection #rulesBox li { font-size: inherit; line-height: 1.6; }
  #rulesSection #rulesBox ul,
  #rulesSection #rulesBox ol {
    display: block;
    list-style-position: outside;
    margin: 10px 0 16px;
    padding-left: 24px;
  }
  #rulesSection #rulesBox ul { list-style-type: disc; }
  #rulesSection #rulesBox ol { list-style-type: decimal; }
  #rulesSection #rulesBox li { display: list-item; padding-left: 2px; margin-bottom: 6px; }
  #rulesSection #rulesBox li::marker { color: #173d66; }
  #rulesSection #rulesBox h1,
  #rulesSection #rulesBox h2,
  #rulesSection #rulesBox h3,
  #rulesSection #rulesBox h4 { max-width: 100%; overflow-wrap: anywhere; line-height: 1.35; margin: 20px 0 10px; }
  #rulesSection #rulesBox table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    border-collapse: collapse;
    -webkit-overflow-scrolling: touch;
    margin: 12px 0 18px;
  }
  #rulesSection #rulesBox table th,
  #rulesSection #rulesBox table td {
    min-width: 170px;
    padding: 9px 10px;
    vertical-align: top;
    text-align: left;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    font-size: 13px;
    line-height: 1.5;
    border-bottom: 1px solid #cbd8e4;
  }
  #rulesSection #rulesBox table th { font-weight: 800; background: #e8eff6; }
  #rulesSection #rulesBox img { max-width: 100%; height: auto; }
}

/* BİASDER – Fotoğraf yükleme butonları */
.passport-upload {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 10px auto;
}

.wrap .passport-upload .passport-upload-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 300px);
  min-height: 52px;
  margin: 0 auto;
  padding: 12px 16px;
  border: 1px solid #e8b64f;
  border-radius: 12px;
  background: linear-gradient(135deg, #173b5c, #0b2742);
  color: #f8d17a;
  -webkit-text-fill-color: #f8d17a;
  text-align: center;
  font-weight: 800;
  cursor: pointer;
}

.passport-field > div:last-child {
  text-align: center;
}

.passport-title {
  text-align: center;
}

