:root {
  --lacivert: #1d2b53;
  --lacivert2: #2a3d70;
  --kraft: #f3e9d6;
  --kagit: #fffaf0;
  --amber: #e8961e;
  --turuncu: #e0702c;
  --yesil: #2f9a8a;
  --yazi: #1d2433;
  --soluk: #636a77;
  --cizgi: #e2d6bf;
  --uyari: #b4441c;
}
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--kraft); color: var(--yazi);
  font: 400 16px/1.5 Nunito, system-ui, sans-serif;
  background-image: radial-gradient(rgba(29, 43, 83, 0.06) 1px, transparent 1px);
  background-size: 18px 18px;
}
#uygulama { max-width: 760px; margin: 0 auto; padding: 18px 16px 40px; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--lacivert); font-weight: 800; }

.bas { text-align: center; padding: 18px 4px 8px; }
.ust { margin: 0; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; color: var(--turuncu); }
h1 { font: 900 clamp(38px, 10vw, 62px)/1.02 Fraunces, Georgia, serif; color: var(--lacivert); margin: 8px 0 12px; }
h1 em { color: var(--amber); font-style: italic; }
.giris-yazi { max-width: 560px; margin: 0 auto; font-size: 17px; }
.ornek-unvanlar { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ornek-unvanlar li { background: var(--kagit); border: 2px solid var(--lacivert); border-radius: 999px; padding: 4px 12px; font-weight: 800; font-size: 14px; color: var(--lacivert); }
.ornek-unvanlar li:nth-child(2) { border-color: var(--amber); color: #8a5208; }
.ornek-unvanlar li:nth-child(3) { border-color: var(--yesil); color: #1d6a5f; }

.kart { background: var(--kagit); border: 2px solid var(--lacivert); border-radius: 18px; padding: 16px; margin: 16px 0; box-shadow: 5px 5px 0 var(--lacivert); }
h2 { font: 900 22px/1.2 Fraunces, Georgia, serif; color: var(--lacivert); margin: 0 0 10px; display: flex; align-items: center; gap: 10px; }
h2 small { font: 700 14px Nunito, sans-serif; color: var(--soluk); }
.adim { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--amber); color: #fff; font: 900 16px Nunito, sans-serif; flex: none; }
.kucuk { font-size: 14px; color: var(--soluk); margin: 8px 0 0; }

.kademe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kademe button { border: 2px solid var(--lacivert); background: #fff; border-radius: 12px; padding: 12px 6px; font-weight: 800; cursor: pointer; }
.kademe button[aria-checked="true"] { background: var(--lacivert); color: #fff; }

.iki { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .iki { grid-template-columns: 1fr; } }
.alan { display: block; }
.alan > span { display: block; font-weight: 800; font-size: 14px; margin-bottom: 4px; }
.alan small { font-weight: 400; color: var(--soluk); }
.alan input, .alan textarea { width: 100%; border: 2px solid var(--cizgi); border-radius: 10px; padding: 10px 12px; background: #fff; font-size: 16px; }
.alan textarea { resize: vertical; min-height: 140px; }
.alan input:focus, .alan textarea:focus, .unvan:focus, .ad:focus { outline: none; border-color: var(--amber); }

.dugme { border: 2px solid var(--lacivert); background: #fff; color: var(--lacivert); border-radius: 12px; padding: 12px 16px; font-weight: 900; cursor: pointer; }
.dugme.ana { background: var(--amber); border-color: var(--lacivert); color: var(--lacivert); box-shadow: 3px 3px 0 var(--lacivert); }
.dugme.sun { background: var(--lacivert); color: #fff; }
.dugme.hafif { border-style: dashed; }
.dugme:active { transform: translate(2px, 2px); box-shadow: none; }
.dugme:disabled { opacity: .55; cursor: wait; }
.satir-dugme { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cikti-dugmeler { display: grid; gap: 8px; margin-top: 12px; }
@media (min-width: 620px) { .cikti-dugmeler { grid-template-columns: 1fr 1fr 1fr; } }

.boyut { display: flex; gap: 16px; font-weight: 800; }
.boyut input { accent-color: var(--lacivert); width: 18px; height: 18px; vertical-align: -3px; }

#ogrenciler { list-style: none; padding: 0; margin: 10px 0 0; counter-reset: n; }
.satir { display: grid; grid-template-columns: 26px 1fr auto; gap: 6px 8px; align-items: start; padding: 10px 0; border-top: 1px dashed var(--cizgi); }
.satir .no { font-weight: 900; color: var(--amber); padding-top: 9px; text-align: right; }
.satir .ad { width: 100%; border: 2px solid transparent; border-radius: 8px; padding: 6px 8px; font-weight: 900; font-size: 17px; background: transparent; }
.satir .ad:hover { border-color: var(--cizgi); }
.satir .unvan { width: 100%; border: 2px solid var(--cizgi); border-radius: 8px; padding: 7px 9px; font-size: 15px; font-weight: 700; background: #fff; color: var(--lacivert); margin-top: 4px; }
.satir .aciklama { display: block; font-size: 13px; color: var(--soluk); padding: 3px 9px 0; font-style: italic; }
.satir .uyari { display: block; font-size: 13px; color: var(--uyari); font-weight: 800; padding: 3px 9px 0; }
.satir .dugmeler { display: flex; gap: 4px; padding-top: 2px; }
.satir .dugmeler button { width: 38px; height: 38px; border: 2px solid var(--cizgi); background: #fff; border-radius: 10px; cursor: pointer; font-size: 17px; line-height: 1; padding: 0; }
.satir .dugmeler button:hover { border-color: var(--lacivert); }
@media (max-width: 520px) {
  .satir { grid-template-columns: 22px 1fr; }
  .satir .dugmeler { grid-column: 2; }
}

.guven { background: var(--lacivert); color: #fff; border-radius: 18px; padding: 16px 18px; margin: 22px 0 12px; }
.guven h2 { color: #fff; }
.guven ul { margin: 0; padding-left: 20px; }
.guven li { margin: 4px 0; }
.guven b { color: #ffd38a; }
.geri { background: none; border: 0; color: inherit; text-decoration: underline; cursor: pointer; padding: 10px 0 0; font-weight: 700; }
.alt { text-align: center; font-size: 14px; color: var(--soluk); }
.alt p { margin: 4px 0; }

dialog { border: 0; padding: 0; background: transparent; max-width: min(960px, 96vw); width: 100%; }
dialog::backdrop { background: rgba(14, 20, 40, .72); }
.pencere { background: var(--kagit); border-radius: 16px; padding: 14px; border: 2px solid var(--lacivert); }
#onTuval { width: 100%; height: auto; display: block; border-radius: 6px; box-shadow: 0 4px 18px rgba(0, 0, 0, .2); }
#secici .pencere { max-width: 520px; margin: 0 auto; max-height: 86vh; display: flex; flex-direction: column; }
#secici h3 { margin: 0 0 8px; font: 900 20px Fraunces, serif; color: var(--lacivert); }
#secici h3 small { font: 700 14px Nunito, sans-serif; color: var(--soluk); }
#seciciAra { border: 2px solid var(--cizgi); border-radius: 10px; padding: 9px 12px; margin-bottom: 8px; }
#seciciListe { list-style: none; margin: 0 0 10px; padding: 0; overflow: auto; }
#seciciListe button { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px dashed var(--cizgi); background: none; padding: 9px 6px; cursor: pointer; }
#seciciListe button:hover { background: #fff; }
#seciciListe b { color: var(--lacivert); }
#seciciListe small { display: block; color: var(--soluk); font-style: italic; }
#seciciListe .kullanildi b::after { content: " · başkasında"; font-weight: 400; font-size: 12px; color: var(--turuncu); }

/* Sunum */
#sunum { position: fixed; inset: 0; z-index: 50; background: radial-gradient(circle at 50% 40%, #2a3d70, #121a33 70%); color: #fff; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; cursor: pointer; user-select: none; }
.sunum-kapat { position: absolute; top: 14px; right: 14px; width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .5); background: transparent; color: #fff; font-size: 22px; cursor: pointer; z-index: 3; }
.sunum-sayac { position: absolute; top: 18px; left: 20px; margin: 0; font-weight: 800; opacity: .7; }
.sunum-ipucu { position: absolute; bottom: 14px; left: 0; right: 0; margin: 0; font-size: 14px; opacity: .55; }
.sunum-icerik { padding: 24px; max-width: 1100px; position: relative; z-index: 2; }
.s-ust { font-weight: 900; letter-spacing: .18em; text-transform: uppercase; color: #ffd38a; font-size: clamp(14px, 2.4vw, 24px); margin: 0 0 14px; }
.s-unvan { font: 900 clamp(38px, 7.5vw, 96px)/1.05 Fraunces, Georgia, serif; margin: 0; color: #ffb445; }
.s-aciklama { font: italic 600 clamp(18px, 3vw, 32px)/1.3 Fraunces, Georgia, serif; opacity: .85; margin: 16px 0 0; }
.s-ad { font: italic 700 clamp(54px, 12vw, 160px)/1 Fraunces, Georgia, serif; margin: 6px 0 0; }
.s-kucuk-unvan { font: 900 clamp(20px, 3.6vw, 40px)/1.15 Fraunces, Georgia, serif; color: #ffb445; margin: 18px 0 0; }
.s-davul { display: inline-block; margin-top: 30px; padding: 14px 26px; border-radius: 999px; border: 2px solid #ffb445; font-weight: 900; font-size: clamp(18px, 2.6vw, 28px); animation: nabiz 1.1s ease-in-out infinite; }
.s-baslik { font: 900 clamp(44px, 9vw, 120px)/1 Fraunces, Georgia, serif; margin: 0; }
.s-baslik em { color: #ffb445; }
.giris-anim { animation: gir .55s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes gir { from { transform: scale(.6) translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes nabiz { 50% { transform: scale(1.06); } }
#konfeti { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
#konfeti i { position: absolute; top: -20px; width: 12px; height: 18px; border-radius: 2px; animation: dus linear forwards; }
@keyframes dus { to { transform: translate(var(--x, 0), 110vh) rotate(var(--r, 540deg)); } }

#baski { display: none; }
@page { size: A4 landscape; margin: 0; }
@page a5 { size: A5 landscape; margin: 0; }
@media print {
  body { background: #fff; }
  #uygulama, dialog, #sunum { display: none !important; }
  #baski { display: block; }
  #baski img { display: block; width: 297mm; height: 210mm; break-after: page; page-break-after: always; }
  #baski img:last-child { break-after: auto; page-break-after: auto; }
  #baski.a5 img { width: 210mm; height: 148mm; page: a5; }
}
@media (prefers-reduced-motion: reduce) { .giris-anim, .s-davul { animation: none; } }
