/* GIF Kasası — O mu Bu mu? / swipe-or-tap duel. Only affects the game overlay and header link. */
.header-about{display:inline-flex;align-items:center;justify-content:center;width:39px;height:39px;border:1px solid var(--lg-stroke,var(--line));border-radius:10px;color:var(--text);text-decoration:none;background:var(--lg-surface,var(--panel));flex:none;font-size:19px;font-weight:700}
.header-about:hover,.header-about:focus-visible{background:var(--lg-selected,var(--chip-active))}
@media(max-width:700px){.header-about{width:34px;height:36px;font-size:17px}.controls{gap:5px}}
@media(max-width:370px){.header-about{width:30px;height:34px}.controls{gap:3px}}
.duel-overlay[hidden]{display:none!important}
.duel-overlay{position:fixed;inset:0;z-index:300;overflow-y:auto;overscroll-behavior:contain;background:#000;color:#f5f2fa;padding:calc(14px + env(safe-area-inset-top,0px)) max(13px,env(safe-area-inset-left,0px)) calc(28px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;align-items:center;gap:16px}
.duel-header{display:flex;align-items:center;justify-content:space-between;gap:12px;width:min(100%,820px)}
.duel-kicker{display:block;color:#bba0da;font-size:10px;font-weight:800;letter-spacing:.17em}
.duel-header h2{margin:0;font-size:clamp(21px,5vw,30px);font-weight:900;letter-spacing:-.04em}
.duel-close{width:42px;height:42px;display:grid;place-items:center;font-size:25px;border-radius:15px;border:1px solid #ffffff23;color:#f4eff9;background:#19151f}
.duel-intro{width:min(100%,820px);color:#b9b1c2;font-size:13px;margin:-6px 0 0}
.duel-status{display:flex;align-items:center;justify-content:space-between;width:min(100%,820px);gap:15px;color:#c9c1d1;font-size:12px;font-weight:700}
.duel-progress{height:5px;border-radius:10px;background:#222028;overflow:hidden;flex:1}
.duel-progress-fill{height:100%;width:0;background:linear-gradient(90deg,#9c70d0,#d8b8ff);border-radius:10px;transition:width .3s ease}
.duel-arena{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:12px;width:min(100%,820px);position:relative}
.duel-vs{position:absolute;z-index:2;left:50%;top:45%;transform:translate(-50%,-50%);padding:8px;border:1px solid #ffffff30;background:#110f17;border-radius:50%;color:#e9d7ff;font-weight:900;font-size:11px;pointer-events:none}
.duel-choice{position:relative;min-width:0;padding:9px 9px 12px;display:flex;flex-direction:column;gap:10px;align-items:center;border:1px solid #ffffff26;border-radius:23px;background:linear-gradient(160deg,#1b1821,#0f0e12);color:#fff;cursor:pointer;box-shadow:0 10px 28px #0008;transition:border-color .2s,transform .22s,opacity .22s}
.duel-choice:focus-visible{outline:2px solid #d2aafa;outline-offset:3px}
.duel-choice:hover{border-color:#b491e4}
.duel-choice:active{transform:scale(.97)}
.duel-choice img{display:block;width:100%;height:min(43vh,345px);min-height:150px;object-fit:contain;border-radius:15px;background:#080709}
.duel-choice .duel-emoji{display:grid;place-items:center;width:100%;height:min(43vh,345px);min-height:150px;font-size:clamp(62px,13vw,110px);background:#111016;border-radius:15px}
.duel-choice strong{display:block;text-align:center;min-height:38px;font-size:clamp(12px,2.8vw,16px);line-height:1.25;overflow-wrap:anywhere}
.duel-choice .duel-select{display:flex;align-items:center;justify-content:center;width:100%;padding:10px 5px;background:#31213f;border:1px solid #a77bc548;border-radius:13px;color:#f4e8ff;font-size:12px;font-weight:800}
.duel-choice.duel-winner{border-color:#d3aeff;background:linear-gradient(150deg,#392349,#17101e);transform:scale(1.035)}
.duel-choice.duel-loser{opacity:.27;transform:scale(.95)}
.duel-footer{text-align:center;max-width:640px;color:#a69caf;font-size:12px}
.duel-result[hidden],.duel-play[hidden]{display:none!important}
.duel-result{width:min(100%,620px);margin:auto;text-align:center;padding:28px 20px 32px;border:1px solid #ffffff24;background:#151119;border-radius:26px}
.duel-result .duel-trophy{font-size:60px}
.duel-result h3{font-size:26px;margin:7px 0}
.duel-result p{color:#bdb2c9}
.duel-restart{border:1px solid #bd94e5;background:#332041;color:#fff;border-radius:15px;padding:13px 24px;font-weight:800}
body.duel-open{overflow:hidden}
@media(max-width:480px){.duel-overlay{gap:13px}.duel-arena{gap:8px}.duel-choice{padding:6px 6px 10px;border-radius:18px;gap:8px}.duel-choice img,.duel-choice .duel-emoji{height:min(38vh,265px);min-height:135px}.duel-choice strong{min-height:45px}.duel-vs{padding:6px;font-size:10px}.duel-choice .duel-select{font-size:11px}}
@media(prefers-reduced-motion:reduce){.duel-choice,.duel-progress-fill{transition:none!important}}
html[data-theme="light"] .duel-overlay{background:#f6f3f9;color:#271d32}
html[data-theme="light"] .duel-choice{background:#fff;border-color:#dfd0e9;color:#271d32}
html[data-theme="light"] .duel-intro,html[data-theme="light"] .duel-status,html[data-theme="light"] .duel-footer{color:#61546c}
html[data-theme="light"] .duel-close{background:#fff;color:#34263e;border-color:#ded0e5}
html[data-theme="light"] .duel-vs{background:#f8f3fc;color:#6c4a8a}
html[data-theme="light"] .duel-result{background:#fff;color:#34263e}

.duel-dock-icon{display:block;font-size:20px;line-height:1.2}

/* v1.1 — vertical cinematic choice cards, explicit swipe direction. */
.duel-overlay{gap:10px}
.duel-header,.duel-intro,.duel-status,.duel-arena{max-width:620px}
.duel-play{width:min(100%,620px)}
#duelPlay{width:min(100%,620px)}
.duel-arena{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:repeat(2,minmax(0,1fr));
  gap:10px;
  width:100%;
  margin-top:9px;
  touch-action:none;
}
.duel-choice{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(90px,28%);
  grid-template-rows:1fr auto;
  text-align:left;
  padding:8px;
  column-gap:10px;
  row-gap:4px;
  align-items:center;
  border-radius:20px;
  min-height:0;
  overflow:hidden;
}
.duel-choice .duel-media{
  grid-column:1;grid-row:1 / 3;
  display:flex;align-items:center;justify-content:center;
  width:100%;height:clamp(145px,29dvh,270px);min-width:0;
  overflow:hidden;border-radius:14px;background:#08070a;
}
.duel-choice img,.duel-choice .duel-emoji{
  display:block;width:100%;height:100%;min-height:0;max-height:none;
  object-fit:contain;background:#08070a;border-radius:14px;
}
.duel-choice .duel-emoji{display:grid;place-items:center;font-size:clamp(50px,12vw,95px)}
.duel-choice strong{grid-column:2;grid-row:1;align-self:end;min-height:0;font-size:clamp(13px,3.8vw,19px);text-align:center}
.duel-choice .duel-select{grid-column:2;grid-row:2;align-self:start;font-size:11px;white-space:normal}
.duel-vs{left:50%;top:50%;font-size:13px}
.duel-intro{margin:0}
.duel-swipe-guide{width:min(100%,620px);display:flex;justify-content:center;gap:12px;flex-wrap:wrap;font-size:11px;color:#d8c9e8;text-align:center}
.duel-swipe-guide strong{color:#fff}
.duel-dock-icon{display:block;transform-origin:center;will-change:transform,opacity}
.duel-dock-icon.duel-icon-pop{animation:duelDockEmojiIn .54s cubic-bezier(.2,1.3,.28,1) both}
@keyframes duelDockEmojiIn{0%{opacity:.25;transform:translateY(9px) scale(.65) rotate(-17deg)}65%{opacity:1;transform:translateY(-3px) scale(1.15) rotate(8deg)}100%{opacity:1;transform:translateY(0) scale(1) rotate(0)}}
@media(max-width:480px){
  .duel-arena{gap:8px}
  .duel-choice{grid-template-columns:minmax(0,1fr) minmax(96px,31%);gap:7px;padding:6px}
  .duel-choice .duel-media{height:clamp(135px,28dvh,225px)}
  .duel-choice img,.duel-choice .duel-emoji{height:100%;min-height:0}
  .duel-choice strong{min-height:0}
  .duel-vs{left:50%;top:50%}
}
@media(prefers-reduced-motion:reduce){.duel-dock-icon.duel-icon-pop{animation:none!important}}
html[data-theme="light"] .duel-swipe-guide{color:#685478}
html[data-theme="light"] .duel-swipe-guide strong{color:#33213e}
