/* ==================== STAT MATCH ==================== */
.sm-wrap { max-width: 720px; margin: 0 auto; }
.sm-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 10px; }
.sm-dots { display: flex; gap: 5px; }
.sm-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }
.sm-dots i.now { background: var(--text); }
.sm-dots i.ok { background: var(--good); }
.sm-dots i.no { background: var(--bad); }
.sm-players { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; }
.sm-player { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px;
  padding: 14px 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.sm-player.left { border-color: rgba(57, 135, 229, .6); box-shadow: 0 0 0 1px rgba(57, 135, 229, .35) inset; }
.sm-player img { width: 100%; max-width: 160px; aspect-ratio: 220 / 160; object-fit: cover; }
.sm-player b { font-size: 1rem; line-height: 1.2; overflow-wrap: anywhere; }
.sm-player span { color: var(--muted); font-size: .78rem; }
.sm-target { position: absolute; top: 8px; left: 8px; font-style: normal; font-size: .62rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: #fff; background: var(--accent); padding: 2px 7px; border-radius: 999px; }
.sm-vs { font-weight: 900; color: var(--dim); font-size: .9rem; }
.sm-lines { display: grid; gap: 10px; margin-top: 14px; }
.sm-line { display: block; width: 100%; text-align: left; font: inherit; color: var(--text); cursor: pointer;
  background: var(--surface); border: 2px solid var(--line-strong); border-radius: var(--radius); padding: 10px 12px; transition: border-color .15s, transform .1s; }
.sm-line:not(:disabled):hover { border-color: var(--accent); }
.sm-line:not(:disabled):active { transform: scale(.99); }
.sm-line:disabled { cursor: default; }
.sm-line-tag { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.sm-line.is-left .sm-line-tag { color: #8DBBF2; }
.sm-line.is-right-pick { border-color: var(--good); background: var(--good-soft); }
.sm-line.is-wrong-pick { border-color: var(--bad); background: var(--bad-soft); }
.sm-stats { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
.sm-stats span { display: flex; flex-direction: column; align-items: center; }
.sm-stats b { font-size: 1.02rem; font-variant-numeric: tabular-nums; }
.sm-stats i { font-style: normal; font-size: .62rem; font-weight: 700; color: var(--dim); letter-spacing: .04em; }
.sm-verdict { text-align: center; font-weight: 800; font-size: 1.05rem; }
.sm-result { text-align: center; }
.sm-result h2 { font-size: 2.4rem; margin: 4px 0; }
.sm-grid { font-size: 1.4rem; letter-spacing: 2px; margin-bottom: 12px; }
@media (max-width: 640px) {
  .sm-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 8px; }
  .sm-player { padding: 12px 6px 10px; }
  .sm-player b { font-size: .9rem; }
  .sm-vs { font-size: .75rem; }
}

/* ==================== TIER LIST ==================== */
.tl-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.tl-title { flex: 1 1 260px; font-weight: 700; }
.tl-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tl-board { display: grid; gap: 6px; }
.tl-row { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; min-height: 76px; }
.tl-label { flex: none; width: 58px; display: grid; place-items: center; font-weight: 900; font-size: 1.6rem; color: #0B0F17; cursor: pointer; }
.tl-drop { flex: 1; display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; align-content: flex-start; min-width: 0; cursor: pointer; }
.tl-empty { color: var(--dim); font-size: .82rem; align-self: center; padding: 0 6px; }
.tl-holding .tl-drop, .tl-holding #tl-pool { outline: 1px dashed rgba(57, 135, 229, .5); outline-offset: -3px; }
.tl-chip { display: flex; flex-direction: column; align-items: center; width: 74px; padding: 4px 2px 5px; border-radius: 10px;
  background: var(--surface-2); border: 2px solid transparent; color: var(--text); font: inherit; cursor: grab; touch-action: manipulation; }
.tl-chip img { width: 64px; height: 47px; object-fit: cover; pointer-events: none; }
.tl-chip span { font-size: .7rem; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; }
.tl-chip.is-sel { border-color: var(--accent); background: var(--accent-soft); }
.tl-pool-card { margin-top: 14px; }
.tl-pool-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
.tl-pool-head .input { flex: 1 1 180px; }
.tl-pool { display: flex; flex-wrap: wrap; gap: 6px; min-height: 60px; }
@media (max-width: 640px) {
  .tl-label { width: 42px; font-size: 1.2rem; }
  .tl-chip { width: 62px; }
  .tl-chip img { width: 54px; height: 40px; }
}

.sm-choose { text-align: center; }
.sm-choose-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sm-choose-row .btn { flex-direction: column; min-height: 76px; gap: 2px; }
.sm-choose-row .btn span { font-size: .8rem; font-weight: 600; opacity: .85; }
.sm-share-mini { margin-left: auto; }
.sm-top .sm-dots { flex: none; }
.sm-next-row { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; }
@media (max-width: 640px) { .sm-top { flex-wrap: wrap; } .sm-top .sm-dots { width: 100%; justify-content: center; order: 3; } }

/* ==================== STARTING FIVE ==================== */
.sf-wrap { max-width: 860px; margin: 0 auto; }
.sf-head { text-align: center; margin-bottom: 12px; }
.sf-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; align-items: center; margin-bottom: 10px; }
.sf-score { display: flex; justify-content: center; align-items: center; gap: 16px; }
.sf-team { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; }
.sf-pts { font-size: 1.8rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.sf-dash { color: var(--dim); font-size: 1.4rem; }
.sf-search { margin-bottom: 12px; }
.sf-status { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-top: 8px; }
.sf-lives { display: inline-flex; align-items: center; gap: 4px; }
.sf-lives i { width: 9px; height: 9px; border-radius: 50%; background: var(--good); }
.sf-lives i.used { background: var(--bad); }
.sf-misses { margin-top: 6px; }
#sf-result { margin-top: 14px; }
@media (max-width: 640px) { .sf-pts { font-size: 1.5rem; } }

/* Kort */
.sf-court { position: relative; width: 100%; aspect-ratio: 94 / 50; border-radius: 14px; overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .06); }
.sf-court.is-vertical { aspect-ratio: 50 / 94; max-width: 440px; margin: 0 auto; }
.sf-court-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sf-court-svg .floor { fill: #B9773F; }
.sf-court-svg .paint { fill: rgba(122, 32, 32, .55); stroke: rgba(255, 255, 255, .85); stroke-width: .22; }
.sf-court-svg .ln { fill: none; stroke: rgba(255, 255, 255, .85); stroke-width: .22; }
.sf-court-svg .rim { fill: none; stroke: #FF7A1A; stroke-width: .3; }
.sf-court::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .05) 0 2px, transparent 2px 46px), linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(0, 0, 0, .18)); }
.sf-court.is-vertical::before { background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .05) 0 2px, transparent 2px 46px), linear-gradient(90deg, rgba(255, 255, 255, .08), rgba(0, 0, 0, .18)); }
.sf-court-svg { z-index: 1; }
.sf-mark { position: absolute; z-index: 1; width: 22%; max-width: 150px; transform: translate(-50%, -50%); opacity: .14; pointer-events: none; filter: grayscale(.2); }
.sf-court.is-vertical .sf-mark { width: 36%; }
.sf-half-tag { position: absolute; z-index: 2; font-size: .7rem; font-weight: 900; letter-spacing: .08em; color: rgba(255, 255, 255, .9);
  background: rgba(0, 0, 0, .35); padding: 2px 7px; border-radius: 999px; }

.sf-tok { position: absolute; z-index: 3; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center;
  width: 92px; padding: 0; border: 0; background: none; font: inherit; color: #fff; cursor: pointer; }
.sf-face { position: relative; width: 66px; height: 66px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: #1A2130; border: 3px solid var(--team, #fff); box-shadow: 0 6px 14px rgba(0, 0, 0, .45); }
.sf-face img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transform: scale(1.35) translateY(8%); }
.sf-face em { font-style: normal; font-weight: 900; font-size: 1.15rem; color: rgba(255, 255, 255, .85); }
.sf-num { position: absolute; right: -2px; bottom: -2px; font-style: normal; font-size: .64rem; font-weight: 900; min-width: 22px; height: 22px;
  display: grid; place-items: center; border-radius: 50%; background: var(--team, #333); color: #fff; border: 2px solid #0B0F17; }
.sf-tok.empty .sf-face { background: rgba(11, 15, 23, .72); border-style: dashed; border-color: rgba(255, 255, 255, .7); animation: sf-pulse 2.4s ease-in-out infinite; }
.sf-tok.found .sf-face { border-color: #34D399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .35), 0 6px 14px rgba(0, 0, 0, .45); }
.sf-tok.missed .sf-face { border-color: #EF6464; filter: grayscale(.6); }
.sf-tok.just .sf-face { animation: sf-pop .6s cubic-bezier(.2, 1.6, .4, 1); }
.sf-name { margin-top: 4px; max-width: 100%; padding: 1px 7px; border-radius: 6px; background: rgba(11, 15, 23, .82);
  font-size: .76rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-tok.empty .sf-name { color: rgba(255, 255, 255, .7); letter-spacing: .1em; }
.sf-line { margin-top: 2px; font-size: .64rem; font-weight: 700; color: #0B0F17; background: rgba(255, 255, 255, .88); padding: 0 5px; border-radius: 5px; font-variant-numeric: tabular-nums; }
@keyframes sf-pulse { 50% { box-shadow: 0 0 0 6px rgba(255, 255, 255, .12), 0 6px 14px rgba(0, 0, 0, .45); } }
@keyframes sf-pop { 0% { transform: scale(.4); } 100% { transform: scale(1); } }
@media (max-width: 900px) and (min-width: 641px) { .sf-tok { width: 78px; } .sf-face { width: 54px; height: 54px; } }
@media (max-width: 640px) {
  .sf-tok { width: 76px; }
  .sf-face { width: 52px; height: 52px; }
  .sf-name { font-size: .7rem; }
}

/* ==================== 82-0 ==================== */
.ez-wrap { max-width: 1040px; margin: 0 auto; }
.ez-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.ez-pips { display: flex; gap: 4px; }
.ez-pips i { font-style: normal; font-size: .62rem; font-weight: 800; padding: 2px 6px; border-radius: 6px; background: var(--surface-3); color: var(--dim); }
.ez-pips i.on { background: var(--good-soft); color: var(--good); }
.ez-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.ez-court { position: relative; width: 100%; aspect-ratio: 100 / 70; border-radius: 14px; overflow: hidden; box-shadow: 0 12px 30px rgba(0, 0, 0, .45); }
.ez-court-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ez-court-svg .floor { fill: #B9773F; }
.ez-court-svg .paint { fill: rgba(122, 32, 32, .55); stroke: rgba(255, 255, 255, .85); stroke-width: .3; }
.ez-court-svg .ln { fill: none; stroke: rgba(255, 255, 255, .85); stroke-width: .3; }
.ez-court-svg .rim { fill: none; stroke: #FF7A1A; stroke-width: .4; }
.ez-court::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .05) 0 2px, transparent 2px 40px), linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(0, 0, 0, .18)); }
.ez-slot { position: absolute; z-index: 2; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; width: 96px;
  border: 0; padding: 0; background: none; color: #fff; font: inherit; cursor: default; }
.ez-face { position: relative; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; overflow: visible;
  background: rgba(11, 15, 23, .72); border: 3px dashed rgba(255, 255, 255, .7); box-shadow: 0 6px 14px rgba(0, 0, 0, .45); }
.ez-face img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center 20%; }
.ez-face em { font-style: normal; font-weight: 900; font-size: 1.05rem; }
.ez-slot.filled .ez-face { border: 3px solid #fff; background: #1A2130; animation: sf-pop .5s cubic-bezier(.2, 1.6, .4, 1); }
.ez-slot.target { cursor: pointer; }
.ez-slot.target .ez-face { border-color: #34D399; box-shadow: 0 0 0 5px rgba(52, 211, 153, .35); animation: sf-pulse 1.4s infinite; }
.ez-slot.target.off .ez-face { border-color: #F5B544; box-shadow: 0 0 0 5px rgba(245, 181, 68, .3); }
.ez-tag { margin-top: 4px; padding: 1px 7px; border-radius: 6px; background: rgba(11, 15, 23, .82); font-size: .74rem; font-weight: 800; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.ez-sub { margin-top: 2px; font-size: .62rem; font-weight: 700; color: #0B0F17; background: rgba(255, 255, 255, .88); padding: 0 5px; border-radius: 5px; }
.ez-ovr { font-style: normal; font-weight: 900; font-size: .78rem; min-width: 30px; height: 24px; padding: 0 5px; display: inline-grid; place-items: center;
  border-radius: 7px; background: var(--surface-3); color: var(--text); font-variant-numeric: tabular-nums; }
.ez-face .ez-ovr { position: absolute; right: -10px; bottom: -6px; border: 2px solid #0B0F17; }
.ez-ovr.good { background: #2F6FB6; color: #fff; }
.ez-ovr.great { background: #1E9E5A; color: #fff; }
.ez-ovr.elite { background: linear-gradient(135deg, #F2C94C, #E59A1A); color: #1B1300; }
.ez-team { display: flex; align-items: center; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.ez-team img { flex: none; }
.ez-team > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ez-team b { font-size: 1.12rem; }
.ez-team.spinning b { color: var(--muted); filter: blur(.6px); }
.ez-nologo { width: 54px; height: 54px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--surface-3); font-weight: 900; font-size: .8rem; }
.ez-roster { display: grid; gap: 6px; max-height: 520px; overflow-y: auto; }
.ez-p { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border-radius: 10px; border: 2px solid transparent;
  background: var(--surface-2); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.ez-p:hover:not(:disabled) { border-color: var(--line-strong); }
.ez-p.is-sel { border-color: var(--accent); background: var(--accent-soft); }
.ez-p:disabled { opacity: .4; cursor: not-allowed; }
.ez-p img { width: 46px; height: 34px; object-fit: cover; flex: none; }
.ez-pn { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ez-pn b { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ez-pn small { font-size: .72rem; color: var(--muted); }
.ez-result { text-align: center; }
.ez-record { font-size: 3.4rem; font-weight: 900; letter-spacing: -1px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.ez-verdict { font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; margin-bottom: 8px; }
.ez-verdict.perfect { color: var(--gold); font-size: 1rem; }
@media (max-width: 900px) {
  .ez-grid { grid-template-columns: 1fr; }
  .ez-roster { max-height: none; }
}
@media (max-width: 640px) {
  .ez-slot { width: 78px; }
  .ez-face { width: 50px; height: 50px; }
  .ez-tag { font-size: .68rem; }
}

/* Paylasim gorseli onizlemesi */
.share-preview { text-align: center; }
.share-preview img { width: 100%; max-width: 380px; border-radius: 14px; box-shadow: var(--shadow); }
.share-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 12px 0 6px; }

/* 82-0 cark (slot makinesi) */
.ez-team { position: relative; min-height: 70px; border-radius: 12px; margin: -6px -6px 0; padding: 6px 6px 8px; }
.ez-tname { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ez-team > .ez-tname b, .ez-reel-item b { font-size: 1.12rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ez-reel { position: relative; flex: 1; height: 62px; overflow: hidden; border-radius: 12px;
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(255,255,255,.03) 50%, rgba(0,0,0,.35));
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent); }
.ez-strip { will-change: transform; }
.ez-reel-item { height: 62px; display: flex; align-items: center; gap: 12px; padding: 0 10px; }
.ez-reel-item img { width: 46px; height: 46px; flex: none; }
.ez-team.landed { animation: ez-land .9s ease-out; }
.ez-team.landed .ez-tlogo { animation: ez-logo .55s cubic-bezier(.2,1.6,.4,1); }
@keyframes ez-land { 0% { background: radial-gradient(120% 140% at 15% 50%, rgba(242,201,76,.28), transparent 60%); } 100% { background: transparent; } }
@keyframes ez-logo { 0% { transform: scale(.6); } 100% { transform: scale(1); } }

.ez-skel { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; background: var(--surface-2); }
.ez-skel i { width: 46px; height: 34px; border-radius: 6px; flex: none; }
.ez-skel span { flex: 1; display: grid; gap: 6px; }
.ez-skel b { height: 12px; width: 60%; border-radius: 6px; }
.ez-skel small { height: 9px; width: 40%; border-radius: 5px; }
.ez-skel em { width: 30px; height: 24px; border-radius: 7px; }
.ez-skel i, .ez-skel b, .ez-skel small, .ez-skel em {
  background: linear-gradient(90deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,.13) 40%, rgba(255,255,255,.05) 80%); background-size: 300% 100%;
  animation: ez-shimmer 1.1s linear infinite; animation-delay: calc(var(--i) * 60ms); }
@keyframes ez-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.ez-roster.is-revealing .ez-p { animation: ez-in .4s cubic-bezier(.2,.9,.3,1) both; animation-delay: calc(var(--i) * 55ms); }
@keyframes ez-in { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ez-strip { transition: none !important; } .ez-skel * { animation: none !important; } }

/* Paylasim gorseli onizlemesi */
.share-preview { text-align: center; }
.share-preview img { width: 100%; max-width: 380px; border-radius: 14px; box-shadow: var(--shadow); }
.share-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 12px 0 6px; }

/* 82-0 cark animasyonu */
.ez-roster.is-spinning .ez-p { filter: blur(2.5px); opacity: .55; pointer-events: none; animation: ez-roll .12s linear infinite; }
.ez-roster.is-spinning { overflow: hidden; }
.ez-team.spinning img { animation: ez-roll .12s linear infinite; }
@keyframes ez-roll { 0% { transform: translateY(-6px); } 100% { transform: translateY(6px); } }
.ez-roster.is-revealing .ez-p { animation: ez-in .35s ease-out both; animation-delay: calc(var(--i) * 45ms); }
@keyframes ez-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ez-p.ez-ghost { cursor: default; }

/* 82-0 v2: mod secimi, yeniden cevirmeler, kolay mod, sonuc listesi */
.ez-setup { max-width: 560px; margin: 0 auto; }
.ez-setup .seg-block button { min-height: 44px; }
.ez-setup-go { display: grid; gap: 8px; margin-top: 16px; }
.ez-rerolls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.ez-yr { font-size: .7rem; font-weight: 800; color: var(--accent); background: var(--accent-soft); padding: 1px 5px; border-radius: 5px; margin-left: 4px; }
.ez-slot.is-sel .ez-face { border-color: var(--accent); box-shadow: 0 0 0 5px rgba(57, 135, 229, .4); }
.ez-slot.filled:not(:disabled) { cursor: pointer; }
.ez-reveal { display: grid; gap: 6px; margin: 12px 0; text-align: left; }
.ez-reveal div { display: grid; grid-template-columns: 34px 1fr auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center;
  padding: 6px 10px; border-radius: 10px; background: var(--surface-2); }
.ez-reveal span { grid-row: 1 / 3; font-size: .72rem; font-weight: 900; color: var(--dim); }
.ez-reveal b { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ez-reveal small { grid-column: 2; font-size: .72rem; color: var(--muted); }
.ez-reveal .ez-ovr { grid-column: 3; grid-row: 1 / 3; }
.ez-allin { display: grid; gap: 4px; padding: 6px 2px; }
.ez-allin span { color: var(--muted); font-size: .86rem; }
.ez-sub { white-space: nowrap; }
.ez-sub.off { background: #EF6464; color: #fff; }

/* ==================== PYRAMID ==================== */
.py-wrap { max-width: 760px; margin: 0 auto; }
.py-cat { text-align: center; margin: 4px 0 14px; }
.py-cat span { display: block; font-size: .72rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.py-cat b { font-size: 1.5rem; font-weight: 900; }
.py-pyr { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.py-row { display: flex; gap: 8px; justify-content: center; }
.py-cell { position: relative; width: 132px; height: 112px; border-radius: 14px; border: 2px dashed var(--line-strong); background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--text); cursor: pointer; padding: 6px 4px; font: inherit; transition: border-color .15s, transform .1s; }
.py-cell:hover:not([disabled]) { border-color: var(--accent); }
.py-cell.filled { border-style: solid; border-color: var(--line); background: var(--surface-2); }
.py-cell.sel { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); transform: translateY(-2px); }
.py-cell img { width: 64px; height: 47px; object-fit: cover; border-radius: 8px; }
.py-cell b { font-size: .82rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.py-cell small { font-size: .68rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.py-cell em { font-style: normal; font-size: .7rem; color: var(--dim); text-transform: uppercase; letter-spacing: .05em; }
.py-rank { position: absolute; top: 5px; left: 7px; font-size: .68rem; font-weight: 900; color: var(--dim); }
.py-cell.hit { border: 2px solid var(--good); background: color-mix(in srgb, var(--good) 14%, var(--surface-2)); }
.py-cell.near { border: 2px solid #F2C94C; background: color-mix(in srgb, #F2C94C 12%, var(--surface-2)); }
.py-cell.miss { border: 2px solid var(--line); opacity: .8; }
.py-cell[disabled] { cursor: default; }
.py-pool { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; margin: 18px 0 10px; min-height: 40px; padding: 8px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.py-chip { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); cursor: pointer; text-align: left; font: inherit; }
.py-chip:hover { border-color: var(--accent); }
.py-chip.sel { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.py-chip img { width: 46px; height: 34px; object-fit: cover; border-radius: 7px; flex: none; }
.py-chip span { display: flex; flex-direction: column; min-width: 0; }
.py-chip b { font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.py-chip small { font-size: .7rem; color: var(--muted); }
.py-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.py-score { text-align: center; margin: 4px 0 6px; }
.py-score b { display: block; font-size: 2.6rem; font-weight: 900; }
.py-score span { color: var(--muted); font-weight: 700; }
.py-h3 { text-align: center; font-size: .95rem; margin: 16px 0 8px; }
.py-legend { display: flex; gap: 12px; justify-content: center; margin-top: 8px; }
.py-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.py-legend .hit::before { background: var(--good); }
.py-legend .near::before { background: #F2C94C; }
.py-legend .miss::before { background: var(--line-strong); }
@media (max-width: 640px) {
  .py-row { gap: 5px; }
  .py-pyr { gap: 5px; }
  .py-cell { width: 82px; height: 94px; border-radius: 11px; padding: 4px 2px; }
  .py-cell img { width: 48px; height: 35px; }
  .py-cell b { font-size: .7rem; }
  .py-cell small { font-size: .6rem; }
  .py-pool { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 6px; }
  .py-chip { min-width: 0; }
  .py-chip img { width: 38px; height: 28px; }
  .py-chip b { font-size: .78rem; }
}
