/* The workshop shares the paper, ink, cobalt and warm metal of Rilvaris. */
.rv-decks { min-height: 100dvh; --surface: #fff9ed; --surface-2: #f0e6cf; --text: #142b43; --muted: #706a5e; --line: #d5c5a0; --accent: #275f9b; --accent-ink: #fff8e8; }
.dh-shell.dh-premium.rv-decks { overflow: clip; }
.rv-decks > .dh-nav { border-bottom: 1px solid #d5c5a0; padding-block: 9px; }
.rd-hero { max-width: 1180px; margin: auto; padding: 44px 34px 34px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.rd-eyebrow { color: #927037; text-transform: uppercase; letter-spacing: .12em; font-size: 10px; font-weight: 800; }
.rv-decks .rd-hero h1 { font: 800 clamp(38px,4.5vw,64px)/1.02 'Fraunces',Georgia,serif; letter-spacing: -.045em; margin: 14px 0; }
.rd-hero h1 em { color: #275e96; font-style: normal; }
.rd-hero p { font-size: 13px; line-height: 1.6; max-width: 470px; color: #756f62; }
.rd-hero-rules { display: flex; gap: 23px; margin-top: 23px; font-size: 11px; color: #796e59; }
.rd-hero-rules span { display: flex; align-items: center; gap: 7px; }
.rd-hero-rules b { font: 800 27px 'Fraunces',Georgia,serif; color: #19334e; }
.rd-hero-art { position: relative; width: 290px; height: 240px; flex: none; display: grid; place-items: center; isolation: isolate; }
.rd-hero-art::before { content: ''; position: absolute; inset: -15px; z-index: -2; background: radial-gradient(ellipse,#e1b74b3a,transparent 70%); }
.rd-hero-art img { position: absolute; inset: 0; min-height: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(9px 14px 10px #12294328); animation: rd-folio 8s ease-in-out infinite; }
.rd-hero-art i { position: absolute; width: 175px; height: 175px; border: 1px solid #bca26c70; border-radius: 50%; z-index: -1; }
.rd-hero-art i:last-child { width: 215px; height: 215px; border-style: dashed; rotate: -18deg; }
.rd-workshop { max-width: 1180px; margin: 0 auto; padding: 0 34px 30px; }
.rv-decks .dk-body { padding: 0; overflow: visible; display: block; }
.rd-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 19px; }
.rv-decks h2 { font: 700 clamp(25px,2.5vw,34px)/1.1 'Fraunces',Georgia,serif; margin: 7px 0 0; letter-spacing: -.035em; }
.rv-decks h2 small { font: 700 13px 'DM Sans',sans-serif; color: #8b795a; margin-left: 8px; }
.rv-decks .btn { min-height: 42px; padding: 10px 18px; border-radius: 3px; border: 1px solid #9a8865; background: #fff9eb; color: #19334e; font: 700 12px 'DM Sans',sans-serif; box-shadow: 0 3px #142b4330; transition: translate .15s; }
.rv-decks .btn-primary { background: linear-gradient(160deg,#ffe5a1,#f4c24b); border: 2px solid #20374c; color: #182c3e; box-shadow: 0 3px #20374c; clip-path: polygon(7px 0,100% 0,100% calc(100% - 7px),calc(100% - 7px) 100%,0 100%,0 7px); }
.rv-decks .btn:hover:not(:disabled) { translate: 0 -2px; }
.rv-decks .btn:disabled { opacity: .45; cursor: not-allowed; }
.rd-empty { display: flex; align-items: center; justify-content: center; gap: 45px; padding: 35px 42px; background: #122d4e url('/duel/hub-comic-v1/paint-blue.webp') center/cover; color: #fff5db; border: 2px solid #102b46; box-shadow: 0 5px #122d4e20; position: relative; overflow: hidden; }
.rd-empty::after { content: ''; position: absolute; width: 290px; height: 290px; border: 1px solid #f9d98933; border-radius: 50%; right: -100px; top: -160px; pointer-events: none; }
.rd-empty .rd-eyebrow { color: #e0c48d; }
.rd-empty h3 { font: 700 clamp(24px,2.4vw,33px)/1.1 'Fraunces',Georgia,serif; max-width: 430px; margin: 12px 0; }
.rd-empty p { color: #d3dfeb; font-size: 13px; line-height: 1.6; max-width: 440px; }
.rd-empty .btn { margin-top: 10px; }
.rd-empty-cards { flex: none; display: flex; align-items: center; padding: 12px; }
.rd-empty-cards .dl-card { margin-left: -32px; pointer-events: none; box-shadow: 0 7px 14px #0007; }
.rd-empty-cards .dl-card:first-child { margin-left: 0; rotate: -13deg; translate: 0 9px; }
.rd-empty-cards .dl-card:last-child { rotate: 13deg; translate: 0 9px; }
.rd-factions { margin-top: 36px; }
.rd-faction-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; }
.rd-faction { position: relative; display: flex; align-items: flex-end; min-height: 210px; overflow: hidden; padding: 20px 15px; text-align: left; color: #fff6e1; background: linear-gradient(135deg,var(--fc2,#1e3d59),#0f2036); border: 1px solid #9c8967; border-bottom: 4px solid var(--fc,#d2b46e); transition: translate .2s,box-shadow .2s; }
.rd-faction:hover:not(:disabled) { translate: 0 -4px; box-shadow: 0 9px 20px #182c3b25; }
.rd-faction:disabled { opacity: .5; cursor: not-allowed; }
.rd-faction-portrait { position: absolute; inset: 0; opacity: .8; }
.rv-decks .rd-faction-portrait .dk-hero { display: block; width: 100%; height: 100%; }
.rd-faction-portrait .dk-hero > img { border-radius: 0; object-position: center 30%; box-shadow: none; }
.rd-faction::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg,#0a1d34 3%,#0b233cbb 38%,transparent 80%); pointer-events: none; }
.rd-faction > span:last-child { position: relative; z-index: 1; display: grid; gap: 5px; width: 100%; }
.rd-emblem { object-fit: contain; }
.rd-faction .rd-emblem { position: absolute; right: 0; bottom: 23px; width: 46px; height: 46px; filter: drop-shadow(0 3px 3px #0006); }
.rd-faction small { font-size: 9px; color: #e5d5b6; max-width: calc(100% - 40px); }
.rd-faction strong { font: 700 29px 'Fraunces',Georgia,serif; }
.rd-faction b { font-size: 10px; color: #efd59a; font-weight: 600; }
.rd-rules { margin-top: 28px; border-block: 1px solid #d6c5a0; padding: 16px 0; color: #6e6557; font-size: 12px; line-height: 1.6; }
.rd-rules summary { cursor: pointer; color: #1d3854; font-weight: 700; }
.rd-rules > div { max-width: 770px; }
.rd-footer { max-width: 1112px; margin: 0 auto; padding: 19px 0 28px; display: flex; justify-content: space-between; gap: 15px; border-top: 1px solid #d6c5a0; font-size: 11px; color: #7d6b4d; }
.rd-loading { padding: 45px; text-align: center; color: #796e59; }
.rv-decks .dk-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.rv-decks .dk-row { grid-template-columns: 68px minmax(0,1fr); grid-template-areas: 'hero main' 'fan fan' 'actions actions' 'all all'; gap: 13px 18px; padding: 23px 23px 14px; border: 1px solid #c3b08a; border-bottom: 4px solid var(--fc,#987d48); border-radius: 3px; background: linear-gradient(145deg,#fffbf0 50%,color-mix(in srgb,var(--fc,#aaa) 12%,#f6efdf)); }
.rv-decks .dk-hero { width: 64px; height: 64px; }
.rv-decks .dk-hero2 .rd-emblem { width: 26px; height: 26px; }
.rv-decks .dk-row-main strong { font: 700 25px 'Fraunces',Georgia,serif; }
.rv-decks .dk-row-main small { font-size: 11px; color: #74694f; }
.rv-decks .dk-tags i { color: #46556a; border-color: #c5b68f; background: #efe5cc; font-size: 10px; }
.rv-decks .dk-fan { height: 135px; justify-content: center; margin-block: 6px; padding-right: 0; }
.rv-decks .dk-row-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.rv-decks .dk-default { grid-column: 1/-1; }
.rv-decks .dk-default[aria-pressed="true"] { border-color: #526c32; background: #e3ebd0; color: #354e24; }
.rv-decks .dk-row-actions .btn:first-child { flex: 1; background: #163754; color: #fff3d1; border-color: #163754; }
.rv-decks .dk-del { color: #8a4b3c; }
.rv-decks .dk-del.armed { background: #8d302d; color: #fff; }
.rv-decks .dk-mc i { color: #6d6a60; }
.rv-decks .dk-mc em { background: linear-gradient(#d4b36a,#315e83); }
.rv-decks .dk-all { border-top: 1px solid #d9caa6; padding-top: 8px; color: #796b53; }
.rv-decks .dk-all summary { width: auto; }
.rv-decks .dk-peek { gap: 17px 12px; }
.rv-decks .dk-msg { background: #e7efd9; color: #315331; border-left: 3px solid #5c8552; margin-bottom: 18px; }
.rv-decks .dk-bad { color: #9b3d31; }
.rv-decks .dk-fields { padding: 20px; margin: 20px 0; background: #f0e6cf; border: 1px solid #d1bd91; border-top: 3px solid #193958; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; }
.rv-decks .dk-fields label { font-size: 11px; font-weight: 700; color: #5f634f; gap: 7px; }
.rv-decks .dk-fields :is(input,select) { width: 100%; min-width: 0; background: #fffbf1; border: 1px solid #baa985; border-radius: 3px; color: #18344e; padding: 8px 10px; font: 12px 'DM Sans',sans-serif; }
.rv-decks .dk-fields input::placeholder { color: #8a826e; }
.rv-decks .dk-group h3 { color: #193958; border-color: #d1bd91; font: 700 21px 'Fraunces',Georgia,serif; padding-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.rv-decks .dk-group h3 .rd-emblem { width: 30px; height: 30px; }
.rv-decks .dk-grid { gap: 23px 12px; }
.rv-decks .dk-step button { border: 1px solid #b5a17b; border-radius: 3px; color: #244c70; background: #f1e5c8; width: 33px; height: 30px; }
.rv-decks .dk-step button:hover:not(:disabled) { color: #fff5d7; background: #244c70; }
.rv-decks .dk-step output { color: #526477; }
.rv-decks .dk-tile.on .dk-pick { box-shadow: 0 0 0 3px #467eae,0 4px 16px #467eae50; }
.rv-decks .dk-count,.rv-decks .dk-peek-n { background: #214e78; color: #fff3d5; }
.rv-decks .dk-owned { color: #756647; font-size: 10px; margin: 0; }
.rv-decks .dk-bar { margin: 15px 0 0; padding: 16px 20px; background: #112f4e; color: #fff5dc; border: 1px solid #b59857; box-shadow: 0 -5px 20px #112f4e25; bottom: 10px; border-radius: 3px; }
.rv-decks .dk-break { color: #d1d6d3; font-size: 11px; }
.rv-decks .dk-meter i { background: #29435a; }
.rv-decks .dk-meter u,.rv-decks .dk-curve em { background: #edc365; }
.rv-decks .dk-curve b { color: #c1cbd1; }
.rv-decks .dk-bar .dk-msg { margin: 0; color: #f8ddb0; background: #29435a; border-color: #edc365; }
.rv-decks:has(.rd-editing) .rd-hero { padding-block: 24px; }
.rv-decks:has(.rd-editing) .rd-hero h1 { font-size: 36px; }
.rv-decks:has(.rd-editing) .rd-hero-art { width: 170px; height: 140px; }
.rv-decks:has(.rd-editing) .rd-hero-rules { display: none; }
@keyframes rd-folio { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-6px) rotate(0); } }
@media(max-width:900px) { .rd-hero-art { width: 220px; height: 200px; } .rd-hero { gap: 15px; } .rd-faction-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .rv-decks .dk-fields { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:620px) {
  .rd-hero { padding: 30px 20px 25px; position: relative; display: block; }
  .rv-decks .rd-hero h1 { font-size: 38px; max-width: 370px; position: relative; z-index: 1; }
  .rd-hero p { max-width: 270px; }
  .rd-hero-art { width: 130px; height: 130px; position: absolute; right: -35px; bottom: 4px; opacity: .55; pointer-events: none; }
  .rd-hero-art i { width: 100px; height: 100px; } .rd-hero-art i:last-child { width: 120px; height: 120px; }
  .rd-hero-rules { gap: 17px; position: relative; z-index: 1; font-size: 9px; } .rd-hero-rules b { font-size: 23px; }
  .rd-workshop { padding: 0 16px 20px; } .rd-section-heading { flex-wrap: wrap; gap: 12px; }
  .rd-empty { padding: 22px; gap: 20px; flex-direction: column; text-align: center; }
  .rd-empty-cards { padding: 13px 0 7px; }
  .rd-empty h3 { margin: 12px auto; font-size: 27px; }
  .rd-faction { padding: 16px 12px; min-height: 200px; } .rd-faction-grid { gap: 11px; }
  .rd-faction strong { font-size: 26px; } .rd-faction small { font-size: 8px; }
  .rd-faction .rd-emblem { width: 36px; height: 36px; }
  .rd-faction b { font-size: 9px; } .rd-footer { margin-inline: 16px; flex-wrap: wrap; }
  .rv-decks .dk-list { grid-template-columns: minmax(0,1fr); }
  .rv-decks .dk-fields { padding: 14px; gap: 12px; }
  .rv-decks .dk-fields label:first-child,.rv-decks .dk-fields label:last-child { grid-column: 1/-1; }
  .rv-decks .dk-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 6px; }
  .rv-decks .dk-tile { padding: 0; min-width: 0; }
  .rv-decks .dk-bar { padding: 12px; gap: 10px; bottom: 4px; }
  .rv-decks .dk-break { flex: 1 1 120px; } .rv-decks .dk-curve { display: none; }
  .rv-decks .dk-bar .btn-primary { flex: 1; }
  .rv-decks:has(.rd-editing) .rd-hero h1 { font-size: 29px; }
  .rv-decks:has(.rd-editing) .rd-hero-art { display: none; }
}
@media(prefers-reduced-motion:reduce) { .rd-hero-art img { animation: none; } .rv-decks .btn,.rd-faction { transition: none; } }
body.rv-market-motion-paused .rd-hero-art img { animation-play-state: paused; }
.rv-decks .dk-editor-layout .dk-bar { margin-top: 18px; padding: 18px; }
.rv-decks .dk-summary-title { color: #d9bd7e; }
.rv-decks .dk-editor-layout .dk-meter i { width: 100%; }
.rv-decks .dk-editor-layout .dk-bar .dk-msg { font-size: 11px; }
@media(max-width:850px) { .rv-decks .dk-editor-layout .dk-bar { padding: 12px; } }
