/* Vouchers: the admin tab (.vca-*, parchment panel) and the player's "Kod" tab in the shop (.rvv-*). */

.vca, .rvv { color-scheme: light; } /* the page sets color-scheme: dark, which turns native radios and date pickers black on parchment */

/* ---- admin ---- */
.vca-form { margin-top: 22px; }
.vca-rows { display: grid; gap: 8px; }
.vca-row { display: grid; grid-template-columns: 28px minmax(150px, 1fr) minmax(0, 2fr) 38px; gap: 8px; align-items: center; padding: 8px 10px; background: #fff; border: 1px solid #cfbc96; }
.vca-row > b { text-align: center; color: #927037; }
.vca-row select, .vca-row input { width: 100%; min-width: 0; min-height: 38px; padding: 7px 8px; border: 1px solid #b79f72; background: #fff; font: inherit; box-sizing: border-box; }
.vca-row-value { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(90px, 1fr); gap: 8px; align-items: center; }
.vca-row-value label { display: grid; gap: 3px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #6a583a; }
.vca-row-value .vca-wide { grid-column: 1 / -1; }
.vca-icon { width: 36px; height: 36px; border: 1px solid #cfbc96; background: #fffaf0; color: #ab3a32; font-size: 20px; line-height: 1; cursor: pointer; }
.vca-icon:disabled { opacity: .35; cursor: not-allowed; }
.vca-add, .vca-quick button, .vca-filters button, .vca-actions button, .vca-copy, .vca-created button { padding: 8px 13px; border: 1px solid #b79f72; background: #fffaf0; color: #163958; font: 700 12px inherit; cursor: pointer; }
.vca-add { margin-top: 10px; }
.vca-add:disabled, .vca-actions button:disabled { opacity: .45; cursor: not-allowed; }
.vca-add:hover:not(:disabled), .vca-quick button:hover, .vca-actions button:hover:not(:disabled), .vca-copy:hover { background: #163958; color: #ffe1a0; }
.vca-choices { display: grid; gap: 8px; }
.vca-choice { display: grid !important; grid-template-columns: 20px 1fr; gap: 10px !important; align-items: start; padding: 11px 12px; background: #fff; border: 1px solid #cfbc96; cursor: pointer; font-weight: 400 !important; }
.vca-choice:has(input:checked) { border-color: #a8741a; background: linear-gradient(100deg, #fff3cf, #fffaf0 70%); box-shadow: inset 3px 0 0 #d3a53c; }
.vca-choice input[type="radio"] { appearance: auto; -webkit-appearance: radio; width: 16px !important; height: 16px; min-height: 0 !important; margin: 2px 0 0; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none; accent-color: #a8741a; }
.vca-choice b { display: block; font-size: 13px; }
.vca-choice small { display: block; margin-top: 2px; font-size: 11px; line-height: 1.5; color: #6a583a; font-weight: 400; }
.vca-inline { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-top: 12px; }
.vca-inline[hidden] { display: none; }
.vca-inline label { min-width: 180px; }
.vca-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.vca-span { grid-column: 1 / -1; }
.vca-hint { margin: 10px 0 0 !important; color: #6a583a; line-height: 1.6; }
.vca-summary { padding: 14px 16px; background: #163958; color: #fbe9bd; font-size: 13px; line-height: 1.75; border-left: 4px solid #d3a53c; }
.vca-summary b { color: #ffd77a; }
.vca-feedback { min-height: 18px; margin: 0 !important; }
.vca-created { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; margin-top: 22px; padding: 16px 18px; background: #eef7ee; border: 1px solid #7fb48a; }
.vca-created small { display: block; margin-top: 2px; color: #3f6b49; }
.vca-created ul { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.vca-created code, .vca-item code { padding: 5px 9px; background: #fff; border: 1px dashed #7fb48a; font: 700 14px ui-monospace, Menlo, Consolas, monospace; letter-spacing: .08em; }
.vca-created button { grid-column: 2; grid-row: 1; background: #163958; color: #ffe1a0; }
.vca-filters { display: flex; gap: 6px; margin: 12px 0 4px; }
.vca-filters button[aria-pressed="true"] { background: #163958; color: #ffe1a0; }
.vca-item header { align-items: center; justify-content: flex-start !important; }
.vca-item code { border-color: #cfbc96; }
.vca-chip { margin-left: auto; padding: 3px 9px; font: 800 10px inherit; text-transform: uppercase; letter-spacing: .06em; background: #d9ecd9; color: #285d33; }
.vca-item.is-used .vca-chip, .vca-item.is-expired .vca-chip { background: #eadfc4; color: #6a583a; }
.vca-item.is-disabled .vca-chip { background: #f0d3cf; color: #8a2d26; }
.vca-item.is-used, .vca-item.is-expired, .vca-item.is-disabled { opacity: .82; }
.vca-rewards { margin: 10px 0 !important; font-size: 14px !important; font-weight: 700; }
.vca-item dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 16px; margin: 0; }
.vca-item dt { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: #7c705b; }
.vca-item dd { margin: 1px 0 0; font-size: 12px; font-weight: 700; }
.vca-note { margin: 10px 0 0 !important; padding: 7px 10px; background: #eee4d0; font-size: 12px !important; border-left: 3px solid #b49150; }
.vca-actions { display: flex; gap: 8px; margin-top: 12px; }
.vca-uses { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; }
.vca-uses li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 10px; background: #fff; border: 1px solid #e0d2b3; font-size: 12px; }
@media (max-width: 640px) {
  .vca-row { grid-template-columns: 24px 1fr 36px; }
  .vca-row-value { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .vca-created { grid-template-columns: 1fr; }
  .vca-created button { grid-column: 1; grid-row: auto; }
}

/* ---- player: shop tab "Kod" ---- */
@media (min-width: 901px) { .rv-market.rv-market-v2 .rv-market-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.rvv { color: #203d52; --gold: #a88137; --legendary: #c4841a; --epic: #8a48c4; --rare: #2f6db5; --uncommon: #3c8a5a; --common: #7c705b; }
.rvv-eyebrow { font: 800 11px inherit; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.rvv-ticket { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 118px; border: 1px solid #c0a36a; border-radius: 13px; overflow: hidden; background: linear-gradient(120deg, #fff9e9, #fdf0d0 70%); box-shadow: 0 12px 30px #5f44151a; }
.rvv-main { padding: 28px 32px 22px; min-width: 0; }
.rvv-main h2 { margin: 6px 0 8px; font: 900 clamp(26px, 3.4vw, 38px)/1.05 'Fraunces', Georgia, serif; }
.rvv-main > p { max-width: 62ch; margin: 0 0 20px; font-size: 14px; line-height: 1.65; color: #4a5f6e; }
.rvv-field { display: flex; gap: 10px; margin-top: 8px; }
.rvv-field input { flex: 1; min-width: 0; padding: 14px 16px; border: 2px solid #c0a36a; border-radius: 10px; background: #fff; color: #203d52; font: 700 19px ui-monospace, Menlo, Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; transition: border-color .2s, box-shadow .2s; }
.rvv-field input::placeholder { color: #a79b83; letter-spacing: .06em; text-transform: none; font-weight: 400; font-size: 14px; }
.rvv-field input:focus { outline: none; border-color: #a8741a; box-shadow: 0 0 0 3px #d3a53c40; }
.rvv-field input[aria-invalid="true"] { border-color: #c4453b; animation: rvv-shake .4s ease; }
.rvv-submit { flex: none; padding: 0 26px; border: 0; border-radius: 10px; background: #163958; color: #ffe1a0; font: 800 14px inherit; cursor: pointer; transition: transform .15s, background .2s; }
.rvv-submit:hover:not(:disabled) { background: #1d4a73; transform: translateY(-1px); }
.rvv-submit:disabled { opacity: .6; cursor: wait; }
.rvv-error { min-height: 18px; margin: 8px 0 0; color: #b0372d; font-size: 13px; font-weight: 600; }
.rvv-form > p { margin: 0 0 12px; }
.rvv-stub { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; border-left: 2px dashed #c0a36a; background: #d3a53c1a; }
.rvv-stub::before, .rvv-stub::after { content: ""; position: absolute; left: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--rv-page-bg, #f4ead2); border: 1px solid #c0a36a; }
.rvv-stub::before { top: -13px; }
.rvv-stub::after { bottom: -13px; }
.rvv-stub img { filter: drop-shadow(0 4px 8px #0004); animation: rvv-float 3.2s ease-in-out infinite; }
.rvv-stub img:nth-child(2) { animation-delay: -1.1s; }
.rvv-stub img:nth-child(3) { animation-delay: -2.2s; }
@keyframes rvv-float { 50% { transform: translateY(-5px) rotate(-5deg); } }
@keyframes rvv-shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

.rvv-reward { position: relative; overflow: hidden; margin: 22px 0 6px; padding: 26px 24px; text-align: center; border-radius: 13px; border: 1px solid #d3a53c; background: radial-gradient(circle at 50% 0, #ffe9a8, #fff9e9 68%); animation: rvv-pop .55s cubic-bezier(.2, 1.4, .4, 1) both; }
.rvv-reward h2 { margin: 6px 0 18px; font: 900 28px 'Fraunces', Georgia, serif; }
@keyframes rvv-pop { from { opacity: 0; transform: scale(.88) translateY(12px); } }
.rvv-burst { position: absolute; left: 50%; top: 40%; pointer-events: none; }
.rvv-burst i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #d3a53c; box-shadow: 0 0 10px #d3a53c; opacity: 0; animation: rvv-burst 1s .2s ease-out both; --a: calc(var(--i) * 30deg); }
.rvv-burst i:nth-child(even) { background: #8a48c4; box-shadow: 0 0 10px #8a48c4; }
@keyframes rvv-burst { 0% { opacity: 1; transform: rotate(var(--a)) translateX(0) scale(1); } 100% { opacity: 0; transform: rotate(var(--a)) translateX(190px) scale(.3); } }
.rvv-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; position: relative; }
.rvv-tile { display: grid; justify-items: center; gap: 4px; padding: 14px 18px; border-radius: 12px; background: #fffdf5; border: 1px solid #e0cd9f; animation: rvv-tile .6s calc(.15s + var(--d) * .13s) cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes rvv-tile { from { opacity: 0; transform: translateY(24px) scale(.7); } }
.rvv-coin { min-width: 124px; }
.rvv-coin img { filter: drop-shadow(0 0 12px #d3a53c90); animation: rvv-spin .9s calc(.2s + var(--d) * .13s) ease-out both; }
.rvv-prisms img { filter: drop-shadow(0 0 12px #9b7bff); }
@keyframes rvv-spin { from { transform: rotateY(540deg) scale(.4); } }
.rvv-coin strong { font: 900 26px 'Fraunces', Georgia, serif; color: var(--gold); }
.rvv-prisms strong, .rvv-crystals strong { color: #6b4fc7; }
.rvv-coin span { font-size: 11px; color: #6a7a86; }
.rvv-wide { flex: 1 1 100%; max-width: 760px; padding: 18px 20px; }
.rvv-wide strong { font: 900 21px 'Fraunces', Georgia, serif; }
.rvv-wide > span { font-size: 13px; color: #4a5f6e; line-height: 1.5; }
.rvv-wide .rvv-kind { font: 800 10px inherit; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.rvv-wide b.rvv-legendary { color: var(--legendary); } .rvv-wide b.rvv-epic { color: var(--epic); } .rvv-wide b.rvv-rare { color: var(--rare); }
.rvv-vip { background: linear-gradient(100deg, #fff3cf, #fffdf5); border-color: #d3a53c; }
.rvv-muted { opacity: .75; }
.rvv-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }
.rvv-card { position: relative; display: block; }
.rvv-card i { position: absolute; top: -6px; right: -4px; padding: 2px 6px; border-radius: 6px; background: #c4453b; color: #fff; font: 800 9px inherit; letter-spacing: .06em; font-style: normal; }
.rvv-card.rvv-legendary { filter: drop-shadow(0 0 10px #f0b43c); } .rvv-card.rvv-epic { filter: drop-shadow(0 0 8px #b57ae8); }
.rvv-chip { padding: 5px 10px; border-radius: 99px; background: #fff; border: 1px solid currentColor; font-size: 12px; font-weight: 700; }
.rvv-items { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13px; font-weight: 700; }
.rvv-items li.rvv-legendary, .rvv-chip.rvv-legendary { color: var(--legendary); } .rvv-items li.rvv-epic, .rvv-chip.rvv-epic { color: var(--epic); } .rvv-items li.rvv-rare, .rvv-chip.rvv-rare { color: var(--rare); }
.rvv-link { display: inline-block; margin-top: 18px; color: #163958; font-weight: 800; font-size: 13px; }
.rvv-section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 28px 0 10px; }
.rvv-section-title h3 { margin: 0; font: 900 20px 'Fraunces', Georgia, serif; }
.rvv-section-title span, .rvv-note { color: #6a7a86; font-size: 12px; line-height: 1.6; }
.rvv-history { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rvv-history li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; align-items: center; gap: 14px; padding: 11px 14px; border-radius: 10px; background: #fffdf5; border: 1px solid #e0cd9f; }
.rvv-history code { overflow: hidden; text-overflow: ellipsis; font: 700 13px ui-monospace, Menlo, Consolas, monospace; letter-spacing: .08em; }
.rvv-history span { font-size: 13px; font-weight: 700; color: var(--gold); }
.rvv-history time { font-size: 11px; color: #6a7a86; }
.rvv-retry { background: none; border: 0; padding: 0; color: #163958; text-decoration: underline; cursor: pointer; font: inherit; }
@media (max-width: 720px) {
  .rvv-ticket { grid-template-columns: 1fr; }
  .rvv-stub { display: none; }
  .rvv-main { padding: 22px 18px 16px; }
  .rvv-field { flex-direction: column; }
  .rvv-submit { padding: 14px; }
  .rvv-history li { grid-template-columns: 1fr auto; }
  .rvv-history span { grid-column: 1 / -1; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .rvv-stub img, .rvv-reward, .rvv-tile, .rvv-coin img, .rvv-burst i, .rvv-field input[aria-invalid="true"] { animation: none; }
}
