 *{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
}
body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fcfafa;
}
.calc-outer {
  background: #0b0e12;
  padding: 10px;
  border-radius: 24px;

  box-shadow:
    0 12px 25px rgba(0,0,0,0.6),
    inset 0 1px 2px rgba(255,255,255,0.08);
}


.top-brand {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2px;
}
.brand-left {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #eaeaea;
}
.brand-right {
  text-align: right;
  line-height: 1.1;
}

.model {
  font-size: 11px;
  font-weight: 600;
  color: #eaeaea;
}

.edition {
  font-size: 9px;
  color: #bdbdbd;
}
.sub-brand {
  text-align: center;
  font-size: 11px;
  letter-spacing: 1px;
  color: #dcdcdc;
  margin-bottom: 6px;
}

.calculator {
  /*width: 320px;
  background: #111;
  padding: 12px;
  border-radius: 14px;*/

  width: 320px;
  background: linear-gradient(
    to bottom,
    #1a1d22,
    #0f1216
  );
  padding: 14px 12px 16px;
  border-radius: 18px;

  box-shadow:
    inset 0 2px 4px rgba(255,255,255,0.06),
    inset 0 -4px 8px rgba(0,0,0,0.9);
}

.display {
  height: 60px;
  background: #9fb09a;
  color: #0b2b0b;
  font-size: 24px;
  font-family: "Courier New", monospace;
  text-align: right;
  padding: 10px 12px;
  border-radius: 4px;

  box-shadow:
    inset 0 2px 3px rgba(0,0,0,0.3),
    inset 0 -1px 2px rgba(255,255,255,0.6);
}
.display-input {
  position: absolute;
  top: 6px;
  left: 8px;
  font-size: 14px;
  color: #234823;
  font-family: "Courier New", monospace;
}
.display-result {
  position: absolute;
  bottom: 6px;
  right: 8px;
  font-size: 22px;
  color: #0b2b0b;
  font-family: "Courier New", monospace;
}


.display-bezel {
  position: relative;
  background: #0e0e0e;
  padding: 6px;
  border-radius: 8px;
  margin-bottom: 10px;

  box-shadow:
    inset 0 2px 4px rgba(255,255,255,0.05),
    inset 0 -3px 6px rgba(0,0,0,0.9);
}
.display-frame {
  background: #1a1a1a;
  padding: 4px;
  border-radius: 6px;

  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.1),
    inset 0 -2px 3px rgba(0,0,0,0.8);
}



 
 
 
 .nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom:8px 0 10px;
}
.nav-btn {
  min-width: 44px;
  height: 22px;
  font-size: 10px;
  font-weight: bold;
  border-radius: 11px;
  border: none;
  background: #1f1f1f;
  color: #ddd;
  letter-spacing: 0.4px;
  cursor: pointer;

  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.1),
    inset 0 -2px 3px rgba(0,0,0,0.6);
}
.nav-btn.shift {
  color: #f1c40f;   /* Casio yellow */
}
.nav-btn.alpha {
  color: #e91e63;   /* Casio alpha pink */
}
.nav-btn.mode {
  color: #ddd;
}
.nav-btn.on {
  background: #2a2a2a;
  color: #eee;
}
.nav-btn:active {
  transform: scale(0.92);
  box-shadow:
    inset 0 2px 4px rgba(0,0,0,0.8);
}



.dpad {
  width: 80px;
  height: 81px;
  border-radius: 50%;
  background: #1e1e1e;
  position: relative;
  display: grid;
  color: #8fa08a;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  box-shadow:
    inset 0 2px 3px rgba(255,255,255,0.08),
    inset 0 -2px 3px rgba(0,0,0,0.6);
}
.dpad-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 10px;
  color: #aaa;
  user-select: none;
}
.dpad-btn.up {
  grid-column: 2;
  grid-row: 1;
}

.dpad-btn.left {
  grid-column: 1;
  grid-row: 2;
}

.dpad-btn.center {
  grid-column: 2;
  grid-row: 2;
  background: #2a2a2a;
  border-radius: 50%;
}

.dpad-btn.right {
  grid-column: 3;
  grid-row: 2;
}

.dpad-btn.down {
  grid-column: 2;
  grid-row: 3;
}
.dpad-btn.up,
.dpad-btn.left,
.dpad-btn.right,
.dpad-btn.down {
  background: #262626;
  border-radius: 4px;
}

.dpad-btn:active {
  background: #1a1a1a;
  transform: scale(0.92);
}



.sci-grid {
display: flex;
flex-direction: column;
gap: 6px;
}
.sci-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}
.sci-grid .btn {
  font-size: 12px;
  padding: 6px 4px;
  background: #1b1b1b;
  color: #ddd;
  border-radius: 6px;
 }
 .sci-grid .btn:active {
  background: #1a1a1a;
  transform: scale(0.92);
 }

.spacer{
  visibility: hidden;
}
.num-grid {
display: flex;
flex-direction: column;
gap: 6px;
}
.num-row {
   display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 8px;
}
.num-row .btn,
.num-grid .btn {
  height: 48px;
  font-size: 20px;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  background: #4b4f55;   /* Casio grey */
  color: #f2f2f2;
  cursor: pointer;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.25),
    inset 0 -3px 4px rgba(0,0,0,0.6),
    0 2px 3px rgba(0,0,0,0.4);
}
.num-grid .operator {
  background: #3f4348;
  font-size: 22px;
}

.num-grid .btn:active {
  transform: translateY(2px);
  box-shadow:
    inset 0 2px 4px rgba(0,0,0,0.8),
    0 0 0 rgba(0,0,0,0);
}

.btn {
  border: none;
  cursor: pointer;
  padding: 5px 8px;
}

.num-grid .btn.del {
  background: #8fd18f;   /* Casio green */
  color: #1a1a1a;
  font-weight: 700;
}
.num-grid .btn.ac {
  background: #8fd18f;
  color: #1a1a1a;
  font-weight: 700;
}
.num-row .btn {

  height: 50px;
  width: 50px; 
  display: flex;
  /*align-items: center;*/
  justify-content: center;
  align-items: center;
}

.key {
  position: relative;
  display: flex;
  justify-content: center;
  align-items:flex-end ;
  
}
* {
  font-family: "Arial Narrow", Arial, Helvetica, sans-serif;
}

.label {
  position: absolute;
  top: -14px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.2px;
  pointer-events: none;
}

.key .label:nth-of-type(2) {
  top: -22px;
}

.label.shift { color: #f1c40f; }
.label.alpha { color: #e91e63; }
.label.power { color: #7edc7e; }

