/* Snug Table Briscola: açık sayfa, çuha masa, solda stok ve altında açık koz, ortada el (iki kart), üstte rakip, altta sen */
:root { --bg: #f6f1e7; --card: #fffdf8; --text: #1d140c; --muted: #6b5a45; --line: rgba(29, 20, 12, .12); --green: #1f8f42; --cw: 88px; --step: 96px; --tw: 62px; color-scheme: light; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
button, input { font: inherit; color: inherit; }
button { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
a { color: #1f5fb3; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 12px 28px; }
.wrap > .site-bar { padding-left: 4px; padding-right: 4px; }

/* Üst çubuk */
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 12px 4px 10px; }
.title h1 { margin: 0; font-size: 28px; line-height: 1.1; }
.sub { margin: 2px 0 0; color: var(--muted); font-size: 14px; font-weight: 600; }
.tools { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.tool { min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(29, 20, 12, .2); background: #fff; font-weight: 700; font-size: 14px; cursor: pointer; }
.tool:hover:not(:disabled) { background: #f1ebdf; }
.tool:disabled { opacity: .45; cursor: default; }
.tool-green { background: var(--green); border-color: var(--green); color: #fff; }
.tool-green:hover:not(:disabled) { background: #23a04b; }
.tool.hint { box-shadow: 0 0 0 3px #f1c75b, 0 0 14px rgba(241, 199, 91, .8); }

/* Masa */
.felt { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 320px; padding: 10px 10px 8px; border-radius: 18px;
  background: radial-gradient(ellipse 80% 70% at 50% 40%, #2c8a5a 0%, #1f6a44 55%, #154a30 100%); box-shadow: inset 0 0 70px rgba(0, 0, 0, .35), 0 8px 24px rgba(40, 25, 10, .18); }
.row { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.row.mid { flex-wrap: nowrap; align-items: center; gap: 10px; min-height: calc(var(--tw) * 1.4 + 30px); }
.row.bottom { justify-content: flex-start; gap: 8px; }
.who { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; padding: 4px 12px; border-radius: 16px; background: rgba(0, 0, 0, .28); color: #f2efe4; font-size: 14px; font-weight: 700; }
.who.turn { background: rgba(241, 199, 91, .92); color: #2a1a05; }
.who .taken { font-size: 13px; font-weight: 600; opacity: .92; white-space: nowrap; }
.who .brooms { white-space: nowrap; letter-spacing: 1px; }
.who .pts { padding: 0 7px; border-radius: 8px; background: rgba(255, 255, 255, .16); font-size: 13px; white-space: nowrap; }
.opp-hand { display: flex; align-items: center; justify-content: center; gap: 4px; }
.back-card { display: inline-block; width: 34px; height: 48px; border-radius: 4px; flex: none; border: 1px solid #2a1308; box-shadow: 0 1px 2px rgba(0, 0, 0, .35);
  background: radial-gradient(circle at 50% 50%, rgba(240, 192, 58, .55) 0 18%, transparent 19%), repeating-linear-gradient(45deg, rgba(255, 255, 255, .1) 0 3px, transparent 3px 7px), linear-gradient(135deg, #8a2a22, #5a1410); }
.back-card.big { width: var(--tw); height: calc(var(--tw) * 1.4); border-radius: 6px; }

/* Stok */
.pile { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px; }
.stack { position: relative; display: block; width: calc(var(--tw) + 6px); height: calc(var(--tw) * 1.4 + 4px); }
.stack > .back-card { position: absolute; left: 0; top: 4px; }
.stack > .back-card + .back-card { left: 3px; top: 2px; }
.stack > .back-card + .back-card + .back-card { left: 6px; top: 0; }
.empty-slot { display: grid; place-items: center; width: var(--tw); height: calc(var(--tw) * 1.4); border-radius: 8px; border: 2px dashed rgba(255, 255, 255, .35); }
.mini-label { color: rgba(242, 239, 228, .9); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; text-align: center; line-height: 1.25; }
.mini-label b { color: #fff8e6; }

/* Ortadaki kartlar */
.table-cards { flex: 1 1 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; align-content: center; gap: 8px; min-width: 0; min-height: calc(var(--tw) * 1.4 + 12px); padding: 6px; border-radius: 14px; background: rgba(0, 0, 0, .1); }
.table-empty { color: rgba(242, 239, 228, .7); font-size: 14px; font-weight: 700; font-style: italic; }
.table-cards .pc { --cw: var(--tw); transition: transform .15s, box-shadow .15s; }
.table-cards .pc.new { animation: dIn .3s ease-out both; }
.table-cards .pc.would { transform: translateY(-5px); box-shadow: 0 0 0 3px rgba(241, 199, 91, .85), 0 4px 10px rgba(0, 0, 0, .35); }
.table-cards .pc.pick { transform: translateY(-7px); box-shadow: 0 0 0 3px #f1c75b, 0 0 14px rgba(241, 199, 91, .9); }
.table-cards .pc.taken { box-shadow: 0 0 0 3px #fff, 0 0 16px rgba(255, 255, 255, .8); transform: translateY(-6px); }
.table-cards .pc.played { box-shadow: 0 0 0 3px #f1c75b, 0 4px 10px rgba(0, 0, 0, .4); }
@keyframes dIn { from { transform: translateY(18px) scale(.9); opacity: 0; } }
.center-note { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 5; padding: 10px 16px; border-radius: 14px; background: rgba(20, 12, 6, .84); color: #fff8e6; font-weight: 700; text-align: center; max-width: 84%; pointer-events: none; }
.center-note.scopa { font-size: 22px; background: rgba(160, 30, 20, .9); letter-spacing: .02em; }

/* Kart */
.pc { position: relative; display: block; width: var(--cw); height: calc(var(--cw) * 1.4); flex: none; padding: 0; border-radius: calc(var(--cw) * .09); overflow: hidden;
  background: linear-gradient(180deg, #fffdf8, #f6efe0); border: 1px solid rgba(80, 60, 30, .38); box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 2px 5px rgba(0, 0, 0, .28); color: #1d140c; font: 800 12px system-ui, sans-serif; text-align: left; }
.pc svg { display: block; width: 100%; height: 100%; font-family: Georgia, "Times New Roman", serif; }
.pc.std svg { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.pc.mini { --cw: 34px; }

/* El */
.hand { display: flex; justify-content: center; align-items: flex-end; gap: 0; min-height: calc(var(--cw) * 1.4 + 26px); margin: 10px 0 0; padding: 22px 0 4px; }
.hand-empty { margin: 20px 0 0; color: var(--muted); font-weight: 700; text-align: center; }
.hand .pc { cursor: default; transition: transform .16s cubic-bezier(.3, .7, .4, 1), box-shadow .15s, filter .15s; }
.hand .pc + .pc { margin-left: calc(var(--step) - var(--cw)); }
.hand .pc.legal { cursor: pointer; }
.hand .pc.legal:hover, .hand .pc.focus, .hand .pc.legal:focus-visible { transform: translateY(-14px); box-shadow: 0 10px 18px rgba(0, 0, 0, .3); z-index: 2; }
.hand .pc.dim { filter: brightness(.82) saturate(.7); }
.hand .pc.sel { transform: translateY(-20px); box-shadow: 0 0 0 3px var(--green), 0 10px 18px rgba(0, 0, 0, .3); z-index: 3; }
.hand .pc.hint { box-shadow: 0 0 0 3px #f1c75b, 0 0 18px 4px rgba(241, 199, 91, .75); transform: translateY(-16px); z-index: 3; }

/* Durum satırı, alma seçimi ve koç */
.status { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; margin: 10px 4px 0; min-height: 40px; font-weight: 700; text-align: center; }
.choices { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.choice { min-height: 40px; padding: 6px 12px; border-radius: 999px; border: 2px solid #c79a2a; background: #fff8e2; font-weight: 700; font-size: 14px; cursor: pointer; }
.choice:hover, .choice:focus-visible { background: #f7e7b0; }
.choice kbd { margin-right: 4px; }
.coach-line { margin: 6px auto 0; max-width: 680px; padding: 8px 12px; border-radius: 12px; background: #fff3cf; border: 1px solid rgba(138, 98, 36, .3); color: #4a3310; font-size: 14px; text-align: center; }
.coach-line.good { background: #e3f6e8; border-color: rgba(31, 143, 66, .35); color: #17532b; }
.keys { margin: 12px 4px 0; color: var(--muted); font-size: 13px; text-align: center; }
kbd { padding: 0 5px; border-radius: 4px; border: 1px solid rgba(0, 0, 0, .2); background: #fff; font: 600 12px ui-monospace, Consolas, monospace; }

/* Pencereler */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(20, 12, 6, .55); }
.modal-card { width: min(440px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 20px; border-radius: 18px; background: var(--card); box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.modal-card.wide { width: min(580px, 100%); }
.modal-card h2 { margin: 0 0 10px; font-size: 22px; }
fieldset { margin: 0 0 12px; padding: 0; border: 0; }
legend { margin-bottom: 4px; font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: #8a6224; }
fieldset label { display: block; margin: 4px 0; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; font-weight: 700; }
fieldset label:has(input:checked) { border-color: var(--green); background: #e3f6e8; }
fieldset small, .check small { display: block; margin-left: 24px; font-weight: 500; color: var(--muted); }
.check { display: block; margin: 8px 0; font-weight: 600; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.btn { min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1px solid rgba(29, 20, 12, .2); background: #fff; font-weight: 700; cursor: pointer; }
.btn:hover { background: #f1ebdf; }
.btn-green { background: var(--green); border-color: var(--green); color: #fff; }
.btn-green:hover { background: #23a04b; }
.score-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.score-table th, .score-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.score-table thead th { font-size: 13px; color: var(--muted); }
.score-table td.num, .score-table th.num { text-align: right; white-space: nowrap; }
.score-table td.win { font-weight: 800; color: #17532b; }
.score-table tr.total td { font-weight: 800; border-top: 2px solid var(--line); }
.big-line { font-size: 18px; margin: 4px 0 8px; }
.coach-box { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: #fff3cf; border: 1px solid rgba(138, 98, 36, .3); color: #4a3310; font-size: 15px; line-height: 1.45; }
.coach-box p { margin: 4px 0; }
.hint-text { color: var(--muted); font-size: 14px; }
.review h3 { margin: 10px 0 4px; font-size: 16px; }
.review ol { margin: 0; padding-left: 20px; }

/* Mühür rozeti */
.fair-badge { display: inline-flex; align-items: center; gap: 4px; min-height: 26px; padding: 1px 10px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 700; color: #17532b; background: #e3f6e8; border: 1px solid rgba(31, 143, 66, .35); vertical-align: middle; }
.fair-badge.open { background: #fff3cf; color: #6a4a0c; border-color: rgba(138, 98, 36, .35); }
.fair-badge.verified { background: #1f8f42; color: #fff; }
.fair-badge.failed { background: #fbe2de; color: #8a1c10; }
.fair-result { margin: 10px 0; padding: 10px 12px; border-radius: 10px; font-weight: 700; }
.fair-result.ok { background: #e3f6e8; color: #17532b; } .fair-result.fail { background: #fbe2de; color: #8a1c10; }
.fair-details summary { cursor: pointer; font-weight: 700; margin-top: 8px; }
.fair-body dt { font-weight: 700; margin-top: 6px; font-size: 13px; }
.fair-body dd { margin: 0; font: 12px/1.4 ui-monospace, Consolas, monospace; word-break: break-all; }
.linkish { padding: 0; border: 0; background: none; color: #1f5fb3; text-decoration: underline; cursor: pointer; font: inherit; }

/* El sonu paneli */
.show-panel { margin: 0 auto; width: min(640px, 100%); padding: 12px 14px; border-radius: 14px; background: rgba(255, 253, 248, .97); color: #1d140c; box-shadow: 0 8px 22px rgba(0, 0, 0, .3); }
.show-panel h3 { margin: 0 0 4px; font-size: 18px; }
.res-head { margin: 0 0 6px; font-size: 15px; }
.prim-cards { display: flex; justify-content: flex-end; gap: 2px; margin-top: 3px; }
.show-panel .score-table { table-layout: fixed; }
.show-panel .score-table td:first-child, .show-panel .score-table th:first-child { width: 38%; }
.prim-cards .pc { --cw: 22px; border-radius: 3px; }

.about { margin-top: 32px; padding: 22px 4px 0; border-top: 1px solid var(--line); }
.about-inner { max-width: 720px; }

/* Ayar örnekleri: kart görünümü ve masa (yeşil, maiolica çini kenarı, ahşap) */
.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.swatches legend { width: 100%; }
.swatches label { display: flex; align-items: center; gap: 8px; flex: 1 1 110px; margin: 0; }
.swatches input { position: absolute; opacity: 0; }
.swatches label:has(input:focus-visible) { outline: 3px solid var(--green); outline-offset: 2px; }
.sw { width: 26px; height: 34px; flex: none; border-radius: 5px; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.face-it { background: radial-gradient(circle at 50% 50%, #f0c03a 0 30%, #b3261e 31% 36%, #fffdf8 37%); border: 1px solid #9a6a10; }
.face-std { background: #fffdf8; border: 1px solid #888; position: relative; }
.face-std::after { content: "♥"; position: absolute; inset: 0; display: grid; place-items: center; color: #c0392b; font-size: 16px; }
.felt-green { background: #1f6a44; }
.felt-maiolica { background: #b4532a; box-shadow: inset 0 0 0 3px #f4e6c4, inset 0 0 0 6px #1e4f9a, 0 1px 3px rgba(0, 0, 0, .3); }
.felt-wood { background: repeating-linear-gradient(92deg, #7a4f2c 0 4px, #6a4424 4px 8px); }
/* Maiolica: pişmiş toprak masa, kenarda mavi-sarı çini şeridi (bizim desenimiz) */
html[data-felt="maiolica"] .felt { border: 12px solid transparent; padding: 6px;
  background: radial-gradient(ellipse 80% 70% at 50% 40%, #c4673a 0%, #a8502a 60%, #86391b 100%) padding-box,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect width='24' height='24' fill='%23f4e6c4'/%3E%3Cpath d='M12 2c3 4 3 6 0 10-3-4-3-6 0-10zM12 22c3-4 3-6 0-10-3 4-3 6 0 10zM2 12c4-3 6-3 10 0-4 3-6 3-10 0zM22 12c-4-3-6-3-10 0 4 3 6 3 10 0z' fill='%231e4f9a'/%3E%3Ccircle cx='12' cy='12' r='2.2' fill='%23e6a51e'/%3E%3Cpath d='M0 0h4v4H0zM20 0h4v4h-4zM0 20h4v4H0zM20 20h4v4h-4z' fill='%23e6a51e' opacity='.8'/%3E%3C/svg%3E") 0 0 / 24px 24px border-box; }
html[data-felt="maiolica"] .table-cards { background: rgba(60, 20, 5, .16); box-shadow: inset 0 0 0 1px rgba(244, 230, 196, .35); }
html[data-felt="maiolica"] .who.turn { background: #f0c03a; }
html[data-felt="maiolica"] .back-card { background: radial-gradient(circle at 50% 50%, rgba(240, 192, 58, .7) 0 18%, transparent 19%), repeating-linear-gradient(45deg, rgba(255, 255, 255, .14) 0 3px, transparent 3px 7px), linear-gradient(135deg, #2a5fae, #1a3c74); border-color: #0f2447; }
html[data-felt="wood"] .felt { background: radial-gradient(ellipse 80% 70% at 50% 35%, rgba(255, 220, 170, .18), transparent 70%), repeating-linear-gradient(92deg, #7a4f2c 0 6px, #714828 6px 13px, #7f5530 13px 21px); }
html[data-felt="wood"] .felt .snug-mark { color: rgba(255, 238, 210, .34); }

@media (max-width: 640px) {
  .wrap { padding: 0 6px 24px; }
  .bar { margin: 8px 2px; gap: 6px 10px; }
  .title h1 { font-size: 22px; }
  .tools { margin-left: 0; width: 100%; }
  .tool { flex: 1 1 auto; min-height: 40px; padding: 6px 8px; font-size: 13px; }
  #btnSettings, #btnResign, #btnHint { flex: 0 0 auto; min-width: 40px; } #btnSettings .tl, #btnResign .tl { display: none; }
  #btnResign:not(:disabled) { background: #fbeee4; border-color: rgba(160, 80, 40, .3); }
  .felt { padding: 8px 4px 26px; border-radius: 12px; min-height: 270px; gap: 8px; }
  html[data-felt="maiolica"] .felt { border-width: 8px; padding: 4px 3px 24px; }
  .who { padding: 3px 8px; font-size: 12px; gap: 3px 6px; }
  .who .taken, .who .pts { font-size: 12px; }
  .row.mid { gap: 4px; }
  .pile { padding: 2px; }
  .back-card { width: 24px; height: 34px; }
  .table-cards { gap: 5px; padding: 4px; }
  .show-panel { padding: 10px; }
  .keys { display: none; }
  .choice { font-size: 13px; padding: 6px 10px; }
  .show-panel .score-table { font-size: 14px; }
  .show-panel .score-table th, .show-panel .score-table td { padding: 5px 4px; }
  .prim-cards .pc { --cw: 16px; }
}
@media (max-width: 400px) {
  .tools { gap: 4px; }
  .tools .tool { padding: 6px 6px; }
  #btnHint .tl { display: none; }
}
@media (max-width: 360px) { .tools .tool { padding: 6px 5px; } #btnNew .tl2 { display: none; } #btnSettings, #btnResign, #btnHint { min-width: 36px; } }
@media (prefers-reduced-motion: reduce) { .pc, .table-cards .pc.new { animation: none !important; transition: none !important; } }
@media (prefers-contrast: more) { .pc { border: 2px solid #000; } }

/* ---------- Briscola: el alanı, açık koz, koz etiketi ---------- */
.trick-cards { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: 14px; min-width: 0; min-height: calc(var(--tw) * 1.4 + 34px); padding: 6px; border-radius: 14px; background: rgba(0, 0, 0, .1); }
.trick-slot { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.trick-slot .pc { --cw: var(--tw); transition: transform .15s, box-shadow .15s; }
.trick-slot .pc.new { animation: dIn .28s ease-out both; }
.trick-slot.won .pc { transform: translateY(-6px); box-shadow: 0 0 0 3px #f1c75b, 0 0 16px rgba(241, 199, 91, .9); }
.slot-who { color: rgba(242, 239, 228, .92); font-size: 12px; font-weight: 700; max-width: calc(var(--tw) + 30px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trick-cards .table-empty { color: rgba(242, 239, 228, .75); font-size: 14px; font-weight: 700; font-style: italic; }
/* Stok: kapalı deste sağda, açık koz altından solda görünür (köşedeki değeri okunur kalsın: Durak testinden ders) */
/* Eğik koz sola taşmasın: dönüşle sola kayan köşe payı kadar içeriden başlar */
.stock-wrap { position: relative; display: block; width: calc(var(--tw) * 1.62 + 10px); height: calc(var(--tw) * 1.4 + 4px); }
.stock-wrap .stack { position: absolute; left: calc(var(--tw) * .62 + 4px); top: 0; z-index: 2; }
.trump-under { position: absolute; left: calc(var(--tw) * .12); top: 4px; z-index: 1; }
.trump-under .pc { --cw: var(--tw); transform: rotate(-8deg); transform-origin: 80% 90%; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.pile.empty .stock-wrap { height: calc(var(--tw) * .9); }
.trump-chip { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 16px; background: rgba(255, 248, 230, .94); color: #2a1a05; font-size: 14px; font-weight: 700; white-space: nowrap; }
.trump-chip b { color: #8a1c10; }
.trump-chip small { font-weight: 600; color: #6b5a45; }
.opp-hand .pc.known { --cw: 34px; border-radius: 4px; box-shadow: 0 0 0 2px #f1c75b, 0 1px 2px rgba(0, 0, 0, .35); }
.center-note.good { background: rgba(23, 83, 43, .92); }
.center-note.bad { background: rgba(130, 30, 20, .9); }
html[data-felt="maiolica"] .trick-cards { background: rgba(60, 20, 5, .16); box-shadow: inset 0 0 0 1px rgba(244, 230, 196, .35); }
@media (max-width: 640px) {
  .trick-cards { gap: 10px; padding: 4px; }
  .trump-chip { font-size: 12px; padding: 3px 9px; }
  .opp-hand .pc.known { --cw: 24px; }
  .slot-who { font-size: 12px; }
}
@media (max-width: 360px) { .trump-chip small { display: none; } }
@media (prefers-reduced-motion: reduce) { .trick-slot .pc.new { animation: none !important; } }
/* Kısa telefon ekranı (320×640 gibi): el kaydırmadan görünsün; masa ve üst satırlar sıkışır, el masanın hemen altına gelir */
@media (max-width: 400px) and (max-height: 760px) {
  .wrap { display: flex; flex-direction: column; }
  .wrap > .site-bar, .wrap > .bar, .wrap > .felt { order: -2; }
  .wrap > .hand { order: -1; margin-top: 0; padding-top: 16px; min-height: calc(var(--cw) * 1.4 + 18px); }
  .site-tag { display: none; }
  .bar { margin: 4px 2px 6px; }
  .title h1 { font-size: 20px; }
  .sub { font-size: 13px; }
  .tool { min-height: 38px; }
  .felt { min-height: 0; padding-top: 6px; padding-bottom: 22px; gap: 4px; }
  .row.mid { min-height: calc(var(--tw) * 1.4 + 24px); }
  .trick-cards { min-height: calc(var(--tw) * 1.4 + 24px); }
  .status { margin-top: 4px; min-height: 34px; }
}

/* Kısa ekranda (320×640 gibi) yeni oyun penceresi kaydırmadan sığsın: açıklamalar gizlenir */
@media (max-height: 700px) {
  .modal { padding: 8px; }
  .modal-card { padding: 14px 16px; max-height: calc(100vh - 16px); }
  .modal-card h2 { font-size: 19px; margin-bottom: 6px; }
  #newModal fieldset { margin-bottom: 6px; }
  #newModal fieldset label { padding: 5px 9px; margin: 3px 0; }
  #newModal fieldset small, #newModal .hint-text { display: none; }
  #newModal .modal-actions { margin-top: 10px; }
}
