/* app/styles.css */
/*! tailwindcss v4.0.9 | MIT License | https://tailwindcss.com */
@layer theme, base, components, utilities;

@layer theme {
  :root, :host {
    --default-transition-duration: .15s;
    --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);
  }
}

@layer base {
  *, :after, :before {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  ::backdrop {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  ::-webkit-file-upload-button {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  ::file-selector-button {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  html, :host {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-feature-settings: initial;
    font-variation-settings: initial;
    -webkit-tap-highlight-color: transparent;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
    line-height: 1.5;
  }

  hr {
    color: inherit;
    border-top-width: 1px;
    height: 0;
  }

  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }

  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }

  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }

  b, strong {
    font-weight: bolder;
  }

  code, kbd, samp, pre {
    font-feature-settings: initial;
    font-variation-settings: initial;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
    font-size: 1em;
  }

  small {
    font-size: 80%;
  }

  sub, sup {
    position: relative;
    vertical-align: baseline;
    font-size: 75%;
    line-height: 0;
  }

  sub {
    bottom: -.25em;
  }

  sup {
    top: -.5em;
  }

  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }

  :-moz-focusring {
    outline: auto;
  }

  progress {
    vertical-align: baseline;
  }

  summary {
    display: list-item;
  }

  ol, ul, menu {
    list-style: none;
  }

  img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
  }

  img, video {
    max-width: 100%;
    height: auto;
  }

  button, input, select, optgroup, textarea {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  ::-webkit-file-upload-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  :where(select:-webkit-any([multiple], [size])) optgroup {
    font-weight: bolder;
  }

  :where(select:-moz-any([multiple], [size])) optgroup {
    font-weight: bolder;
  }

  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }

  :where(select:-webkit-any([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }

  :where(select:-moz-any([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }

  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }

  ::-webkit-file-upload-button {
    margin-inline-end: 4px;
  }

  ::file-selector-button {
    margin-inline-end: 4px;
  }

  ::placeholder {
    opacity: 1;
  }

  @supports ( not (-webkit-appearance: -apple-pay-button)) or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: color-mix(in oklab, currentcolor 50%, transparent);
    }
  }

  textarea {
    resize: vertical;
  }

  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }

  ::-webkit-date-and-time-value {
    text-align: inherit;
    min-height: 1lh;
  }

  ::-webkit-datetime-edit {
    display: inline-flex;
  }

  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }

  ::-webkit-datetime-edit {
    padding-block-start: 0;
    padding-block-end: 0;
  }

  ::-webkit-datetime-edit-year-field {
    padding-block-start: 0;
    padding-block-end: 0;
  }

  ::-webkit-datetime-edit-month-field {
    padding-block-start: 0;
    padding-block-end: 0;
  }

  ::-webkit-datetime-edit-day-field {
    padding-block-start: 0;
    padding-block-end: 0;
  }

  ::-webkit-datetime-edit-hour-field {
    padding-block-start: 0;
    padding-block-end: 0;
  }

  ::-webkit-datetime-edit-minute-field {
    padding-block-start: 0;
    padding-block-end: 0;
  }

  ::-webkit-datetime-edit-second-field {
    padding-block-start: 0;
    padding-block-end: 0;
  }

  ::-webkit-datetime-edit-millisecond-field {
    padding-block-start: 0;
    padding-block-end: 0;
  }

  ::-webkit-datetime-edit-meridiem-field {
    padding-block-start: 0;
    padding-block-end: 0;
  }

  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }

  :-moz-ui-invalid {
    box-shadow: none;
  }

  button {
    appearance: button;
  }

  input:where([type="button"], [type="reset"], [type="submit"]) {
    appearance: button;
  }

  ::-webkit-file-upload-button {
    appearance: button;
  }

  ::file-selector-button {
    appearance: button;
  }

  ::-webkit-inner-spin-button {
    height: auto;
  }

  ::-webkit-outer-spin-button {
    height: auto;
  }

  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}

@layer utilities {
  .visible {
    visibility: visible;
  }

  .fixed {
    position: fixed;
  }

  .static {
    position: static;
  }

  .\!container {
    width: 100% !important;

    @media (width >= 40rem) {
      & {
        max-width: 40rem !important;
      }
    }

    @media (width >= 48rem) {
      & {
        max-width: 48rem !important;
      }
    }

    @media (width >= 64rem) {
      & {
        max-width: 64rem !important;
      }
    }

    @media (width >= 80rem) {
      & {
        max-width: 80rem !important;
      }
    }

    @media (width >= 96rem) {
      & {
        max-width: 96rem !important;
      }
    }
  }

  .container {
    width: 100%;

    @media (width >= 40rem) {
      & {
        max-width: 40rem;
      }
    }

    @media (width >= 48rem) {
      & {
        max-width: 48rem;
      }
    }

    @media (width >= 64rem) {
      & {
        max-width: 64rem;
      }
    }

    @media (width >= 80rem) {
      & {
        max-width: 80rem;
      }
    }

    @media (width >= 96rem) {
      & {
        max-width: 96rem;
      }
    }
  }

  .block {
    display: block;
  }

  .flex {
    display: flex;
  }

  .grid {
    display: grid;
  }

  .hidden {
    display: none;
  }

  .inline {
    display: inline;
  }

  .table {
    display: table;
  }

  .transform {
    transform: var(--tw-rotate-x) var(--tw-rotate-y) var(--tw-rotate-z) var(--tw-skew-x) var(--tw-skew-y);
  }

  .resize {
    resize: both;
  }

  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }

  .lowercase {
    text-transform: lowercase;
  }

  .uppercase {
    text-transform: uppercase;
  }

  .outline {
    outline-style: var(--tw-outline-style);
    outline-width: 1px;
  }

  .blur {
    --tw-blur: blur(8px);
    filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
  }

  .filter {
    filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
  }

  .transition {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
}

:root {
  --bg: #0a0b0e;
  --bg-2: #0e1014;
  --panel: #121419;
  --panel-2: #15181e;
  --line: #23262e;
  --line-2: #2c303a;
  --ink: #ece7da;
  --ink-dim: #b6b2a6;
  --muted: #797f8a;
  --faint: #4b505a;
  --up: #4ad991;
  --up-glow: #4ad99129;
  --down: #ff6a6a;
  --down-glow: #ff6a6a29;
  --accent: #f2b441;
  --accent-2: #6ea8fe;
}

* {
  box-sizing: border-box;
}

html, body, #root {
  height: 100%;
}

body {
  background-color: var(--bg);
  background-image: radial-gradient(900px 500px at 88% -8%, #f2b4410f, transparent 60%), radial-gradient(800px 600px at -5% 105%, #6ea8fe0d, transparent 55%), linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -.01em;
  margin: 0;
  font-family: Geist, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;
  font-weight: 400;
}

body:after {
  content: "";
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  inset: 0;
}

.mono {
  font-feature-settings: "tnum" 1;
  font-family: Geist Mono, ui-monospace, monospace;
}

.serif {
  font-family: Instrument Serif, Georgia, serif;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border-radius: 6px;
}

::-webkit-scrollbar-track {
  background: none;
}

.panel {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.panel-head {
  display: flex;
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items:  center;
  padding: 14px 18px;
}

.panel-title {
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 11px;
}

.eyebrow {
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--faint);
  font-size: 10.5px;
}

.price {
  border-radius: 5px;
  padding: 0 2px;
  transition: color .15s;
}

.price.up {
  color: var(--up);
  animation: flashUp .45s ease;
}

.price.down {
  color: var(--down);
  animation: flashDown .45s ease;
}

@keyframes flashUp {
  0% {
    background: var(--up-glow);
  }

  100% {
    background: none;
  }
}

@keyframes flashDown {
  0% {
    background: var(--down-glow);
  }

  100% {
    background: none;
  }
}

.pos {
  color: var(--up);
}

.neg {
  color: var(--down);
}

.dot {
  display: inline-block;
  border-radius: 50%;
  width: 8px;
  height: 8px;
}

.dot.live {
  background: var(--up);
  box-shadow: 0 0 0 0 var(--up-glow);
  animation: pulse 2s infinite;
}

.dot.dead {
  background: var(--down);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 #4ad99173;
  }

  70% {
    box-shadow: 0 0 0 7px #4ad99100;
  }

  100% {
    box-shadow: 0 0 #4ad99100;
  }
}

.chain {
  border-collapse: collapse;
  width: 100%;
}

.chain th {
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
  text-align: right;
  position: sticky;
  background: var(--panel-2);
  padding: 8px 10px;
  font-size: 10px;
  font-weight: 500;
  top: 0;
}

.chain td {
  text-align: right;
  border-top: 1px solid var(--line);
  padding: 7px 10px;
}

.chain .strike-cell {
  text-align: center;
  color: var(--ink-dim);
  background: #ffffff03;
  font-weight: 500;
}

.chain tr.atm {
  background: #f2b4410f;
}

.chain tr.atm .strike-cell {
  color: var(--accent);
}

.chain .ce {
  color: var(--up);
}

.chain .pe {
  color: var(--down);
}

.chain .vol {
  color: var(--muted);
  font-size: 11.5px;
}

.dtable {
  border-collapse: collapse;
  width: 100%;
}

.dtable th {
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
  text-align: left;
  padding: 9px 14px;
  font-size: 10px;
  font-weight: 500;
}

.dtable td {
  border-top: 1px solid var(--line);
  color: var(--ink-dim);
  padding: 10px 14px;
}

.dtable tbody tr:hover {
  background: #ffffff05;
}

.tag {
  display: inline-flex;
  border: 1px solid var(--line-2);
  color: var(--ink-dim);
  border-radius: 999px;
  align-items:  center;
  gap: 6px;
  padding: 2px 8px;
  font-size: 11px;
}

.tag.ce {
  color: var(--up);
  border-color: #4ad9914d;
}

.tag.pe {
  color: var(--down);
  border-color: #ff6a6a4d;
}

.btn {
  letter-spacing: .02em;
  color: #0a0b0e;
  background: var(--ink);
  cursor: pointer;
  border: none;
  border-radius: 9px;
  padding: 12px 18px;
  transition: transform 80ms, opacity .15s;
  font-family: Geist, sans-serif;
  font-size: 13px;
  font-weight: 500;
}

.btn:hover {
  opacity: .92;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: .5;
  cursor: default;
}

.input {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  color: var(--ink);
  outline: none;
  border-radius: 9px;
  width: 100%;
  padding: 12px 14px;
  transition: border-color .15s;
  font-family: Geist Mono, monospace;
  font-size: 14px;
}

.input:focus {
  border-color: var(--accent);
}

.reveal {
  opacity: 0;
  animation: reveal .6s cubic-bezier(.2, .7, .2, 1) forwards;
  transform: translateY(8px);
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: none;
  }
}

@property --tw-rotate-x {
  syntax: "*";
  inherits: false;
  initial-value: rotateX(0);
}

@property --tw-rotate-y {
  syntax: "*";
  inherits: false;
  initial-value: rotateY(0);
}

@property --tw-rotate-z {
  syntax: "*";
  inherits: false;
  initial-value: rotateZ(0);
}

@property --tw-skew-x {
  syntax: "*";
  inherits: false;
  initial-value: skewX(0);
}

@property --tw-skew-y {
  syntax: "*";
  inherits: false;
  initial-value: skewY(0);
}

@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}

@property --tw-outline-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}

@property --tw-blur {
  syntax: "*";
  inherits: false
}

@property --tw-brightness {
  syntax: "*";
  inherits: false
}

@property --tw-contrast {
  syntax: "*";
  inherits: false
}

@property --tw-grayscale {
  syntax: "*";
  inherits: false
}

@property --tw-hue-rotate {
  syntax: "*";
  inherits: false
}

@property --tw-invert {
  syntax: "*";
  inherits: false
}

@property --tw-opacity {
  syntax: "*";
  inherits: false
}

@property --tw-saturate {
  syntax: "*";
  inherits: false
}

@property --tw-sepia {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow {
  syntax: "*";
  inherits: false
}

@keyframes pulse {
  50% {
    opacity: .5;
  }
}
